BIMserver
BIMserver copied to clipboard
Revision checkout does not work properly
Good day, when I try to checkout a model specifying roid, serializerOid and sync flag I get this error:
Request:
{
"token": "f5a2bfc048d8c86eaeeea25c06d2f10ee840b40d467938e1e5be6cd8b06f10e73119c37701c4e8eae2d40087d0805db5",
"request": {
"interface": "ServiceInterface",
"method": "checkout",
"parameters": {
"roid": 65539,
"serializerOid": 262182,
"sync": "true"
}
}
}
Response:
{
response: {
exception: {
__type: 'UserException',
message: 'Only IFC or IFCXML allowed when checking out'
}
}
}
I am sure that the model/ifc-file is consistent and correct, I have checked the serializer and is enabled and the roid is correct.
Referring to https://github.com/opensourceBIM/BIMserver/issues/736 I have read that the checkout is not used anymore, but I am developing a backgroud job that write data in the model/ifc-file, this job first operate a checkout/download after the computation execute a checkin, than I want to lock the revision in same way, while the job is working.
If the checkout is a "deprecated" function how I can lock the revision? If there are not solution on board I will write in database the lock, do you have any suggestions or ideas?
Kind regards and thanks for the support Michele Spinella
Issue #736 was fixed with commit 3c12d4c, but only for non-streaming serializers. The fix is not in release 1.5.182 though.
Good morning and thanks. Maybe I can do my build of bimserver and release a new version? Thanks
Good morning, I have cloned the code of bimserver and built it with mvn package -DskipTests because there was some failures in tests, is this correct? As now I have obtained the WAR to deploy. Any suggestions? Thanks and kind regards Michele Spinella
There are some tests that need a running BIMserver. Probably those are the source of the failure you see. Building the snapshot version with the skipTests
option is fine and should leave you with the JAR and WAR package for further usage and deployment. Once we release version 1.5.183, it will contain the various bug fixes since mid 2020.
Good day, I have built the server version 1.5.183, Have I to use bimserverclientlib 1.5.183 or can I use clientlib 1.5.182? Thanks and regards Michele
There have been some changes in the client library as well, but I think those are quite isolated from the server-side changes. So, at the moment I think, in general, either cient lib version should work with the server snapshot build. Be aware that the client library module depends on the shared and pluginbase modules. Thus if your client application uses the snapshot version of the client library, it also needs snapshot versions of the shared and pluginbase modules.
Client side I am using only the clientlib and not plugins.