mongodb driver version detection fails for versions containing "-"
Bug #1709607 reported by
Cristian Calin
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
zaqar |
In Progress
|
Undecided
|
Cristian Calin |
Bug Description
The mongodb driver contains a function parsing the mongodb version.
https:/
tuple(map(int, server_
This assumes that the server_info contains only integers split by '.'. Some versions of mongo (like percona release) add extra build identifiers and this function fails leading to the driver failing to initialize.
The fix is to only use the first two components of the split array in the map call.
Changed in zaqar: | |
assignee: | nobody → Cristian Calin (cristi-calin) |
To post a comment you must log in.
Fix proposed to branch: master /review. openstack. org/492112
Review: https:/