opensourceBIM / BIMserver

The open source BIMserver platform
GNU Affero General Public License v3.0
1.56k stars 611 forks source link

Duplicate OIDs within the same Database #1243

Open muren400 opened 2 years ago

muren400 commented 2 years ago

Hi,

not sure if this is actually a bug or not, but I read somewhere in the wiki, that oids should be unique within a database. Nonetheless I stumbled upon two different IfcProject entries that share the same oid. Is this a very unusual glitch that one should be concerned about or can there be duplicate oids for different revisions?

Thanks, Andreas

PS.: this happened in 1.5.182

hlg commented 2 years ago

Depends on how the two IfcProject entities are "different". If you create revisions by using the low level interface, then yes - you will have one stable oid for an entity throughout different revisions (see Database versioning). In that case, the two IfcProject entities wouldn't actually be "different". Otherwise I think it is rather unexpected.

muren400 commented 2 years ago

It's two different IFC Files checked in into two different subprojects.

muren400 commented 2 years ago

There were two rollbacks during the checkin of the first model. The Server was restarted twice before the checkin of the second model.