Skip to content

Reverted fix for go-swagger throws error on Windows if application path contains parentheses or blanks #172

Merged
fredbi merged 1 commit intogo-openapi:masterfrom
fredbi:fix/146-path-with-parenthesis
Dec 4, 2023
Merged

Reverted fix for go-swagger throws error on Windows if application path contains parentheses or blanks #172
fredbi merged 1 commit intogo-openapi:masterfrom
fredbi:fix/146-path-with-parenthesis

Conversation

@fredbi
Copy link
Copy Markdown
Member

@fredbi fredbi commented Nov 30, 2023

No description provided.

@fredbi fredbi force-pushed the fix/146-path-with-parenthesis branch from c9e8a04 to 8f9f2ea Compare December 1, 2023 09:46
@codecov
Copy link
Copy Markdown

codecov bot commented Dec 1, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (95bb41d) 63.41% compared to head (e89509c) 63.52%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #172      +/-   ##
==========================================
+ Coverage   63.41%   63.52%   +0.10%     
==========================================
  Files          30       30              
  Lines        3075     3076       +1     
==========================================
+ Hits         1950     1954       +4     
+ Misses        951      949       -2     
+ Partials      174      173       -1     
Flag Coverage Δ
oldstable 63.52% <100.00%> (+0.10%) ⬆️
stable 63.52% <100.00%> (+0.10%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@fredbi fredbi force-pushed the fix/146-path-with-parenthesis branch from d32a15a to a0e9715 Compare December 4, 2023 13:49
@fredbi fredbi changed the title WIP: experimental fix for #145 Reverted fix for go-swagger throws error on Windows if application path contains parentheses or blanks Dec 4, 2023
@fredbi fredbi changed the title Reverted fix for go-swagger throws error on Windows if application path contains parentheses or blanks WIP: Reverted fix for go-swagger throws error on Windows if application path contains parentheses or blanks Dec 4, 2023
@fredbi fredbi force-pushed the fix/146-path-with-parenthesis branch from a0e9715 to 2bacc4b Compare December 4, 2023 14:30
@fredbi fredbi changed the title WIP: Reverted fix for go-swagger throws error on Windows if application path contains parentheses or blanks Reverted fix for go-swagger throws error on Windows if application path contains parentheses or blanks Dec 4, 2023
A more thorough investigation on loading specs from a generated server
from paths containing special characters (such as blank spaces,
parenthesis) did not conclude that it was necessary to alter how cache
entries are matched.

Indeed, this change deeply altered how keys in the cache are managed
and was therefore at best, a risky bet.

* reverted commit e8e27ff
* added check to ensure that the root pseudo-document is preloaded in
  cache under all conditions
* added more unit tests to check the behavior of the normalizers against
  escaped characters
* closes go-openapi#145

Signed-off-by: Frederic BIDON <fredbi@yahoo.com>
@fredbi fredbi force-pushed the fix/146-path-with-parenthesis branch from 2bacc4b to e89509c Compare December 4, 2023 14:38
@fredbi fredbi requested review from casualjim and youyuanwu December 4, 2023 16:47
@fredbi fredbi merged commit b250982 into go-openapi:master Dec 4, 2023
@fredbi fredbi deleted the fix/146-path-with-parenthesis branch December 5, 2023 09:09
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