Closed hamza221 closed 1 month ago
@dartcafe the backend is throwing an error if share type is not Share::TYPE_EXTERNAL
https://github.com/nextcloud/polls/blob/master/lib/Service/ShareService.php#L196-L209
That's how I came up with the conclusion that it should only be visible for external shares, I'm not aware of any limitation on why email shares are allowed
If you think we should also allow it for Share::TYPE_EMAIL
I can revert the changes and make it into a backend fix
Ah. OK. now I understand your problem. Maybe it is a good idea to first file a bug issue.
So, if I understood you right, the problem is the rejection of changing the name of an email share. This should be possible, which seems to identify a bug at the backend side.
I have to check this, since AFAIR an email share should be converted to an external share after first call via this share. Similar to creating a new share, when entering the poll via public share.
The sharing system seems still to have some flaws, since some changes a few months ago.
So, if I understood you right, the problem is the rejection of changing the name of an email share. This should be possible, which seems to identify a bug at the backend side.
Yes. So basically when you share a poll via an email address and open the poll with that link. When you try to change the mail address or the name you will be always facing an http 403 or 409
In the screenshot I changes the mail address and the name from the original values from the share link. they turn green while typing, but hitting the send arrow icon you face the errors seen in the browser console
Yes, I could reproduce the bug. But I still think, it should be fixed on backend side, since the rejections is the error. Email shares should also be allowed to change name and email address.
I fear the cause is the missing registration (it was removed for these shares by hiding the registration dialog out of convenience) in case of email shares.
And I assume, contact shares are affected as well.
I will get into it deeper over the weekend.
I've tested the changes:
I will merge this, since I want the update to get out quickly.
Steps to reproduce:
Displayname can only be set for external shares.