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 21342 "abs_path requested" error is getting logged for link starting with " mailto: " in Call-To-actions dialog field in teaser component #2737

Merged
merged 5 commits into from
Apr 26, 2024

Conversation

YahorC
Copy link
Contributor

@YahorC YahorC commented Apr 24, 2024

Q                       A
Fixed Issues? Fixes #1, Fixes #2
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

Egor_Cheptsov and others added 4 commits April 24, 2024 10:56
…rting with mailto: in Call-To-actions dialog field in teaser component
…rting with mailto: in Call-To-actions dialog field in teaser component
@YahorC YahorC requested a review from a team April 24, 2024 09:09
@LSantha LSantha added this to the 2.25.0 milestone Apr 25, 2024
@@ -267,4 +268,12 @@ private static String replaceEncodedCharactersInFragment(final String str) {
.replace("%2F", "/")
.replace("%3F", "?");
}

private static boolean isNotMailToLink(String link) {
Copy link
Contributor

Choose a reason for hiding this comment

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

It's recommended to use positive naming in such test methods.
Instead of isNotMailToLink() use isMailToLink() and change the code accordingly.

Copy link

sonarcloud bot commented Apr 26, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

@YahorC YahorC requested a review from LSantha April 26, 2024 08:37
@LSantha LSantha merged commit cba4a1b into main Apr 26, 2024
16 checks passed
@LSantha LSantha deleted the SITES-21342 branch April 26, 2024 10:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants