Skip to content
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

GUACAMOLE-1239: Refactor away need for isCaseSensitive() function of Identifiable. #1036

Merged

Conversation

mike-jumper
Copy link
Contributor

@mike-jumper mike-jumper commented Nov 26, 2024

This change removes the isCaseSensitive() function recently added to Identifiable to avoid any case where a faulty implementation within one extension's AuthenticatedUser, etc. may cause incorrect behavior within the proper implementation of another. Instead, we rely purely on the global configuration setting.

This change also:

  • Eliminates the GuacamoleException that getCaseSensitivity() may throw, instead providing a default implementation that handles logging of such errors.
  • Adds a canonicalize() convenience function to CaseSensitivity to abstract away transformation of identifiers into a case-insensitive form.

thus avoiding much boilerplate.

@mike-jumper mike-jumper marked this pull request as ready for review December 2, 2024 09:59
@necouchman necouchman merged commit 333b73c into apache:staging/1.6.0 Dec 2, 2024
1 check passed
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.

2 participants