versionone / VersionOne.SDK.Java.APIClient

A library for Java development with the VersionOne REST API.
http://versionone.github.io/VersionOne.SDK.Java.APIClient/
Other
8 stars 13 forks source link

Can not save to V1 13.3.4.5278 with the API #10

Open arnaud-adant-ibboost-com opened 9 years ago

arnaud-adant-ibboost-com commented 9 years ago

services.save(newStory);

com.versionone.apiclient.exceptions.APIException: Error processing response at com.versionone.Oid.fromToken(Oid.java:177) at com.versionone.apiclient.Services.getOid(Services.java:231) at com.versionone.apiclient.Services.parseSaveAssetNode(Services.java:512) at com.versionone.apiclient.Services.save(Services.java:314) at com.versionone.apiclient.Services.save(Services.java:269)

arnaud-adant-ibboost-com commented 9 years ago

Oh, that was a required field preventing the save. Nothing to do with the v1 release number

You really need to handle user exception much better !

Document doc = XMLHandler.buildDocument(reader, path); parseSaveAssetNode(doc.getDocumentElement(), asset);

you need to check if the response contains an error and throw it to the user. !

veplechuc commented 9 years ago

Ok, Thanks for your suggestion. I´ll take a look on that.