Hosted and vendored Maven cannot serve a patched classifier jar: the grant covers only the main jar
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 35/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Ambito
- build-system, cli
Direzione di ricerca
Start with the refusal in crates/socket-patch-core/src/patch/redirect/mod.rs (redirect_maven_classifier_unsupported) and the classifier_unpatched_copy degrade in crates/socket-patch-core/src/vendor/jvm/gradle.rs, then check how agent mode already swaps classifier jar leaves. Done means hosted and vendored modes serve a patched jar for each declared classifier and still refuse when the service has none. The grant format belongs to the patch service, so confirm that contract before changing the Rust side.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Summary
A classifier variant of a patched Maven artifact cannot be delivered patched in hosted or vendored mode:
- hosted refuses with
redirect_maven_classifier_unsupported(crates/socket-patch-core/src/patch/redirect/mod.rs:9695): "the Socket patch covers only the main jar"; - vendored copies the upstream classifier jar and degrades with
classifier_unpatched_copy(crates/socket-patch-core/src/vendor/jvm/gradle.rs:502).
Agent mode does handle classifier jars (it swaps each jar leaf it finds).
Why this matters
Classifier jars are how Maven ships platform-specific and alternate builds of the same code (native bundles such as linux-x86_64, jdk8 vs jdk11 builds, shaded). When the fix is in code that the classifier jar also carries, the build keeps the vulnerable copy on its class path, which the tool correctly reports but cannot fix.
Suggested direction
Let the patch service's grant serve a patched jar per classifier (keyed by the classifier and ext qualifiers the manifest already uses for variants), and have hosted/vendored wire each classifier the build declares. Keep today's refusal when the service has no patched jar for a declared classifier.
- Lingua principale
- Rust
- Stelle
- 9
- Fork
- 2
- Merge medio
- 1g 8h
- PR unite (30g)
- 309
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di SocketDev/socket-patch
-
Windows unit tests fail on main: pnpm-registry-overrides fixtures are checked out as CRLF (mixes CRLF and LF line endings)Forse già presa @mikolalysenko l’ha presa oggi. Apertaagent:claimed agent:triaged ci-janitor priority:p1
Difficoltà 1/5 1-3 ore Idoneità per principianti 85/100
SocketDev/socket-patch#2238 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
agent:triaged arch-audit priority:p3 refactor
Difficoltà 2/5 1-3 ore Idoneità per principianti 83/100
SocketDev/socket-patch#1860 ·
I maintainer di solito rispondono entro 1 giorno
-
agent:triaged arch-audit priority:p3 refactor
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
SocketDev/socket-patch#1838 ·
I maintainer di solito rispondono entro 1 giorno
-
Nightly: pnpm11_registry_route_is_cleaned_up_when_a_patch_is_not_needed fails on Windows (pnpm records the RUNNER~1 short path as a second importer)Forse già presa Una pull request collegata a questa issue è aperta o già unita. Apertaagent:triaged ci-janitor priority:p1
Difficoltà 3/5 Mezza giornata Idoneità per principianti 42/100
SocketDev/socket-patch#2235 ·
I maintainer di solito rispondono entro 1 giorno
-
Agent mode reports a gem whose installed file was edited as "not installed on this host" / "not found on disk", `apply --check` says to run `apply`, and `rollback` exits 1 with "modified after patching" on every runForse già presa @mikolalysenko l’ha presa oggi. Apertaagent:claimed agent:triaged bug bughunt pm:bundler priority:p1 ux
Difficoltà 4/5 3-5 giorni Idoneità per principianti 18/100
SocketDev/socket-patch#2231 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di SocketDev/socket-patch
Issue simili
-
area: cli good first issue type: feature
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
-
[Bug] Windows Ghidra provider rejects a PATH-only JDK: bare `java.exe` probe fails with Win32 87Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
renaming a provider to a taken name fails with a raw sql errorForse già presa Una pull request collegata a questa issue è aperta o già unita. Apertaarea:storage kind:bug priority:p3 ready
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno
-
bug bugfix
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
storytold/photocraft#16975 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
expo/exact#1716 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno