You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@guacamole.apache.org by "Nick Couchman (Jira)" <ji...@apache.org> on 2026/08/10 23:53:00 UTC
[jira] [Closed] (GUACAMOLE-2302) Add test coverage for TokenFilter parameter token grammar
[ https://issues.apache.org/jira/browse/GUACAMOLE-2302?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Nick Couchman closed GUACAMOLE-2302.
------------------------------------
Resolution: Implemented
> Add test coverage for TokenFilter parameter token grammar
> ---------------------------------------------------------
>
> Key: GUACAMOLE-2302
> URL: https://issues.apache.org/jira/browse/GUACAMOLE-2302
> Project: Guacamole
> Issue Type: Test
> Reporter: Ciro Iriarte
> Priority: Major
> Fix For: 1.7.0 [main]
>
>
> guacamole-ext has TokenFilterTest covering basic substitution, escaping, and the LOWER/UPPER modifiers, but no coverage pinning the boundaries of the token grammar itself: which candidate token names the pattern accepts, how unrecognized modifiers are handled, and how strict mode treats text that resembles a token but is not one.
> That behavior is currently load-bearing. filterStrict() has a single caller, VaultUserContext.getTokens(), which resolves secret names from vault-token-mapping.yml and treats GuacamoleTokenUndefinedException as a signal to skip the secret. A change in which strings the pattern matches therefore changes whether vault secrets are retrieved, silently.
> Add characterization tests for the existing grammar so that any future change to the token pattern is evaluated against current behavior.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)