﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
914	Logical Doc API	aravind		"I am using the logicaldoc api to update the tags and attributes of a file. It works most of the time however sometimes I get the following error.

'''Status Code: 500
Error: javax.ws.rs.core.Response$ResponseBuilder.status(ILjava/lang/String;)Ljavax/ws/rs/core/Response$ResponseBuilder;'''

I am using the python to call the api in the following way. I am running in a docker compose so I can reference the logicaldoc container with http://logicaldoc ...
I know that the attributes, tags, template id, file and folder id have the right format and are present, since the error description is different to when the attributes and tags are of the wrong form.
'''
#import requests
#BASE_LOGICAL_API = http://logicaldoc:8080/services/rest
meta = {
            ""id"": fileID,
            ""folderId"": folderId,
            ""tags"": tags,
            ""templateId"": TEMPLATE_ID,
            ""attributes"": attributes,
        }
update_url = BASE_LOGICAL_API + ""/document/update""
update_response = requests.put(update_url, data=json.dumps(meta), auth=('admin', 'admin'), headers={""Content-Type"":""application/json"",""Accept"":""application/json"",})
'''"	bug	closed	trivial		Web Services	8.1	worksforme	API, REST, Python framework	
