Skip to Main Content
IBM Z Hardware and Operating Systems Ideas Portal
Hide about this portal


This is the public portal for all IBM Z Hardware and Operating System related offerings. To view all of your ideas submitted to IBM, create and manage groups of Ideas, or create an idea explicitly set to be either visible by all (public) or visible only to you and IBM (private), use the IBM Unified Ideas Portal (https://ideas.ibm.com).


Shape the future of IBM!

We invite you to shape the future of IBM, including product roadmaps, by submitting ideas that matter to you the most. Here's how it works:

Search existing ideas

Start by searching and reviewing ideas and requests to enhance a product or service. Take a look at ideas others have posted, and add a comment, vote, or subscribe to updates on them if they matter to you. If you can't find what you are looking for,

Post your ideas
  1. Post an idea.

  2. Get feedback from the IBM team and other customers to refine your idea.

  3. Follow the idea through the IBM Ideas process.


Specific links you will want to bookmark for future use

Welcome to the IBM Ideas Portal (https://www.ibm.com/ideas) - Use this site to find out additional information and details about the IBM Ideas process and statuses.

IBM Unified Ideas Portal (https://ideas.ibm.com) - Use this site to view all of your ideas, create new ideas for any IBM product, or search for ideas across all of IBM.

ideasibm@us.ibm.com - Use this email to suggest enhancements to the Ideas process or request help from IBM for submitting your Ideas.

Allow REST API to provide absolute or relative path in REST API zosmf/restfiles/fs/{filepath-name} and/or Provide appropriate messages.

See Case TS016672435 for more details.

(For me this looks like a bug, but as you see in the case, Support thinks it is working as designed, so Could we please get this fixed). A larger issue is not to get 500 return codes for REST API usage problem, but to get appropriate errors.  

If I specify the absolute file of a file name that exists, I get a 500 return code. The problem is that that the API is adding a forward slash to my absolute path when I already have one: 
I specify /usr/lpp/bcp/upgrade/HC_REXX.txt in the PATH field, but when I press the TRY IT OUT button, I get a response body which shows a slash has been added, and a return code of 500 which indicates an internal server error (Should be 40X if the file was not found).

 

Idea priority Low
  • Guest
    Reply
    |
    Mar 7, 2025
    In your example file name was specified incorrectly. Actual file name is
    /usr/lpp/bcp/upgrade/HC_rexx.txt

    I see appropriate result from Swagger.


    https://pev002.pok.ibm.com:443/zosmf/restfiles/fs?path=%2Fusr%2Flpp%2Fbcp%2Fupgrade%2FHC_rexx.txt

    {
    "items": [
    {
    "name": "/usr/lpp/bcp/upgrade/HC_rexx.txt",
    "mode": "-rw-r--r--",
    "size": 23217,
    "uid": 0,
    "user": "OMVSKERN",
    "gid": 1,
    "group": "OMVSGRP",
    "mtime": "2024-12-06T17:47:24"
    }
    ],
    "totalRows": 1,
    "returnedRows": 1,
    "JSONversion": 1
    }

    With APAR PH63572, z/OSMF file/dataset APIs are enhanced to return 404 response code instead of 500 when there is an issue with request.

    Following is the error when you have incorrect file name.

    https://pev002.pok.ibm.com:443/zosmf/restfiles/fs?path=%2Fusr%2Flpp%2Fbcp%2Fupgrade%2FHC_REXX.txt

    Response Code : 404

    {
    "category": 1,
    "rc": 4,
    "reason": 8,
    "message": "Path name not found",
    "details": [
    "EDC5129I No such file or directory. (errno2=0x053B006C)"
    ]
    }