Skip to content
This repository has been archived by the owner on Nov 27, 2023. It is now read-only.

fix: Proper path parsing. #597

Merged
merged 1 commit into from
Mar 30, 2023
Merged

fix: Proper path parsing. #597

merged 1 commit into from
Mar 30, 2023

Conversation

Delawen
Copy link
Collaborator

@Delawen Delawen commented Mar 30, 2023

When generating camel connectors for the catalog, the order was wrong. Plus, using the split characters as part of the field.

Fixes #577

catalog, the order was wrong. Plus, using the split characters as part
of the field.

Fixes kaoto-archive#577
@sonarqubecloud
Copy link

SonarCloud Quality Gate failed.    Quality Gate failed

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

No Coverage information No Coverage information
3.9% 3.9% Duplication

+ previous.getPathSeparator() + previous.convertToType(pathParts.get(i++)));
}
Pattern pattern = Pattern.compile("[?&]([^=]+)=([^&\\n]+)", Pattern.CASE_INSENSITIVE);
Matcher matcher = pattern.matcher(uri);

Check failure

Code scanning / CodeQL

Polynomial regular expression used on uncontrolled data

This [regular expression](1) that depends on a [user-provided value](2) may run slow on strings starting with '&' and with many repetitions of '&<'.
@codecov
Copy link

codecov bot commented Mar 30, 2023

Codecov Report

Merging #597 (6205aac) into main (4bce719) will decrease coverage by 0.35%.
The diff coverage is 81.17%.

@@             Coverage Diff              @@
##               main     #597      +/-   ##
============================================
- Coverage     78.79%   78.44%   -0.35%     
  Complexity      132      132              
============================================
  Files            45       45              
  Lines          2301     2324      +23     
  Branches        350      361      +11     
============================================
+ Hits           1813     1823      +10     
- Misses          326      336      +10     
- Partials        162      165       +3     
Impacted Files Coverage Δ
.../step/parser/kamelet/KameletStepParserService.java 70.06% <55.55%> (-4.20%) ⬇️
...src/main/java/io/kaoto/backend/KamelPopulator.java 90.46% <100.00%> (+0.05%) ⬆️
...arser/step/camelroute/CamelRouteFileProcessor.java 95.03% <100.00%> (+0.32%) ⬆️

... and 1 file with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@Delawen Delawen merged commit 26b8052 into kaoto-archive:main Mar 30, 2023
@Delawen Delawen deleted the fix-577 branch March 30, 2023 14:44
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants