[NC] Work arround issue nextcloud/server#33751
That issue is fixed in NC 25, but it will likely not be backported to NC 24. It produces issues when modifying users and not modifying their display name. See also: https://github.com/nextcloud/server/issues/33751merge-requests/61/merge
parent
f4a3d38384
commit
c9af7242c0
|
@ -275,10 +275,13 @@ class Nextcloud:
|
|||
self._request("PUT", url, data=data, headers=headers)
|
||||
)
|
||||
if result["ocs"]["meta"]["statuscode"] == 102:
|
||||
raise ProviderItemExists
|
||||
if result["ocs"]["meta"]["statuscode"] == 104:
|
||||
if result["ocs"]["meta"].get("message") != "Invalid displayname":
|
||||
# Workaround for https://github.com/nextcloud/server/issues/33751
|
||||
# Fixed on NC 25
|
||||
raise ProviderItemExists
|
||||
elif result["ocs"]["meta"]["statuscode"] == 104:
|
||||
raise ProviderGroupNotExists
|
||||
if result["ocs"]["meta"]["statuscode"] != 100:
|
||||
elif result["ocs"]["meta"]["statuscode"] != 100:
|
||||
log.error("Get Nextcloud provider user add error: " + str(result))
|
||||
raise ProviderOpError
|
||||
except:
|
||||
|
|
Loading…
Reference in New Issue