Open plavjanik opened 3 years ago
It might be connected to #111 that has been closed but not resolved.
@plavjanik Could this be due to a special character(s) in the name of a file or directory underneath your home directory? Do you get the error when you try the steps below?:
a/plape03/abc
).Hello @lauren-li, if I create a new directory with files with just standard ASCII characters then there is no problem.
When you create a file in it using:
touch `echo "Test\001\002"`
You will get a similar problem. Note: The you need to preserve \
characters when you copy & paste it. If it is not possible in your terminal, then putting the command in a shell script will work.
If you want to create a file with all special characters then you can use the following script: https://gist.github.com/plavjanik/803c98271e9f9cb574580a14a8ad2d5f
Hi @plavjanik, thank you for the additional information!
I was trying to recreate the issue according to your steps with creating files like Test\001\002
. Although my Terminal does not preserve the \
character and running the provided script creates files with spaces instead of the \
-prefixed characters in the filename, I was able to use ISPF to create both directories and files with a \
in the name on z/OS.
I tested with both Zowe Explorer 1.18.0 and the newer Zowe Explorer 1.20.0, and got the same result:
test\dir
, containing a file that has \
in its filename.\
in the name (for example, test\file
or test\dir/\001
), I get a 400 Bad Request
error. This could be addressed as its own issue if others are seeing this, as well.Does the below screenshot resemble what you are trying to do with accessing a USS directory containing a file whose name contains the \
character?:
Hello, it looks like that you have created a file that has a name the real \
in it so there is no special character.
When I run a shell script that has one command:
touch `echo "Test\001\002"`
Then it creates one file that cannot be listed in Explorer:
Such directory is does not expand in Explorer:
This is how it is displayed in USS:
$ ls
Test
$ ls -b
Test\001\002
I have prepared a script that can create more special characters: https://gist.github.com/plavjanik/803c98271e9f9cb574580a14a8ad2d5f
This is caused by z/OSMF returning a broken JSON object with invalid syntax when USS filenames contain special characters. Please upvote this RFE to request a fix in the z/OSMF REST API: https://ibm-z-hardware-and-operating-systems.ideas.ibm.com/ideas/ZOS-I-3760
Removing from Epic as it requires an update from zosmf rest apis
Describe the bug
I am trying to open my home USS directory on the mainframe using Zowe Explorer. The directory exists and is accessible via SSH and
ls
works without issues. I do not have issues with other directories that I have tried but my home is quite useful for me.But when I try to open it in Zowe Explorer I get the following error:
To Reproduce
Expected behavior
No error and list of files and directories displayed.
Screenshots
Above.
Desktop (please complete the following information):
Additional context