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

[Bug]: getAccessList in ShareByMailProvider uses incorrect array key #32630

Closed
4 of 8 tasks
ASerbinski opened this issue May 27, 2022 · 3 comments · Fixed by #32631
Closed
4 of 8 tasks

[Bug]: getAccessList in ShareByMailProvider uses incorrect array key #32630

ASerbinski opened this issue May 27, 2022 · 3 comments · Fixed by #32631
Labels
1. to develop Accepted and waiting to be taken care of 25-feedback bug feature: sharing
Milestone

Comments

@ASerbinski
Copy link
Contributor

⚠️ This issue respects the following points: ⚠️

  • This is a bug, not a question or a configuration/webserver/proxy issue.
  • This issue is not already reported on Github (I've searched it).
  • Nextcloud Server is up to date. See Maintenance and Release Schedule for supported versions.
  • I agree to follow Nextcloud's Code of Conduct.

Bug description

Per documentation https://github.com/nextcloud/server/blob/master/lib/private/Share20/Manager.php#L1671 -- share by mail should use the array key "mail". Instead, it is using the array key "public", which collides with array key used in DefaultShareProvider for share by link; https://github.com/nextcloud/server/blob/master/lib/private/Share20/DefaultShareProvider.php#L1368

Change is required here;
https://github.com/nextcloud/server/blob/master/apps/sharebymail/lib/ShareByMailProvider.php#L1211

Steps to reproduce

Not applicable

Expected behavior

ShareByMailProvider should use "mail" as array key.

Installation method

No response

Operating system

No response

PHP engine version

No response

Web server

No response

Database engine version

No response

Is this bug present after an update or on a fresh install?

No response

Are you using the Nextcloud Server Encryption module?

No response

What user-backends are you using?

  • Default user-backend (database)
  • LDAP/ Active Directory
  • SSO - SAML
  • Other

Configuration report

No response

List of activated Apps

N/A

Nextcloud Signing status

No response

Nextcloud Logs

No response

Additional info

No response

@ASerbinski ASerbinski added bug 0. Needs triage Pending check for reproducibility or if it fits our roadmap labels May 27, 2022
@kesselb
Copy link
Contributor

kesselb commented May 27, 2022

Sounds good to me. Would you mind to submit a pr?

@ASerbinski
Copy link
Contributor Author

Sounds good to me. Would you mind to submit a pr?

I'm working on it now.

@szaimen
Copy link
Contributor

szaimen commented Jan 23, 2023

Hi, please update to 24.0.9 or better 25.0.3 and report back if it fixes the issue. Thank you!

My goal is to add a label like e.g. 25-feedback to this ticket of an up-to-date major Nextcloud version where the bug could be reproduced. However this is not going to work without your help. So thanks for all your effort!

If you don't manage to reproduce the issue in time and the issue gets closed but you can reproduce the issue afterwards, feel free to create a new bug report with up-to-date information by following this link: https://github.com/nextcloud/server/issues/new?assignees=&labels=bug%2C0.+Needs+triage&template=BUG_REPORT.yml&title=%5BBug%5D%3A+

@kesselb kesselb added 1. to develop Accepted and waiting to be taken care of 25-feedback and removed needs info 0. Needs triage Pending check for reproducibility or if it fits our roadmap labels Jan 23, 2023
@AndyScherzinger AndyScherzinger added this to the Nextcloud 29 milestone Mar 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1. to develop Accepted and waiting to be taken care of 25-feedback bug feature: sharing
Projects
None yet
5 participants