Reject empty asset link list in discovery `PostAllAssetLinksById`
I maintainer di solito rispondono entro 6 giorni
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 82/100
Direzione di ricerca
Inizia con post_all_asset_links_by_id in server/app/interfaces/discovery.py e trova i test correlati a POST /lookup/shells/{aasIdentifier}. Aggiungi una verifica che dimostri che una lista vuota restituisce 400 e lascia invariati i collegamenti agli asset esistenti. L’issue è completata quando questo comportamento è coperto da un test superato.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Currently, POST /lookup/shells/{aasIdentifier} accepts an empty list [] as request body. post_all_asset_links_by_id then deletes the
existing links and add_specific_asset_ids_to_aas() stores an empty set for the AAS:
This leads to an inconsistent state:
- A following
DELETE /lookup/shells/{aasIdentifier}returns204, although no asset links exist for the AAS. #625 / #641 changed this
case to return404. DiscoveryStore.to_file()persists the empty entry.
The specification defines the input parameter assetLinks of PostAllAssetLinksById as mandatory with cardinality 1..*, see
IDTA-01002 v3.1.1, Operation PostAllAssetLinksById. Note that the OpenAPI file (V3.1_SSP-001.yaml) does not enforce this with minItems: 1, so a schema validator would not catch it.
The server should respond with 400 (ClientErrorBadRequest) to an empty list, without changing the stored asset links. A test should
cover this case.
Found during review of #641
- Lingua principale
- Python
- Stelle
- 106
- Fork
- 67
- Merge medio
- 3g 18h
- PR unite (30g)
- 3
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 eclipse-basyx/basyx-python-sdk
-
Align discovery `GetAllAssetLinksById` and `PostAllAssetLinksById` responses with the specificationApertabug server
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
eclipse-basyx/basyx-python-sdk#690 ·
I maintainer di solito rispondono entro 6 giorni
-
adapter.json, adapter.xml: Falsy Extension and Qualifier values omittedForse già presa Una pull request collegata a questa issue è aperta o già unita. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
eclipse-basyx/basyx-python-sdk#682 ·
I maintainer di solito rispondono entro 6 giorni
-
adapter.aasx: Failsafe writer adds duplicate parts for conflicting filesForse già presa Una pull request collegata a questa issue è aperta o già unita. Apertabug learn-basyx-python sdk
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
eclipse-basyx/basyx-python-sdk#671 ·
I maintainer di solito rispondono entro 6 giorni
-
enhancement learn-basyx-python server
Difficoltà 2/5 1-3 ore Idoneità per principianti 80/100
eclipse-basyx/basyx-python-sdk#670 ·
I maintainer di solito rispondono entro 6 giorni
-
adapter.aasx: Missing supplementary file aborts reading with failsafeForse già presa Una pull request collegata a questa issue è aperta o già unita. Apertabug learn-basyx-python sdk
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
eclipse-basyx/basyx-python-sdk#665 ·
I maintainer di solito rispondono entro 6 giorni
Tutte le issue di eclipse-basyx/basyx-python-sdk
Issue simili
-
question
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 68/100
vllm-project/vime#524 ·
I maintainer di solito rispondono entro 7 giorni
-
WOPI editor page is scrollable by a few pixels, which breaks scrolling in the document (Firefox)Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
suitenumerique/drive#969 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
theupdateframework/python-tuf#3044 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
FAIRmat-NFDI/pynxtools#861 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
NVIDIA/nsight-python#88 ·
I maintainer di solito rispondono entro 1 giorno