[TASK] Postman: collections hard-code localhost:8080 instead of {{serverURL}}
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 78/100
Direzione di ricerca
Inizia da dotcms-postman/src/main/resources/postman/ e trova i 17 URL delle richieste codificati come localhost:8080, poi esamina JobQueueResourceAPITests.postman_collection.json per individuare i riferimenti a baseUrl nelle richieste e negli script. Sostituisci quegli indirizzi con {{serverURL}} dell’ambiente, come descritto, mantenendo i valori elencati fuori ambito. Verifica il criterio di accettazione grep ed esegui GraphQLTests.json e un’altra collection interessata su una porta diversa da 8080.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Description
Some Postman collections hard-code http://localhost:8080 as the request address instead of using the {{serverURL}} environment variable that the rest of the suite uses. Those requests fail whenever dotCMS listens on any port other than 8080, so a local Postman run can't use a different port. That rules out running a second, isolated stack next to another one on the same machine. CI is not affected today because it publishes Tomcat on 8080.
A local run of GraphQLTests.json against a stack on port 28480 stopped at the "Switch Host" request with ECONNREFUSED 127.0.0.1:8080.
Part of epic #34645 (CI/CD pipeline stability).
Where
All files are under dotcms-postman/src/main/resources/postman/.
- There are 17 request URLs written as
"raw": "http://localhost:8080/...", withhost: ["localhost"]andport: "8080". Find them withgrep -n '"raw": "http://localhost:8080' *.json. The count per file is:UserResource.postman_collection.json: 6PagesResourceTests.json: 3Workflow_Resource_Tests.json: 3Template_Resource.postman_collection.json: 2GraphQLTests.json: 1 ("Switch Host")Integrity_Checker_JWT_Token_Test.postman_collection.json: 1NavResourceTests.json: 1
JobQueueResourceAPITests.postman_collection.jsonsets its own collection variablebaseUrltohttp://localhost:8080. 38 requests use it as{{baseUrl}}, and 3 scripts read it withpm.collectionVariables.get("baseUrl").
Fix
- Each of the 17 requests should use
{{serverURL}}/...withhost: ["{{serverURL}}"]and noport, matching the requests next to it. - In JobQueueResourceAPITests, the requests and scripts should use the environment's
serverURLinstead of the hard-codedbaseUrl.
Out of scope
- Collection variables named
serverURLwhose value islocalhost:8080. The runner (index.js) passesserverURLas an environment variable, which overrides them. Originheader values oflocalhost:8080. These are header values, not request addresses.- The note in
dotcms-postman/pom.xmlabout ApiToken_Resource needing the external port to equal the internal one. That is a server-side matter.
Acceptance Criteria
grep -n 'localhost:8080' dotcms-postman/src/main/resources/postman/*.jsonfinds only the out-of-scope collection-variable andOriginheader entries.- Each affected collection passes when run locally against a stack on port 8080, as before.
GraphQLTests.json, and at least one other affected collection, pass when run locally against a stack on a port other than 8080.
- Lingua principale
- Java
- Stelle
- 972
- Fork
- 489
- Merge medio
- 2g 7h
- PR unite (30g)
- 144
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 dotCMS/core
-
[TASK] Postman and Karate test stacks sleep 3 s after every writeForse già presa @swicken l’ha presa 2 giorni fa. ApertaTeam : Platform Type : Test Automation
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
dotCMS/core#38225 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
OKR : Customer Support Team : Falcon Type : Defect
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
Triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 83/100
I maintainer di solito rispondono entro 1 giorno
-
Team : Enablement
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
Apps configuration page scrolls to the bottom on load when a field hint contains a code blockApertadotCMS : Analytics Team : Falcon
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno
Issue simili
-
[BUG] jackson3 JacksonJsonpMapper(ObjectMapper) fails to deserialize `_source` with "Trailing token" errorForse già presa @junyeokk l’ha presa oggi. Apertabug untriaged
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
opensearch-project/opensearch-java#2236 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
open-learning-exchange/myplanet#18392 ·
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
linagora/twake-calendar-side-service#1218 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
[Bug] [Go] Ack returns nil when the server answers with a non-OK statusForse già presa @leizhiyuan l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
apache/rocketmq-clients#1465 ·
I maintainer di solito rispondono entro 2 giorni