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

:fix: ScopeId bypass fix #4060

Merged
merged 1 commit into from
Jun 20, 2024

Conversation

dseurotech
Copy link
Contributor

A scopeId can contain dashes. On some rest endpoints, to maintain the legacy (deprecated) representation that accepted (and then ignored) the scopeId as the first part of the url, the regex \w+ has been used - however that covers MOST of the characters that can appear in a ScopeId, except the dash. This pr fixes that.

…tured by the bypass regex for legacy endpoints

Signed-off-by: dseurotech <davide.salvador@eurotech.com>
Copy link

codecov bot commented Jun 20, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 16.81%. Comparing base (9ab98f4) to head (8b57465).

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             develop    #4060   +/-   ##
==========================================
  Coverage      16.81%   16.81%           
  Complexity        22       22           
==========================================
  Files           2008     2008           
  Lines          52113    52113           
  Branches        4387     4387           
==========================================
  Hits            8763     8763           
  Misses         42957    42957           
  Partials         393      393           
Files Coverage Δ
.../kapua/app/api/resources/v1/resources/Account.java 0.00% <ø> (ø)
...pp/api/resources/v1/resources/UserCredentials.java 0.00% <ø> (ø)
...a/app/api/resources/v1/resources/UserProfiles.java 0.00% <ø> (ø)

@Coduz Coduz added the Bug This is a bug or an unexpected behaviour. Fix it! label Jun 20, 2024
@Coduz Coduz merged commit 4a8e4ab into eclipse-kapua:develop Jun 20, 2024
35 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug This is a bug or an unexpected behaviour. Fix it!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants