#4454 attributelevelrights for some attributes returned as empty base64 object representation
Closed: Fixed None Opened 9 years ago by pvoborni.

E.g.:

"attributelevelrights": {
    "aci": {
        "__base64__": ""
    }, 
    "description": "rscwo", 
    "ipatokendisabled": "rscwo", 
    "ipatokenhotpcounter": {
        "__base64__": ""
    }, 
    "ipatokenmodel": "rscwo", 
    "ipatokennotafter": "rscwo", 
    "ipatokennotbefore": "rscwo", 
    "ipatokenotpalgorithm": "rsc", 
    "ipatokenotpdigits": "rsc", 
    "ipatokenotpkey": {
        "__base64__": ""
    }, 
    "ipatokenowner": "rsc", 
    "ipatokenserial": "rscwo", 
    "ipatokenuniqueid": "rsc", 
    "ipatokenvendor": "rscwo", 
    "managedby": "rsc", 
    "nsaccountlock": {
        "__base64__": ""
    }, 
    "objectclass": "rsc"
},

Consequences

Web UI throws an exception.

Expected behavior

Each attribute level right should be returned as a string if present

Reproduction

  1. login to Web UI as 'normal' user
  2. create an htop token
  3. or view a details page of a different user

I did not notice it while logged-in as admin.

We could also handle it in Web UI, but that doesn't change the regression in the output.


regression caused by #4359, moving to the same milestone

Metadata Update from @pvoborni:
- Issue assigned to pvoborni
- Issue set to the milestone: FreeIPA 4.0.1

7 years ago

Login to comment on this ticket.

Metadata