Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Group name with emoji can be created but file cannot be shared with such groups #2157

Closed
dpakach opened this issue Jun 10, 2021 · 1 comment
Labels

Comments

@dpakach
Copy link
Contributor

dpakach commented Jun 10, 2021

Describe the bug

A clear and concise description of what the bug is.

Steps to reproduce

Steps to reproduce the behavior:

  1. Create a group with emoji in its name
curl -XPOST https://localhost:9200/ocs/v2.php/cloud/groups -d groupid='😀 😁' -u admin:admin -kv

<ocs><meta><status>ok</status><statuscode>200</statuscode><message>OK</message></meta><data></data></ocs>%                                                                                               

  1. Add user einstein to group 😀 😁
curl -XPOST https://localhost:9200/ocs/v2.php/cloud/users/einstein/groups -d groupid='😀 😁' -u admin:admin -kv

<ocs><meta><status>ok</status><statuscode>200</statuscode><message>OK</message></meta><data></data></ocs>%                                                                                                    
  1. Try to share a file to 😀 😁 as admin
 curl -XPOST https://localhost:9200/ocs/v1.php/apps/files_sharing/api/v1/shares -d shareType=1 -d path=/sfold -d permissions=15 -d shareWith='😀 😁' -u admin:admin -kv

Expected behavior

sharing is successful

Actual behavior

sharing fails with following response

<ocs><meta><status>error</status><statuscode>998</statuscode><message>group not found</message></meta></ocs>%                                                                                                 

Setup

Please describe how you started the server and provide a list of relevant environment variables.

OCIS_VERSION=git
BRANCH=master
STORAGE_FRONTEND_UPLOAD_DISABLE_TUS=false

Additional context

Add any other context about the problem here.

@ScharfViktor
Copy link
Contributor

tested on ocis 6.0.0

we use SharingNg and share using groupId or userId

to find user or group which name contains emoji we use GET graph/v1.0/groups?%24search= endpoint

I tried to find by 😀 (%F0%9F%98%80) and it works
image

since we don't support OCS we'll not fix this bug

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants