Cleanup: strip trailing slashes without a regex (GitHubActionsSummary, TestRail, Xray)
Maintainer thường phản hồi trong vòng 1 ngày
@Omartarek876 đang làm issue này rồi.
Từ ngày 22/11/2026.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
Part of the cleanup cycle from #251. SonarCloud rule java:S8786 flags replaceAll("/+$", "") as a regex that can backtrack badly on input with many slashes. The input here is config, so this is not a real risk, but the fix is small and clears the warning.
Where (line numbers as of master 5ddc2a4):
src/main/java/com/seleniumboot/ci/GitHubActionsSummary.java: line 97src/main/java/com/seleniumboot/testmanagement/TestRailClient.java: line 29src/main/java/com/seleniumboot/testmanagement/XrayClient.java: line 61
Fix: strip trailing slashes without a regex, for example a small loop or while (s.endsWith("/")) s = s.substring(0, s.length() - 1);. Keep the exact behaviour: "http://x///" → "http://x", "target/" → "target".
Done when: the three spots no longer use the regex, a unit test covers multiple trailing slashes, and mvn test passes. #256 touches the TestRail / Xray files too, so rebase on master if it merges first.
- Ngôn ngữ chính
- Java
- Star
- 12
- Fork
- 6
- Merge trung bình
- 8 giờ 58 phút
- Pull request đã merge (30 ngày)
- 63
Chuẩn bị môi trường
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của seleniumboot/selenium-boot
-
good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
seleniumboot/selenium-boot#275 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
seleniumboot/selenium-boot#256 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Split Locator.java into smaller filesCó thể đã có người làm @Omartarek876 đã nhận hôm nay. Đang mởhelp wanted
seleniumboot/selenium-boot#277 · 2 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
SuggestionsĐang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
seleniumboot/selenium-boot#251 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của seleniumboot/selenium-boot
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
jenkins-infra/plugin-modernizer-tool#2070 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 84/100
orientechnologies/orientdb#11020 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Event search answers 500 when calendars, attendees or organizers holds a null elementCó thể làm lại được Pull request cho issue này đã bị đóng mà không được merge. Đang mởai-driven-qa bug Minor
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
linagora/twake-calendar-side-service#1615 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
eclipse-tradista/tradista#371 ·
Maintainer thường phản hồi trong vòng 1 ngày