[SERVER-64496] mongo_csfle_v1_get_version fix version number Created: 14/Mar/22  Updated: 29/Oct/23  Resolved: 26/May/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 6.0.0-rc8, 6.1.0-rc0

Type: Bug Priority: Major - P3
Reporter: Sergey Galtsev (Inactive) Assignee: Sergey Galtsev (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Related
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v6.0
Sprint: Security 2022-05-30
Participants:

 Description   

Documentation stipulates:
 

           * Returns a product version in 64-bit integer in four 16-bit words, from high to low:
           * - Major version
           * - Minor version
           * - Revision
           * - Reserved        
           * For example, version 6.2.1 would be encoded as: 0x0006000200010000

However the actual code uses 8 bit shifts, making version 0x0000000006020100. Need to fix version generator to match the spec

If not fixed, every downstream app will have to rewrite versioning logic after 6.1



 Comments   
Comment by Githook User [ 27/May/22 ]

Author:

{'name': 'sergey.galtsev', 'email': 'sergey.galtsev@mongodb.com', 'username': 'brushless-glitch'}

Message: SERVER-64496 make csfle version 64-bit as per spec
Branch: v6.0
https://github.com/10gen/mongo-enterprise-modules/commit/950b77acc607eecc5817f600082bd71cfd956fcc

Comment by Sergey Galtsev (Inactive) [ 26/May/22 ]

Marking it as backwards-compatible, since the change will be backported to 6.0

Comment by Githook User [ 26/May/22 ]

Author:

{'name': 'sergey.galtsev', 'email': 'sergey.galtsev@mongodb.com', 'username': 'brushless-glitch'}

Message: SERVER-64496 make csfle version 64-bit as per spec
Branch: master
https://github.com/10gen/mongo-enterprise-modules/commit/16e26d39d8c7cb0b05188a782d7d693e3ff1550b

Generated at Thu Feb 08 06:00:29 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.