Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#46 Cannot add new attributes to entries

closed-invalid
nobody
Plugins (14)
5
2012-08-15
2012-05-10
Frederik
No

We've (more or less) recently upgraded our luma from 2.3 to 2.4 and encountered a (possible) bug in the new version.
I cannot add new attributes to entries (e.g. users or user groups). Here's what I try to do:
I open the entry of a user or a group (via the "Browser" or "Search" plugin. I then click on the star ("Add attribute...") to add a new attribute. When trying to add an attribute that is not yet present in the entry (e.g. "JpegPhoto" for a user), next to the progress bar in the bottom right corner of the main luma window, the bomb icon appears (I assume it indicates that luma is working). However, it never finishes the operation and the attribute never appears in the entry. When I click the bomb icon, the following error is displayed:

14:46:39 An unhandled exception occured. This is most likely a bug
in the programming of Luma. In order to fix this, send an email with the
following text and a detailed description of what you were doing to
luma-users@lists.sourceforge.net.
File "/usr/lib/luma/base/utils/gui/AdvancedObjectWidget.py", line 712, in addAttribute
self.ldapDataObject.addAttributeValue(x, None)
File "/usr/lib/luma/base/backend/SmartDataObject.py", line 246, in addAttributeValue
attributeName = self.attributeMap[attributeName.lower()]
Reason: <type 'exceptions.KeyError'> 'jpegphoto'

Adding already existing attributes (e.g. "description") works fine, the attribute immediately appears in the entry.
luma 2.4 is running on a Debian Squeeze installation whereas luma 2.3 (which doesn't seem to have this problem) is running on a Debian Lenny system.
If You need any more information, I'll be happy to provide it.

Discussion

  • Frederik
    Frederik
    2012-08-15

    • status: open --> closed-invalid
     
  • Frederik
    Frederik
    2012-08-15

    The problem only persists in the Debian package, not in the upstream version.