load_components_and_configurations fails when trying to get all components and configurations from one QM project area
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 35/100
Direzione di ricerca
Inizia in elmclient/_qm.py, in load_components_and_configurations(), chiamata da find_local_component(), e riproduci il 403 dell'endpoint dei componenti QM disponendo dell'accesso a una sola area di progetto. Traccia come viene formata la richiesta dei componenti e verifica che sia possibile recuperare un componente accessibile senza richiedere l'autorizzazione a leggere altre aree di progetto.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Hi there,
First of all - I am not an OSLC expert, just a user who wants to do something with this package.
Currently I am a user which has access only to some particular QM project areas (not all project areas).
So when trying to find a specific component (which is accessible to me), I use this simple code snipped:
import elmclient.server as elmserver
...
obj_server = elmserver.JazzTeamServer(str_host, str_user, str_pass, verifysslcerts=False, jtsappstring="jts:jts", appstring="qm", cachingcontrol=0)
obj_app = obj_server.find_app('qm', ok_to_create=True)
obj_project = obj_app.find_project(str_project_area_name)
obj_component = obj_project.find_local_component(str_component_name)
Which throws the following error:
Traceback (most recent call last):
File "c:\XXX\.venv\Lib\site-packages\elmclient\_qm.py", line 296, in find_local_component
self.load_components_and_configurations()
File "c:\XXX\.venv\Lib\site-packages\elmclient\_qm.py", line 112, in load_components_and_configurations
crx = self.execute_get_xml( components_uri, intent="Retrieve component definition" )
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "c:\XXX\.venv\Lib\site-packages\elmclient\httpops.py", line 139, in execute_get_xml
response = request.execute( **kwargs )
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "c:\XXX\.venv\Lib\site-packages\elmclient\httpops.py", line 334, in execute
return self._execute_request( no_error_log=no_error_log, close=close, **kwargs )
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "c:\XXX\.venv\Lib\site-packages\elmclient\httpops.py", line 343, in _execute_request
result = self._execute_one_request_with_login( no_error_log=no_error_log, close=close, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "c:\XXX\.venv\Lib\site-packages\elmclient\httpops.py", line 624, in _execute_one_request_with_login
response.raise_for_status()
File "c:\XXX\.venv\Lib\site-packages\requests\models.py", line 1021, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://host/qm/oslc_config/resources/com.ibm.team.vvc.Component
When trying to access the URL https://host/qm/oslc_config/resources/com.ibm.team.vvc.Component using my web browser, I get the following error message displayed:
The user "XXX" does not have permission to read item "_xxxxxxxxxxxxxxxxxxxxxxxx", which has the "ProjectArea" item type.
It seems that it querys all components of all project areas - including those which are not accessible for me - for some reason.
Does anybody know how to evade this issue?
- Lingua principale
- HTML
- Stelle
- 52
- Fork
- 32
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Guida per i contributori
Apri 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 IBM/ELM-Python-Client
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
IBM/ELM-Python-Client#138 · 11 commenti ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 48/100
IBM/ELM-Python-Client#131 · 2 commenti ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 42/100
IBM/ELM-Python-Client#112 · 1 commento ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 52/100
IBM/ELM-Python-Client#107 · 6 commenti ·
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
IBM/ELM-Python-Client#65 · 2 commenti ·
Tutte le issue di IBM/ELM-Python-Client
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
speaches-ai/speaches#678 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
-
[BUG] ECR GetAuthorizationToken returns a proxyEndpoint for the default region, not the request's Apertabug ecr
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
conda-forge/spacy-feedstock#177 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100