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

SITES-15031 - [Regression] Encoded URL is decoded unintentionally and the URL doesn't work #2564

Merged
merged 2 commits into from
Aug 3, 2023

Conversation

cristic83
Copy link
Contributor

@cristic83 cristic83 commented Aug 3, 2023

Fix the URL encoding in DefaultPathProcessor .

Q                       A
Fixed Issues? Fixes SITES-15031
Patch: Bug Fix?
Minor: New Feature?
Major: Breaking Change?
Tests Added + Pass? Yes
Documentation Provided Yes (code comments and or markdown)
Any Dependency Changes?
License Apache License, Version 2.0

@codecov
Copy link

codecov bot commented Aug 3, 2023

Codecov Report

Merging #2564 (3c153e0) into main (2ed3f44) will increase coverage by 0.01%.
The diff coverage is 100.00%.

❗ Current head 3c153e0 differs from pull request most recent head 37b7992. Consider uploading reports for the commit 37b7992 to get more accurate results

@@             Coverage Diff              @@
##               main    #2564      +/-   ##
============================================
+ Coverage     87.31%   87.33%   +0.01%     
- Complexity     2645     2646       +1     
============================================
  Files           232      232              
  Lines          7063     7072       +9     
  Branches       1071     1071              
============================================
+ Hits           6167     6176       +9     
  Misses          359      359              
  Partials        537      537              
Files Changed Coverage Δ
...components/internal/link/DefaultPathProcessor.java 95.83% <100.00%> (+0.11%) ⬆️
...cq/wcm/core/components/internal/link/LinkUtil.java 86.66% <100.00%> (+1.12%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

Copy link
Member

@vladbailescu vladbailescu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sonarqubecloud
Copy link

sonarqubecloud bot commented Aug 3, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@cristic83 cristic83 merged commit 68e429d into main Aug 3, 2023
@cristic83 cristic83 deleted the SITES-15031 branch August 3, 2023 09:16

static {
PATTERNS.add(Pattern.compile("(<%[=@].*?%>)"));
PATTERNS.addAll(Arrays.stream(RESERVED_CHARACTERS_ENCODED)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@cioriia , why do we need a distinct regex pattern for each character?

LSantha added a commit that referenced this pull request Aug 7, 2023
@vladbailescu vladbailescu added this to the 2.23.4 milestone Aug 11, 2023
@LSantha LSantha changed the title [SITES-15031] [Regression] Encoded URL is decoded unintentionally and… [SITES-15031] [Regression] Encoded URL is decoded unintentionally and the URL doesn't work Sep 13, 2023
@LSantha LSantha changed the title [SITES-15031] [Regression] Encoded URL is decoded unintentionally and the URL doesn't work SITES-15031 - [Regression] Encoded URL is decoded unintentionally and the URL doesn't work Sep 13, 2023
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.

5 participants