-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
upload file-to-uss-file tries to create a dataset #144
Comments
Thank you for creating a bug report. |
Hi, @eakst7 , could you try the following?
|
Hi @eakst7 , are you OK to close this issue? |
Hi @std4lqi , I'm ok to close if it's unlikely to be addressed. It would preferable, though, to issue an error message if the remote path is not fully qualified, rather than trying to create a dataset. |
Hi @eakst7, I see your point now. Let's re-evaluate it and come back to you later. Thanks! |
Describe the bug
zowe zftp ul file-to-uss-file
tries to create an MVS dataset (and might succeed) instead of a USS file when the target file does not start with a slash. Since the command is explicit about uploading to a USS file, it should not attempt to create an MVS dataset.Expected and actual results
Details about the behavior:
zowe zftp ul file-to-uss-file hello.txt hello.txt
hello.txt
is created relative to the user's USS home directory or an error message indicating that the destination file must be fully qualified.If the user has authority to create the dataset named HELLO.TXT, the dataset is created.
Describe your environment
node --version
,npm --version
):Fedora 38
Additional context
I think the code eventually ends up in the
zos-node-accessor
module,zosAccessor.js
, which callsensureFullQualifiedDSN(destDataset)
, which puts single quotes around any name that does not begin with a forward slash. FTP then interprets that as a dataset name instead of a USS file name.The text was updated successfully, but these errors were encountered: