creating a new version fails if the _version_count is not updated correctly
Bug #101126 reported by
Jan-Wijbrand Kolman
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Silva |
Fix Released
|
Medium
|
Andy Altepeter |
Bug Description
VersionedContent.py sets _version_count which (only!) in Versioning.py is used
to determine ids for new versions. However, in certain import-cases (like in the
OCEExtension), the default value for this _version_count may result in incorrect
ids for new versions.
short term solution: hack the OCEExtension to update the value of _version_count
to be correct.
long term solution: Silva should not use this counter to determine an id for a
new version, but rather lookup all existing version ids and deduce a new id from
that information (thx to guido_w for the hint).
To post a comment you must log in.
_version_count is now referenced in VersionedConten t.py, tests/test_ version_ management. py, silvaxml/xmlimport, adapters/ version_ management, and Versioning.
Is this something that should be fixed? It seems like a better / more flexible design to check existing version ids and one-up the highest one. I'll be happy to work on this.