TypeError: node contents must be a string

Bug #1322234 reported by Maxime Chambreuil (http://www.savoirfairelinux.com)
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenERP knowledge addons
New
Undecided
El Hadji Dem (http://www.savoirfairelinux.com)

Bug Description

Using cmis_read and cmis_write, I get an error message in the create_doc_in_edm job when I try to attach a document to an OpenERP record :

2014-05-22 15:07:20,565 14693 ERROR CMIS openerp.addons.connector.queue.worker: Traceback (most recent call last):
  File "/home/max/openerp/cmis/bzr/connector/connector/queue/worker.py", line 122, in run_job
    job.perform(session)
  File "/home/max/openerp/cmis/bzr/connector/connector/queue/job.py", line 472, in perform
    self.result = self.func(session, *self.args, **self.kwargs)
  File "/home/max/openerp/cmis/bzr/knowledge/cmis_write/ir_attachment.py", line 123, in create_doc_in_edm
    contentType=value['file_type'])
  File "/home/max/openerp/cmis/git/openerp/tools/eggs/cmislib-0.5.1-py2.7.egg/cmislib/model.py", line 2708, in createDocumentFromString
    self, contentString, contentType, contentEncoding)
  File "/home/max/openerp/cmis/git/openerp/tools/eggs/cmislib-0.5.1-py2.7.egg/cmislib/model.py", line 1121, in createDocumentFromString
    contentType, contentEncoding)
  File "/home/max/openerp/cmis/git/openerp/tools/eggs/cmislib-0.5.1-py2.7.egg/cmislib/model.py", line 2756, in createDocument
    contentEncoding)
  File "/home/max/openerp/cmis/git/openerp/tools/eggs/cmislib-0.5.1-py2.7.egg/cmislib/model.py", line 1182, in createDocument
    contentType, contentEncoding)
  File "/home/max/openerp/cmis/git/openerp/tools/eggs/cmislib-0.5.1-py2.7.egg/cmislib/model.py", line 4110, in getEntryXmlDoc
    titleText = entryXmlDoc.createTextNode(properties['cmis:name'])
  File "/usr/lib/python2.7/xml/dom/minidom.py", line 1614, in createTextNode
    raise TypeError, "node contents must be a string"
TypeError: node contents must be a string

Changed in knowledge-addons:
assignee: nobody → El Hadji Dem (http://www.savoirfairelinux.com) (eh-dem)
Revision history for this message
El Hadji Dem (http://www.savoirfairelinux.com) (eh-dem) wrote :
Revision history for this message
Maxime Chambreuil (http://www.savoirfairelinux.com) (max3903) wrote :
Revision history for this message
El Hadji Dem (http://www.savoirfairelinux.com) (eh-dem) wrote :

Just need time to check it

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers