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]: Unable to invite guest #40299

Closed
4 of 8 tasks
nfebe opened this issue Sep 6, 2023 · 3 comments · Fixed by #40389
Closed
4 of 8 tasks

[Bug]: Unable to invite guest #40299

nfebe opened this issue Sep 6, 2023 · 3 comments · Fixed by #40389

Comments

@nfebe
Copy link
Contributor

nfebe commented Sep 6, 2023

⚠️ This issue respects the following points: ⚠️

Bug description

Can't create guest share.
On attempt the following is thrown Error creating the share: Unknown share type

Steps to reproduce

  1. Set up https://github.com/nextcloud/guests/
  2. Open the sharing sidebar
  3. Enter an email address
  4. Click Invite guest
  5. Click on "Save share"

Expected behavior

Save share, should successfully register a new share of type guest.

Installation method

None

Nextcloud Server version

master

Operating system

None

PHP engine version

None

Web server

None

Database engine version

None

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

None

Are you using the Nextcloud Server Encryption module?

None

What user-backends are you using?

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

Configuration report

No response

List of activated Apps

No response

Nextcloud Signing status

No response

Nextcloud Logs

No response

Additional info

No response

@nfebe nfebe added bug 2. developing Work in progress labels Sep 6, 2023
@nfebe nfebe self-assigned this Sep 6, 2023
nfebe added a commit to nextcloud/guests that referenced this issue Sep 6, 2023
The object that is built in src/main.js which is added to the user
search bar is used to build a share object and for this app the
shareType is guest, hence it should be included from the source.

Related to : nextcloud/server#40299

Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
backportbot-nextcloud bot pushed a commit to nextcloud/guests that referenced this issue Sep 6, 2023
The object that is built in src/main.js which is added to the user
search bar is used to build a share object and for this app the
shareType is guest, hence it should be included from the source.

Related to : nextcloud/server#40299

Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
@juliusknorr
Copy link
Member

My suggestion would be to revert the fix and try to mirror the behaviour we had before 27.1 where share would be created of type USER.

The new sharing flow implementation seems to have left out custom share result handlers. The code is still present in

but not called at all.

For guest users we should still call the handler so that the guest app can take care of the guest user and share creation.

https://github.com/nextcloud/guests/blob/09bc8db9c148e7be41d16f074bb17d8fb2bcd800/src/main.js#L30-L40

@nfebe
Copy link
Contributor Author

nfebe commented Sep 7, 2023

The handler is still present in the new flow :

// handle externalResults from OCA.Sharing.ShareSearch
if (value.handler) {
const share = await value.handler(this)
this.$emit('add:share', new Share(share))
return true
}

Rather, what I suspect is that converting the base object to a Share object, drops out the handler

So, a way to maintain it, to pass the handler forward is required.

The changes done, would still be nice to have though.

@juliusknorr
Copy link
Member

I think we should still call the handlers upfront before triggering the new sharing flow, so that the guest user is already created, iirc @jancborchardt also agreed on that in one of our calls.

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

Successfully merging a pull request may close this issue.

4 participants