-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Unquote scope strings when seen with single quotes (#778)
* Unquote scope strings when seen with single quotes This change originates with a bug report about `globus session consent` on Windows Command Prompt. The single quote chars are not interpreted by the shell, so we receive them verbatim. After discussing the tradeoffs between this fix and switching to double-quotes for the scope string emission piece, choose this one. The impact is small and easy to test in unit tests. Fun fact: there's also an "easy" bypass mechanism on modern shells if anyone needs to pass leading and trailing single quotes in the future. Just pass an extra (literal) leading and trailing quote. Because there is no suite of functional tests for `globus session consent` today, none is added here. * Fix mypy failure due to list invariance
- Loading branch information
Showing
4 changed files
with
52 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
### Bugfixes | ||
|
||
* Strip single quotes from scope strings passed to `globus session consent`, | ||
fixing the behavior of this command when run from Windows Command Prompt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters