Null result from call to ServiceInterface/getProjectByUuid
I tried to retrieve Project data from the running BimServer Instance using the java ClientLibrary. When I call getServiceInterface().getProjectByUuid(), it always return null. I have tested from console too and I have the same result.
To reproduce:
- First, get all project from serviceInterface.getAllProjects() to get the UUID
- Call serviceInterface.getProjectByUuid()
This is not implemented: https://github.com/opensourceBIM/BIMserver/blob/7f1661e117889b9a5da93dd51d2d789e95e2222a/BimServer/src/org/bimserver/database/actions/GetProjectByUuidDatabaseAction.java#L57 The background is, that previously there was a UUID only for projects, revisions, and users. Then, there was a change made that every object in the database has a UUID. The UUID from the project, revision, user was removed and hence this interface method needs reimplementation.
There is also a protobuf issue that might be related to the same change, loosely.
ERROR [ProtocolBuffersConnectionHandler] o.b.s.p.ProtocolBuffersConverter [ProtocolBuffersConverter.java:198] Unimplemented: uuid: 93499369-5622-4cf5-9d2f-6e1fe9b410bb
This appears when running org.bimserver.test.TestProtocolBuffers and during conversion from SProject to the protobuf message on the server side.