Skip to content

Very first LDAP config has empty ID #3270

@MorrisJobke

Description

@MorrisJobke

The first created LDAP config has the ID `` (empty string). That makes it hard to use the OCS API in #3162 to manipulate this, because then the response is:

$ curl -X GET http://admin:admin@localhost/server/ocs/v2.php/apps/user_ldap/api/v1/config/ -H  "OCS-APIRequest: true" -i
<?xml version="1.0"?>
<ocs>
 <meta>
  <status>failure</status>
  <statuscode>404</statuscode>
  <message>Invalid query, please check the syntax. API specifications are here: http://www.freedesktop.org/wiki/Specifications/open-collaboration-services. DEBUG OUTPUT:
</message>
 </meta>
 <data/>
</ocs>

@blizzz Any idea how to prevent this and fix it?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions