Skip to content

[ocis] Rename groups #5099

Closed
Closed

Description

@saw-jan

Describe the bug

Renaming group display name doesn't work

Steps to reproduce

  1. create a new group
curl -XPOST "https://host.docker.internal:9200/graph/v1.0/groups" -d'{"displayName":"grp1"}' -uadmin:admin -vk
  1. Check the newly created group and get the group-id
curl "https://host.docker.internal:9200/graph/v1.0/groups" -uadmin:admin -vk
  1. Rename the group
curl -XPATCH "https://host.docker.internal:9200/graph/v1.0/groups/7950285f-536d-4925-bbae-39831e2845fc" \
-d'{"displayName": "group101"}' -uadmin:admin -vk
< HTTP/1.1 204 No Content
< Date: Wed, 23 Nov 2022 08:59:17 GMT
< X-Graph-Version: 2.0.0-rc.1+0d6a99331
<
  1. Check the groups (:x: group name has not been changed)

Expected behavior

expected that the group is changed to new name

Actual behavior

group name is not changed

Setup

Details

OCIS_XXX=somevalue
OCIS_YYY=somevalue
PROXY_XXX=somevalue

Additional context

Add any other context about the problem here.

Activity

  1. rhafer commented on Nov 23, 2022

    @rhafer
    Contributor

    Hm, currently renaming a group is not supported ;-( . We don't support LDAP ModRDN (the rename operation) yet. The 204 status code is wrong.

  2. v-scharf commented on Nov 24, 2022

    @v-scharf
    Contributor

    will this be implemented in the future? Now I don't even know if we need tests that fail

  3. rhafer commented on Nov 24, 2022

    @rhafer
    Contributor

    will this be implemented in the future?

    I hope so.

  4. rhafer commented on Mar 7, 2023

    @rhafer
    Contributor

    Update the ModRDN operation is now supported in libregraph-idm (#5618).

    Group renames however are still not implemented.

  5. changed the title [-]Updating group displayName request seems OK but group is not being renamed[/-] [+][ocis] Rename groups[/+] on Mar 15, 2023
  6. self-assigned this
    on Mar 28, 2023
  7. v-scharf commented on Mar 30, 2023

    @v-scharf
    Contributor

    failed tests for editing group as $x<=>[y*z^2]! and 50%pass still exist
    https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/apiGraph/editGroup.feature#L23

    I could reproduce it localy. we get 204 but groupName didn't change

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions