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: github.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:168da70d-6eef-32d5-ca21-ac4789938902 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9D78:11C600:72716:9CA06:6978A7F0 |
| html-safe-nonce | 9596437fccf1e6334a971558f77922ee58b2f3042490d3efd9a509929e90c007 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RDc4OjExQzYwMDo3MjcxNjo5Q0EwNjo2OTc4QTdGMCIsInZpc2l0b3JfaWQiOiI4NjE3ODQ1MjM2ODc5MTA4MDgwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | e3bc9f1aef7184576fdf738d2134b32f32929a35f9dd3506d20abf194f82e26e |
| 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 | f8aa86d87c47054170094daaf9699b27a28a8448 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width