Repository navigation
fix(perc-system): type CookieModule jar and folder locator paths (#3290) - #3293
Merged
Merged
Conversation
Replace unchecked cookie-jar cast with runtime-checked ConcurrentHashMap of Cookie. Extract PSFolderLocatorPaths so getFolderLocatorPaths returns typed List<List<PSLocator>> without a dual-return helper. No HTTP/cookie behavior change. Fixes #3290 Parent #2299 / grandparent #2022 > Co-Authored by Grok Build using grok-4.5 with agent main.
Contributor
Code Review SummaryStatus: 0 Issues Found | Recommendation: Approve Overview
Files Reviewed (3 files)
Resolved
Fix these issues in Kilo Cloud Previous Review Summary (commit 7f5def3)Current summary above is authoritative. Previous snapshots are kept for context only. Previous review (commit 7f5def3)Status: 1 Issue Found | Recommendation: Address before merge Overview
Issue Details (click to expand)WARNING
SUGGESTION
Files Reviewed (6 files)
Positive notes
Reviewed by step-3.7-flash · Input: 112.2K · Output: 7.6K · Cached: 674.2K Review guidance: REVIEW.md from base branch |
FolderParentLookup.getImmediateParents is documented never-null, but collect/appendAncestors now coerce a null return to List.of() so a sloppy lookup cannot NPE on size()/isEmpty(). Tests cover item and ancestor null lists. Review: #3293 Parent #2299 / grandparent #2022 > Co-Authored by Grok Build using grok-4.6 with agent overnight-pr-follow-up.
Collaborator
Author
|
qa_deferred_quality — human QA not assigned. This-run PR #3293 (parent #3290 / #2299) is not a human-QA candidate and does not meet the overnight quality bar. Candidate
Quality bar (live GitHub)
Do not assign @vijaya-boddipudi. Tech-debt typing does not warrant a
|
natechadwick
approved these changes
Aug 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Clears remaining unchecked/rawtypes suppressions on
CookieModuleandPSServerFolderProcessorfor parent #2299 (slice 5 of #2022).CookieModule.loadCookies()now rebuilds a typedConcurrentHashMap<Cookie, Cookie>via runtime-checkedreadCookieJar(no@SuppressWarnings("unchecked")). Valid jars still load; non-map / non-Cookie payloads throwIOException(same catch path as other load failures).List<?>helper.PSFolderLocatorPathscollects parent-first / root-last paths with typedList<List<PSLocator>>. PublicgetFolderLocatorPaths(PSLocator)signature is unchanged.No HTTP/cookie send-accept behavior change. Security catalogers (#3289) and assembly leftovers (#3291) are out of scope.
Fixes #3290
Parent tracker: #2299
Grandparent: #2022
Operator: Grok: night-issue-prs (model grok-4.5)
Test plan
cd system && ../mvnw.cmd clean install(JDK 21) — expect BUILD SUCCESS.CookieModuleCookieJarTest(round-trip, empty map, reject HashMap, reject non-Cookie entries).PSServerFolderProcessorLocatorPathsTest(null args, no parents, two-folder item, first-parent-only ancestor walk).@SuppressWarnings("unchecked")onCookieModuleorgetFolderLocatorPaths.Checklist
systemstandalonemvnw clean installgreensystemclean install (no skipTests); C2 reverse-deps N/A (nofinal/ public signature / package-visible API used by other modules)Path/Files/@TempDir; no hardcoded OS path separatorsC3 evidence
systemcd system && ../mvnw.cmd clean install→ BUILD SUCCESS (2026-08-13T02:41:24-04:00). Tests run: 2112, Failures: 0, Errors: 0, Skipped: 241. New: CookieModuleCookieJarTest 4/0/0, PSServerFolderProcessorLocatorPathsTest 5/0/0.getFolderLocatorPathssignature unchanged; no type madefinal/sealed; no protected/package-visible API used by other modules changed)C5 UI proof
N/A — Java backend Xlint only; no browser surface.