Ticket #1930 (new defect)

Opened 11 years ago

Last modified 11 years ago

CPSRemoteController member creation error

Reported by: htonal Owned by: rspivak
Priority: P2 Milestone: CPS 3.5.7
Component: CPSRemoteController Version: TRUNK
Severity: major Keywords:
Cc:

Description

Trying to create a member using addMember() causes an error

/Users/zopes/cps3full/Products/CPSRemoteController/RemoteControllerTool.py(1141)addMember()
-> mtool.addMember(user_id, user_password, user_roles, user_domains)
  /Users/zopes/cps3full/Products/CMFCore/MembershipTool.py(459)addMember()
-> acl_users._doAddUser(id, password, roles, domains)
  /Users/zopes/cps3full/Products/CPSUserFolder/CPSUserFolder.py(483)_doAddUser()
-> dir._createEntry(entry)
  /Users/zopes/cps3full/Products/CPSDirectory/ZODBDirectory.py(183)_createEntry()
-> self._setObject(id, ob)
  /opt/Zope-2.9.7/lib/python/Products/BTreeFolder2/BTreeFolder2.py(417)_setObject()
-> v = self._checkId(id)
  /opt/Zope-2.9.7/lib/python/Products/BTreeFolder2/BTreeFolder2.py(529)_checkId()
-> Folder._checkId(self, id, allow_dup)
> /opt/Zope-2.9.7/lib/python/OFS/ObjectManager.py(74)checkValidId()
-> raise BadRequest, ('Empty or invalid id specified', id) 

Change History

comment:1 Changed 11 years ago by madarche

  • Milestone set to CPS 3.5.0
  • Reporter changed from tracguest to htonal

comment:2 Changed 11 years ago by madarche

  • Severity changed from normal to major

I confirm that I experience the same error.

I also add that I got the same exception when I use the createDocument method, which makes me rise the priority of this ticket.

comment:3 Changed 11 years ago by gracinet

About the error, in the case of member creation, it's really simply that the wished id is transferred as unicode, so I guess a simple str() should fix it. The question is, why is this new ?

On my side I've used createDocument() recently, without this error. Currently working on a kind of sporadic bug, #1943, with this method, though.

Note: See TracTickets for help on using tickets.