Open plavjanik opened 2 years ago
Thank you for creating a bug report. If you haven't already, please ensure you have provided steps to reproduce it and as much context as possible.
I was able to reproduce the same problem with the CLI.
root@SSH:~/gh# zowe -V
7.2.1
root@SSH:~/gh# zowe profiles create zosmf "ca32 (z/OSMF)" -H test
Command Error:
Profile IO Error: Error creating profile file ("/root/.zowe/profiles/zosmf/ca32 (z/OSMF).yaml"). Error Details: ENOENT: no such file or directory, open '/root/.zowe/profiles/zosmf/ca32 (z/OSMF).yaml'
Error Details:
ENOENT: no such file or directory, open '/root/.zowe/profiles/zosmf/ca32 (z/OSMF).yaml'
Warning: The command 'profiles create' is deprecated.
Recommended replacement: The 'config init' command
root@SSH:~/gh#
Transfering since we use the same APIs.
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.
This is an enhancement request for V1 profiles and the Zowe V1 release is in maintenance mode.
Closing since Team configuration files do support most special characters as long as it's a valid JSON object.
For instance, this is a valid profile name on V2 "name__!@#$%^&*()_-+=<>/?\\|{}\"__"
It is ok not to support some characters. The typical response of software is to explain this in an error message so users know what characters can be entered. Current message does not say what is wrong and how it can be corrected.
Try to look at it from the perspective of a user. You enter a perfectly valid string - the name of the service that is used by Zowe:
z/OSMF
but then the CLI fails with an error that does not make much sense. As a user I would expect either Zowe to explain why my input was invalid so I can do it correctly next time or ideally to allow me to enter it and change it to something that is valid on the current file system automatically. This is an error that is not handled properly and users have to guess what how to do a workaround. And when they find it, it gives a bad impression about the product. The fix for that is easy and a similar approach should be taken in all cases when input is requested from the user. It this case the product just does not work but what if there is a case when it can lead to more severe problems?
Describe the bug
I am creating a new profile and I have entered the name
ca32 (z/OSMF)
to differentiate between FTP and z/OSMF. The extension accepted the name as valid initially but it failed to create the profile.To Reproduce
ca32 (z/OSMF)
or similar as the name and enter other valuesExpected behavior
A profile is successfully created or the name is not accepted immediately after entering so a valid name can be entered.
Screenshots
Desktop (please complete the following information):