Frage

I created a role with a name LDAPGroup and assigned an ldap group. After clicking OK button, I got this error.

500: internal server error

XDMP-AS: (err:XPTY0004) get-element($col, "sec:role", "sec:role-name",
  $role-name, "SEC-ROLEDNE") 
-- Invalid coercion: $role = sec:role-name("LDAPGroup")

Now I can't open my Role page in admin interface. Can someone give me a solution to this problem?

War es hilfreich?

Lösung

Based on the second error message it looks like you somehow created two roles with the same name. Names are supposed to be unique, hence the problem. That could have happened if you double-clicked on the form submit when you first created the role. Or possibly you found a server bug.

From your comments about it sounds like you were able to delete the extra role(s) using XQuery and the sec:remove-role function. However if the admin UI is still behaving oddly or if you can reproduce the problem, you should report it to MarkLogic support: http://www.marklogic.com/services/support/

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top