Skip to content

Issues with USS files having "same name", but different case #1484

@fswarbrick

Description

@fswarbrick

Describe the bug

USS files in the same directory with file names that differ only in the "case" of one or more characters ("test" vs. "Test") are being treated within Zowe Explorer as "the same file" in some contexts.

To Reproduce

Steps to reproduce the behavior:

  1. Create a USS file, for example "test".
  2. Open the file and add some text.
  3. Save the file.
  4. Create another USS file, with the same name as the file in step 1, except changing the 'case' of one character. For example, "Test".
  5. Attempt to open new file. Assuming the original file is still open, this will not appear to open the new file
  6. Right click on new file and choose "Pull from mainframe". This will update your screen (which is technically still editing the original file) with the data in the new file. That is, no text, since no data was ever added to the new file.

Expected behavior

The two similarly but not identically named files should be treated as two different files, instead of, in some cases, "the same file".

Desktop (please complete the following information):

  • OS: Windows 10
  • Zowe Explorer Version: 1.18.1
  • (Optional) Zowe CLI Version: 6.23.0
  • (Optional) Are you using Secure Credential Store? No

Additional context

This is almost certainly caused by the fact that the Windows file system is case insensitive, while USS is case sensitive. On Windows, the temporary file name, whether "test" or "Test" are in fact the same file.

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions