[🚀 Feature]: Remove deprecated JSON Wire ErrorCodes / Response.status (java)
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 28/100
Direzione di ricerca
Inizia con ErrorHandler, ErrorCodec e i caller di Response e handshake/codec elencati; traccia come ErrorCodec.decode() possa sostituire la ricerca dello stato intero. Esamina la dipendenza da Appium e il costruttore ErrorHandler proposto prima di modificare l’API pubblica. Il lavoro è completato quando i lettori interni dello stato sono stati migrati e il percorso di rimozione di ErrorCodes è coordinato tramite la release di Appium richiesta.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Description
ErrorCodes and Response.status/getStatus()/setStatus() are leftover JSON Wire Protocol plumbing. They're still load-bearing in the W3C path: ErrorHandler resolves exceptions via getExceptionType(int) keyed off the integer Response.getStatus(). Removal is two independent efforts.
Interim state landed separately: both are now plain
@Deprecatedwith javadoc pointing at the replacement (noforRemoval, to avoid promising a removal that isn't scheduled and to keep the build warning-free until the migration below happens).
Track A — Response.status integer (internal only)
No external consumer found; doable entirely within this repo.
- Re-point
ErrorHandler(lines 102-104, 258) offgetExceptionType(int)onto the W3Cstatestring viaErrorCodec.decode(). - Migrate remaining internal readers of
getStatus()/setStatus():Response.fromJson,AbstractHttpResponseCodec,W3CHttpResponseCodec,W3CHandshakeResponse,ProtocolHandshake,ResponseConverter. - Flip
Response.status/getStatus()/setStatus()to@Deprecated(forRemoval = true)once the internal callers above are gone (no consumers left to warn). - Remove
Response.status/getStatus()/setStatus().
Track B — ErrorCodes (public API, Appium depends on it)
Appium subclasses it (ErrorCodesMobile extends ErrorCodes) and injects via new ErrorHandler(new ErrorCodesMobile(), true). Requires cross-repo sequencing:
- (Selenium) Make
ErrorCodecextensible — public API to register customstate → exceptionmappings (currently private ctor + private staticERRORSlist). - (Selenium) Add an
ErrorHandlerconstructor takingErrorCodec; oldErrorHandler(ErrorCodes, …)delegates and stays deprecated. - (Appium) Replace the subclass with one registration:
"No such context found" → NoSuchContextException. (then wait for an Appium release) - (Selenium) Mark
ErrorCodes+ErrorHandler(ErrorCodes, …)forRemoval, then remove in a major release.
Have you considered any alternatives or workarounds?
Keep ErrorCodes indefinitely as legacy API and never remove it — needs no Appium coordination, reclaims no code.
Does this apply to specific language bindings?
Java
- Lingua principale
- Java
- Stelle
- 34.6k
- Fork
- 8.7k
- Merge medio
- 1g 23h
- PR unite (30g)
- 86
Preparare l'ambiente
Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.
- Nessun Dockerfile né file Docker Compose
- Ha un 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 SeleniumHQ/selenium
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 82/100
SeleniumHQ/selenium#18323 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
SeleniumHQ/selenium#17843 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
[java] DriverFinderTest property fixture doesn't clear/restore selenium.webdriver.verboseForse di nuovo libera @stefanpoia l’ha presa 25 giorni fa e non c’è nessuna pull request aperta. Aperta
Difficoltà 1/5 1-3 ore Idoneità per principianti 88/100
SeleniumHQ/selenium#17836 · 3 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
A-needs-triaging C-java D-chrome D-firefox I-defect OS-linux
Difficoltà 4/5 1-2 giorni Idoneità per principianti 53/100
SeleniumHQ/selenium#18324 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
[Bug]: [py] Generated bidi.UserAgentClientHints is empty — inline CDDL params drop the commandForse già presa @titusfortner l’ha presa 3 giorni fa. ApertaC-py OS-mac
SeleniumHQ/selenium#18312 · 2 assegnatari ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di SeleniumHQ/selenium
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
btraceio/jafar#228 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 83/100
jenkinsci/git-client-plugin#1807 ·
-
area-templates triage:bot-seen triage:needs-human
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
microsoft/aspire#22356 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
[Coral-Hive] locate() is typed as STRING instead of INT, so view schemas report a string columnAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
apache/flink-agents#1395 ·
I maintainer di solito rispondono entro 1 giorno