Skip to content

Conversation

@isc-bsaviano
Copy link
Contributor

This PR fixes an issue reported internally. A developer used Cmd-O to open a %Library class using the short alias. This opened a document with a different URI than if he opened it from the files explorer. This confused server-side source control and can confuse users if multiple copies are open at once. This PR fixes the issue by adding validation in our FileSystemProvider to reject "non-canonical" URIs. I also modified the Open InterSystems Document... command to be more flexible in what it accepts so opening a %Library class using its short alias is accepted and returns the "canonical" URI.

Copy link
Contributor

@gjsjohnmurray gjsjohnmurray left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks OK but I haven't tested it.

@isc-bsaviano isc-bsaviano merged commit 7db6cac into intersystems-community:master Oct 31, 2025
5 checks passed
@isc-bsaviano isc-bsaviano deleted the canonical-uri branch October 31, 2025 20:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants