zowe / zowe-cli

Zowe CLI
Eclipse Public License 2.0
113 stars 87 forks source link

When uploading a large file to a wrong directory, the error is displayed after a long time #509

Open plavjanik opened 5 years ago

plavjanik commented 5 years ago

I have tried to upload a file using this command:

zowe files upload ftu XLC3WEB.pax.Z "/u/ibmuser/xlc3web/XLC3WEB.pax.Z" --binary

The file had over 100 MB. It took a few minutes to display an error message that was caused by the wrong name of the target directory:

Command Error:
z/OSMF REST API Error:
Rest API failure with HTTP(S) status 404
category: 6
rc:       8
reason:   93651005
message:  File not found.
details:
  - EDC5129I No such file or directory. (errno2=0x0594003D)

Error Details:
HTTP(S) error status "404" received.
Review request details (resource, base path, credentials, payload) and ensure correctness.

Host:      ca32.ca.com
Port:      1443
Base Path:
Resource:  /zosmf/restfiles/fs/u%2Fibmuser%2Fxlc3web%2FXLC3WEB.pax.Z
Request:   PUT
Headers:   [{"Content-Type":"application/octet-stream"},{"X-IBM-Data-Type":"binary"},{"X-CSRF-ZOSMF-HEADER":true}]
Payload:   <Buffer 1f 9d 90 58 98 0c 99 71 a5 88 90 17 47 92 34 81 12 c4 88 0b 2c 4d 98 00 98 48 b1 a2 c5 8b 18 33 6a dc c8 b1 63 45 18 20 6f dc a8 01 02 00 c8 93 30 4a ... >

I would expect the command to fail immediately when the target directory is not usable.

github-actions[bot] commented 2 years ago

Thank you for raising this issue. The community has 90 days to upvote 👍 the issue. If it receives 5 upvotes, we will move it to our backlog. If not, we will close it.

plavjanik commented 1 year ago

I ran into the same issue again today. It would be great if the upload command can create the directory if it is missing (for example, when an extra option is used).

github-actions[bot] commented 1 year ago

Thank you for raising this enhancement request. The community has 90 days to vote on it. If the enhancement receives at least 5 upvotes, it is added to our development backlog. If it receives fewer votes, the issue is closed.