Skip to content

Bug.weburl incorrect when the REST API is used #178

Description

@crazyscientist

Description

When using the REST API, the Bug.weburl does not contain the URL to the bug in the web UI.

REST API (wrong)

>>> from bugzilla import Bugzilla
>>> bz = Bugzilla("https://bugzilla.suse.com",
                  user="*****",
                  api_key="*****",
                  force_rest=True)
>>> bz._backend
<bugzilla._backendrest._BackendREST at 0x7f39fadf8e80>
>>> b = bz.getbug(1212222)
>>> b.weburl
'https://bugzilla.suse.com/rest/'

XML RPC (correct)

>>> from bugzilla import Bugzilla
>>> bz = Bugzilla("https://bugzilla.suse.com",
                  user="*****",
                  api_key="*****")
>>> bz._backend
 <bugzilla._backendxmlrpc._BackendXMLRPC at 0x7f39fae9f970>
>>> b = bz.getbug(1212222)
>>> b.weburl
'https://bugzilla.suse.com/show_bug.cgi?id=1212222'

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions