Title: Incomplete / incorrect version splitting for REST API endpoint · Issue #238 · python-bugzilla/python-bugzilla · GitHub
Open Graph Title: Incomplete / incorrect version splitting for REST API endpoint · Issue #238 · python-bugzilla/python-bugzilla
X Title: Incomplete / incorrect version splitting for REST API endpoint · Issue #238 · python-bugzilla/python-bugzilla
Description: Upstream in the 5.2 branch the API version is defined as 5.2+: https://github.com/bugzilla/bugzilla/blob/6525e6d90f15fed7d87f591f38f5578ce403dc1b/Bugzilla/Constants.pm#L203 Unfortunately, python-bugzilla expects to split version on the ....
Open Graph Description: Upstream in the 5.2 branch the API version is defined as 5.2+: https://github.com/bugzilla/bugzilla/blob/6525e6d90f15fed7d87f591f38f5578ce403dc1b/Bugzilla/Constants.pm#L203 Unfortunately, python-bu...
X Description: Upstream in the 5.2 branch the API version is defined as 5.2+: https://github.com/bugzilla/bugzilla/blob/6525e6d90f15fed7d87f591f38f5578ce403dc1b/Bugzilla/Constants.pm#L203 Unfortunately, python-bu...
Opengraph URL: https://github.com/python-bugzilla/python-bugzilla/issues/238
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Incomplete / incorrect version splitting for REST API endpoint","articleBody":"Upstream in the 5.2 branch the API version is defined as `5.2+`:\n\nhttps://github.com/bugzilla/bugzilla/blob/6525e6d90f15fed7d87f591f38f5578ce403dc1b/Bugzilla/Constants.pm#L203 \n\nUnfortunately, python-bugzilla expects to split version on the `.` and retrieve two ints:\n\n```\nBugzilla version string: 5.2+\nversion doesn't match expected format X.Y.Z, assuming 5.0\nTraceback (most recent call last):\n File \"/usr/lib/python3.13/site-packages/bugzilla/base.py\", line 447, in _set_bz_version\n major, minor = [int(i) for i in version.split(\".\")[0:2]]\n ~~~^^^\nValueError: invalid literal for int() with base 10: '2+'\n```\n\nhttps://github.com/python-bugzilla/python-bugzilla/blob/78f9ada45640778639e353b8331fae550b075779/bugzilla/base.py#L444-L453\n\nWe've dropped the `+` in the Gentoo Bugzilla in the interim, but clearly the current handling does not reflect the reality of modern Bugzilla. The fallback to `5.0` is \"fine\", but ideally we would strip the `+` or something so that we:\n\n1. get accurate version information\n2. don't display a traceback when we connect to the API","author":{"url":"https://github.com/Kangie","@type":"Person","name":"Kangie"},"datePublished":"2025-10-11T00:51:44.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/238/python-bugzilla/issues/238"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:b1c1c692-d46c-16e0-8b1d-015c6a9f6631 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A3E0:3F3659:BC5224:FFF5A7:69785F36 |
| html-safe-nonce | f181e74c665ee87509e55c25cde0e57082b1c8c26f90e46132f17afa1a6c63d8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBM0UwOjNGMzY1OTpCQzUyMjQ6RkZGNUE3OjY5Nzg1RjM2IiwidmlzaXRvcl9pZCI6Ijg2NjI0NjI2MjQxNjUyODk3ODIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 5b55dcefe04723e322688b1b55f31e6516ee80398124ff80d1b9793679665fed |
| hovercard-subject-tag | issue:3504909627 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python-bugzilla/python-bugzilla/238/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0344592760507a60c23adb7dd0332defc55a347a8291054ff03a6c8341e9d57f/python-bugzilla/python-bugzilla/issues/238 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0344592760507a60c23adb7dd0332defc55a347a8291054ff03a6c8341e9d57f/python-bugzilla/python-bugzilla/issues/238 |
| og:image:alt | Upstream in the 5.2 branch the API version is defined as 5.2+: https://github.com/bugzilla/bugzilla/blob/6525e6d90f15fed7d87f591f38f5578ce403dc1b/Bugzilla/Constants.pm#L203 Unfortunately, python-bu... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Kangie |
| hostname | github.com |
| expected-hostname | github.com |
| None | 2981c597c945c1d90ac6fa355ce7929b2f413dfe7872ca5c435ee53a24a1de50 |
| turbo-cache-control | no-preview |
| go-import | github.com/python-bugzilla/python-bugzilla git https://github.com/python-bugzilla/python-bugzilla.git |
| octolytics-dimension-user_id | 12552361 |
| octolytics-dimension-user_login | python-bugzilla |
| octolytics-dimension-repository_id | 36042880 |
| octolytics-dimension-repository_nwo | python-bugzilla/python-bugzilla |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 36042880 |
| octolytics-dimension-repository_network_root_nwo | python-bugzilla/python-bugzilla |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 520b65a872113b919c1bbdb03834a50af15859fd |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width