[Objects] - ACL do not take LDAP options into consideration
[Objects] - ACL do not take LDAP options into consideration
Description
This issue was seen during a webservice call on supannCMSId and supannCMSAppId attributes. The ACL returns an error.
"message": "Could not find ACL for attribute \"supannCMSAppId;x-koha-xmsb\" for type \"user\"",
Options are no taken into account, removing the options allows the ACL to be checked properly.
Distribution Name and Version
Debian 11
FusionDirectory Version
1.4
Origin of php packages
Depots
Steps to Reproduce
After authentication, a simple get call such as the following reports the issue.
http://localhost/fusiondirectory/rest.php/v1/objects/user/?base=ou%3Dpeople,dc%3Dhome&filter=(uid%3Djonathan)&attrs%5BsupannCMSAppId%3Bx-koha-xmsb%5D=*
Expected behavior:
Following output desired (E.g)
{
"uid=jonathan,ou=people,dc=home": {
"supannCMSAppId;x-koha-xmsb": [
"1"
]
}
Actual behavior:
[
{
"class": "FusionDirectoryException",
"message": "Could not find ACL for attribute \"supannCMSAppId;x-koha-xmsb\" for type \"user\"",
"line": 96,
"file": "/usr/share/fusiondirectory/include/class_objects.inc"
}
]
Reproduces how often:
100%
Additional Information
Seems like the following attributes does not report data, to be investigated if related.
``attrs[supannCMSAppId]=*,