#231 Proposing a bug ends with http 500
Closed: Fixed 2 years ago by kparal. Opened 2 years ago by kparal.

Most probably related to:
https://listman.redhat.com/archives/bugzilla-announce-list/2022-February/msg00000.html

The traceback:

[bugzilla.base  ] 2022-02-07 14:35:26 INFO    Using RHBugzilla for URL containing .redhat.com
[bugzilla.base  ] 2022-02-07 14:35:26 INFO    user and password present - doing login()
[blockerbugs    ] 2022-02-07 14:35:26 ERROR   Exception on /propose_bug [POST]
Traceback (most recent call last):
  File "/opt/app-root/lib64/python3.9/site-packages/flask/app.py", line 2073, in wsgi_app
    response = self.full_dispatch_request()
  File "/opt/app-root/lib64/python3.9/site-packages/flask/app.py", line 1518, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/opt/app-root/lib64/python3.9/site-packages/flask/app.py", line 1516, in full_dispatch_request
    rv = self.dispatch_request()
  File "/opt/app-root/lib64/python3.9/site-packages/flask/app.py", line 1502, in dispatch_request
    return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args)
  File "/opt/app-root/lib64/python3.9/site-packages/flask_fas_openid.py", line 343, in decorated_function
    return function(*args, **kwargs)
  File "/opt/app-root/src/blockerbugs/controllers/main.py", line 490, in propose_bug
    bz = get_bugzilla()
  File "/opt/app-root/src/blockerbugs/controllers/main.py", line 411, in get_bugzilla
    return bugzilla.RHBugzilla4(url=app.config['BUGZILLA_XMLRPC'],
  File "/opt/app-root/lib64/python3.9/site-packages/bugzilla/base.py", line 251, in __init__
    self.connect(url)
  File "/opt/app-root/lib64/python3.9/site-packages/bugzilla/base.py", line 521, in connect
    self.login()
  File "/opt/app-root/lib64/python3.9/site-packages/bugzilla/base.py", line 617, in login
    raise BugzillaError("Login failed: %s" %
bugzilla.exceptions.BugzillaError: Login failed: Application failed during request deserialization: 32000: You have attempted to access the API either using an unsupported method or using one or more unsupported parameters. You must use the 'Authorization' header to authenticate to the API and you must remove all unsupported parameters from the query. The unsupported parameters are: Bugzilla_login, Bugzilla_password, Bugzilla_token, Bugzilla_api_key. See https://bugzilla.stage.redhat.com/docs/en/html/api/core/v1/general.html#authentication for details on using the 'Authorization' header. at /usr/share/perl5/vendor_perl/SOAP/Lite.pm line 2855.

Issue tagged with: next

2 years ago

Metadata Update from @kparal:
- Issue assigned to kparal

2 years ago

A first stab at this is in #232

Metadata Update from @kparal:
- Issue untagged with: next

2 years ago

Issue tagged with: next

2 years ago

I created bugzilla api keys for both production and staging bugzilla, so that we can use them in our configs.

I created bugzilla api keys for both production and staging bugzilla, so that we can use them in our configs.

I'll handle adding the keys to the secret storage with infra and their exposure via env to the container. Will ping here once that's done.

Commit 459579c relates to this ticket

Metadata Update from @kparal:
- Assignee reset

2 years ago

Metadata Update from @kparal:
- Issue assigned to frantisekz

2 years ago

The code is pushed, so now we need to store the secret keys in infra and then we can test it on bba.stg. Reassigning to Frantisek.

Works fine on stg, I'll close this. We still need to fix #230, though.

Metadata Update from @kparal:
- Issue close_status updated to: Fixed
- Issue status updated to: Closed (was: Open)

2 years ago

Login to comment on this ticket.

Metadata
Boards 1
Next tasks Status: Done
Related Pull Requests
  • #232 Closed 2 years ago