Skip to content

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

@crazyscientist

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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions