nextcloud / server

☁️ Nextcloud server, a safe home for all your data
https://nextcloud.com
GNU Affero General Public License v3.0
26.63k stars 3.99k forks source link

Mail invitation - There was an error updating your attendance status. #15814

Open netaviator opened 5 years ago

netaviator commented 5 years ago

Steps to reproduce

  1. Create an appointment
  2. Add attendee to meeting -> mail is created
  3. Click accept button in mail

Expected behaviour

Status of attendee should be updated in the calendar view.

Actual behaviour

The following error is shown: There was an error updating your attendance status. Please contact the organizer directly.

Already tried

I already found this post with the same problem and tried to use another mail address for my Nextcloud account without success. There is currently no user sharing the exact same mail address. https://help.nextcloud.com/t/solved-cannot-accept-calendar-invitation/50154

Server configuration

Operating system: Ubuntu 16.04 Web server: Apache Database: MySQL PHP version: 7.2.12 Server version: (see your admin page) 15.0.7 Calendar version: (see the apps page) 1.6.5 Updated from an older installed version or fresh install: Yes, updated since ownCloud 8 Signing status (ownCloud/Nextcloud 9.0 and above):

No errors have been found.

List of activated apps:

Enabled:
- accessibility: 1.1.0
- activity: 2.8.2
- admin_audit: 1.5.0
- bruteforcesettings: 1.3.0
- calendar: 1.6.5
- cloud_federation_api: 0.1.0
- contacts: 3.1.1
- data_request: 1.2.0
- dav: 1.8.1
- deck: 0.6.1
- federatedfilesharing: 1.5.0
- federation: 1.5.0
- files: 1.10.0
- files_markdown: 2.0.6
- files_pdfviewer: 1.4.0
- files_sharing: 1.7.0
- files_texteditor: 2.7.0
- files_trashbin: 1.5.0
- files_versions: 1.8.0
- files_videoplayer: 1.4.0
- gallery: 18.2.0
- groupfolders: 3.0.0
- lookup_server_connector: 1.3.0
- notifications: 2.3.0
- oauth2: 1.3.0
- password_policy: 1.5.0
- provisioning_api: 1.5.0
- quota_warning: 1.4.0
- sharebymail: 1.5.0
- tasks: 0.9.8
- theming: 1.6.0
- twofactor_backupcodes: 1.4.1
- twofactor_totp: 2.1.2
- twofactor_u2f: 2.1.3
- updatenotification: 1.5.0
- workflowengine: 1.5.0
Disabled:
- comments
- encryption
- files_external
- files_retention
- firstrunwizard
- logreader
- nextcloud_announcements
- serverinfo
- support
- survey_client
- systemtags
- user_ldap

Nextcloud configuration:

{
"system": {
"instanceid": "***REMOVED SENSITIVE VALUE***",
"passwordsalt": "***REMOVED SENSITIVE VALUE***",
"secret": "***REMOVED SENSITIVE VALUE***",
"trusted_domains": [
"cloud.xxxxxxx.xxxxxxx"
],
"datadirectory": "***REMOVED SENSITIVE VALUE***",
"overwrite.cli.url": "https:\/\/cloud.xxxxxxx.xxxxxxx",
"dbtype": "mysql",
"version": "15.0.7.0",
"dbname": "***REMOVED SENSITIVE VALUE***",
"dbhost": "***REMOVED SENSITIVE VALUE***",
"dbport": "",
"dbtableprefix": "oc_",
"dbuser": "***REMOVED SENSITIVE VALUE***",
"dbpassword": "***REMOVED SENSITIVE VALUE***",
"logtimezone": "UTC",
"installed": true,
"maintenance": false,
"loglevel": 2,
"theme": "",
"trashbin_retention_obligation": "auto, 14",
"mail_domain": "***REMOVED SENSITIVE VALUE***",
"mail_from_address": "***REMOVED SENSITIVE VALUE***",
"mail_smtpmode": "sendmail",
"mail_smtpauthtype": "LOGIN",
"updater.release.channel": "stable"
}
}

Are you using external storage, if yes which one: local/smb/sftp/... no

Are you using encryption: yes/no no

Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/... no

Client configuration

Browser: Firefox , Chrome

Operating system: Windows 10, macOSX, iOS

CalDAV-clients: iOS

Logs

Web server error log

Nothing

Log file (data/nextcloud.log)

Nothing

Browser log

Nothing
georgehrke commented 5 years ago

Is it in a calendar shared with you?

=> there already is a Server Ticket about this in the Server.

Do all Nextcloud users have unique email addresses?

=> If no, that’s not supported

netaviator commented 5 years ago

No, the calendar used is my default calendar and i can confirm, that there are no duplicates in the mail-addresses.

hostingnuggets commented 5 years ago

Do all Nextcloud users have unique email addresses?

=> If no, that’s not supported

@georgehrke Does this problem only affect the accounts which have non-unique e-mail addresses or does it affect all accounts as soon as there is one non-unique e-mail address?

netaviator commented 5 years ago

Any update on this? I still have the same error with Nextcloud version 16.0.1 and calendar version 1.7.0. I can confirm that the user list does not show users with the same mail address and i see no duplicat mail addresses in the db, too.

wolfgangsiefert commented 5 years ago

I Have exact the same issue with one user in my nextcloud installation. Version 15.0.8 One User with unique Email-Address can't create working invitations, other users are working... The calendar is not shared

Six81 commented 5 years ago

Hi there, any Updates on this? I'm having the same issue but with every user.

I am on NC 16.0.3 and Calendar 1.7.0, i have no users with the same Mail address.

I create an appointment on my own personal cal, add an attendee (one of my other private Mail addresses, not connected to the system), i get the invitation mail, click on "accept" and i get the error: There was an error updating your attendance status. Please contact the organizer directly.

I have zero clue where to look from here. I know that this is the case on shared calendars and that there is an issue if there are double Mail addresses but non of this is the case here. Any help?

Toka69 commented 5 years ago

Hello.

The same problem, on two nextclouds. Each with NC 16.0.0 and calendar 1.7.0

CamZie commented 4 years ago

Hello, also same problem here with NC 16.0.3 also without any e-mail duplicates.

feutl commented 4 years ago

same problem on my server when clicking on the mails sent to the invited person via email. in my case it is a email address not assigned to a user insight nextcloud. Simply because it is my office mail and my private mail is assigned to the user in nextcloud.

NC: 17.0.3 Calendar App: 2.0.1

mokkin commented 4 years ago

I can confirm this.

NC: 18.0.3 Calendar: 2.0.3

jrester commented 4 years ago

What are you using for background jobs? I had the same problem and switching from ajax to cron seems to have fixed it.

feutl commented 4 years ago

I am using cron

RailsViceRoads commented 3 years ago

I have the same behaviour on one NC instance. If i chose the accept button inside the invitation, it will result in an error on the NC page: InvitationError

NextCloud versions { "id": "removedbyme", "items": [ [ "server", "version", "19.0.4.2" ], [ "server", "code", "other" ], [ "server", "enable_avatars", "yes" ], [ "server", "enable_previews", "yes" ], [ "server", "memcache.local", "\\OC\\Memcache\\APCu" ], [ "server", "memcache.distributed", "none" ], [ "server", "asset-pipeline.enabled", "no" ], [ "server", "filelocking.enabled", "yes" ], [ "server", "memcache.locking", "none" ], [ "server", "debug", "no" ], [ "server", "cron", "cron" ], [ "php", "version", "7.3.6" ], [ "php", "memory_limit", 536870912 ], [ "php", "max_execution_time", 3600 ], [ "php", "upload_max_filesize", 535822336 ], [ "database", "type", "mysql" ], [ "database", "version", "5.6.19" ], [ "database", "size", 14229504 ], [ "apps", "accessibility", "1.5.0" ], [ "apps", "activity", "2.12.1" ], [ "apps", "admin_audit", "1.9.0" ], [ "apps", "announcementcenter", "3.8.1" ], [ "apps", "bruteforcesettings", "disabled" ], [ "apps", "calendar", "2.0.4" ], [ "apps", "caniupdate", "disabled" ], [ "apps", "cloud_federation_api", "1.2.0" ], [ "apps", "comments", "1.9.0" ], [ "apps", "contacts", "3.4.0" ], [ "apps", "contactsinteraction", "1.0.0" ], [ "apps", "dav", "1.15.0" ], [ "apps", "federatedfilesharing", "1.9.0" ], [ "apps", "federation", "1.9.0" ], [ "apps", "files", "1.14.0" ], [ "apps", "files_lock", "0.8.3" ], [ "apps", "files_pdfviewer", "1.8.0" ], [ "apps", "files_rightclick", "0.16.0" ], [ "apps", "files_sharing", "1.11.0" ], [ "apps", "files_texteditor", "disabled" ], [ "apps", "files_trashbin", "1.9.0" ], [ "apps", "files_versions", "1.12.0" ], [ "apps", "files_videoplayer", "1.8.0" ], [ "apps", "firstrunwizard", "2.8.0" ], [ "apps", "gallery", "disabled" ], [ "apps", "groupfolders", "7.1.0" ], [ "apps", "impersonate", "1.6.1" ], [ "apps", "logreader", "2.4.0" ], [ "apps", "lookup_server_connector", "1.7.0" ], [ "apps", "nextcloud_announcements", "1.8.0" ], [ "apps", "notifications", "2.7.0" ], [ "apps", "oauth2", "1.7.0" ], [ "apps", "password_policy", "1.9.1" ], [ "apps", "passwords", "2020.10.0" ], [ "apps", "photos", "1.1.0" ], [ "apps", "polls", "1.5.4" ], [ "apps", "privacy", "1.3.0" ], [ "apps", "provisioning_api", "1.9.0" ], [ "apps", "recommendations", "disabled" ], [ "apps", "serverinfo", "1.9.0" ], [ "apps", "settings", "1.1.0" ], [ "apps", "sharebymail", "1.9.0" ], [ "apps", "spreed", "9.0.4" ], [ "apps", "support", "1.2.1" ], [ "apps", "survey_client", "1.7.0" ], [ "apps", "systemtags", "1.9.0" ], [ "apps", "tasks", "0.13.3" ], [ "apps", "templateeditor", "disabled" ], [ "apps", "text", "3.0.1" ], [ "apps", "theming", "1.10.0" ], [ "apps", "twofactor_backupcodes", "1.8.0" ], [ "apps", "updatenotification", "1.9.0" ], [ "apps", "user_external", "disabled" ], [ "apps", "viewer", "1.3.0" ], [ "apps", "workflowengine", "2.1.0" ], [ "stats", "num_files", 20647 ], [ "stats", "num_users", 17 ], [ "stats", "num_storages", 22 ], [ "stats", "num_storages_local", 1 ], [ "stats", "num_storages_home", 17 ], [ "stats", "num_storages_other", 4 ], [ "stats", "num_comments", 140 ], [ "stats", "num_comment_markers", 7 ], [ "stats", "num_systemtags", 6 ], [ "stats", "num_systemtags_mappings", 1 ], [ "files_sharing", "num_shares", 34 ], [ "files_sharing", "num_shares_user", 2 ], [ "files_sharing", "num_shares_groups", 21 ], [ "files_sharing", "num_shares_link", 2 ], [ "files_sharing", "num_shares_link_no_password", 2 ], [ "files_sharing", "num_fed_shares_sent", 0 ], [ "files_sharing", "num_fed_shares_received", 0 ], [ "files_sharing", "permissions_1_1", "6" ], [ "files_sharing", "permissions_2_1", "8" ], [ "files_sharing", "permissions_3_1", "2" ], [ "files_sharing", "permissions_1_3", "1" ], [ "files_sharing", "permissions_4_15", "1" ], [ "files_sharing", "permissions_1_17", "7" ], [ "files_sharing", "permissions_1_19", "7" ], [ "files_sharing", "permissions_0_31", "2" ], [ "encryption", "enabled", "no" ], [ "encryption", "default_module", "no" ] ] }

If I chose "Weitere Optionen..." (more options ?) from the invitation mail, I'll get the correct configuration page on NC. But the Save-Button results to the same error as above.

May be interesting: There is an other NC instance, hosted by the same provider, but on an other server. This instance will work as expected. The NC versions are exactly the same. Difference are the OS-Versions on the servers and the history of the instances. The first is older (more updates installed).

sushifrick commented 3 years ago

I do see the same problem, but i was able to find a disabled test user which caused the problem. As the mail attribute is not unique in our company it would be great to have working e-mail invitations without unique e-mail addresses based on the hash in the accept- or decline links from the invitation e-mail.

cnmicha commented 3 years ago

Same issue on NC 20.0.1 with calendar app 2.1.2. No users have duplicate email addresses. I'm using system cron.

I fixed the issue by adjusting "Restrict users to only share with users in their groups" in the admin sharing settings to false.

JMoVS commented 3 years ago

I read somewhere that the problem might be with usernames which contain spaces. Did somebody try that?

cnmicha commented 3 years ago

I read somewhere that the problem might be with usernames which contain spaces. Did somebody try that?

It was not the case as I had the problem in Nov 2020

JMoVS commented 3 years ago

@cnmicha Did you get it solved?

cnmicha commented 3 years ago

@JMoVS A workaround was to set "Restrict users to only share with users in their groups" in the admin sharing settings to false.

JMoVS commented 3 years ago

@cnmicha Wow that is a weird work around. Does this prevent them from creating public links?

cnmicha commented 3 years ago

@JMoVS Maybe.. I haven't traced down the problem any further

JMoVS commented 3 years ago

@cnmicha Hmm in my case it was already not enabled :-/

RodSeq commented 3 years ago

@cnmicha @JMoVS I had the same issue and confirm that the workaround works for me:

Thanks !

feutl commented 3 years ago

I can confirm that it does not work, also not with a workaround in place ;) because for me this was always the case. NC 20.0.5 Calendar 2.1.3

ei8fdb commented 3 years ago

Go in "Settings->Administration->Sharing", then disable the checkbox “Restrict users to only share with users in their groups” does not fix this issue here with:

Nextcloud: 20.0.9 Calendar: 2.2.0

User inviting: name@nextcloud-instance.tld Email address being invited: name+textstring@domain.tld

RodSeq commented 3 years ago

The workaround (disable the checkbox “Restrict users to only share with users in their groups”) is able to remove the error message "There was an error updating your attendance status."

However doing that creates a Privacy setting issue for admins, as users from a specified group can access contacts of other groups within my NC instance: for this reason, I agree that the workaround is not fixing the issue, just a temporary solution hoping for a definitive fix in the next NC release.

My setting where the issue is still not fixed: Nextcloud 21.0.1 and Calendar App 2.2.1.

loelkes commented 3 years ago

In my case the error only appears if users are not logged in. Logging in to my account and then clicking on the link (with the browser used for the login) solves this issue. Lifting the share restriction for users as suggested previously is not an option in my case.

cnmicha commented 3 years ago

Unfortunately logging in is not an option if an organization wants to invite external users that do not have a NC account associated with their email address.

loelkes commented 3 years ago

Unfortunately logging in is not an option if an organization wants to invite external users that do not have a NC account associated with their email address.

Yes, I understand. But for those who do have an account there's no suggestion that they should log in. They will write to the organiser who will be as clueless as well why it fails. User who do have an account could be redirect to the login if necessary. Or at least place a hint in the error message.

ei8fdb commented 3 years ago

[...] for those who do have an account there's no suggestion that they should log in. User who do have an account could be redirect to the login if necessary. Or at least place a hint in the error message.

Redirection to log in is the most usable (for the user with an account) in this scenario. The way to solve it is not by making it impossible to invite external attendees. (not that you were suggesting that) Even Google Calendar can send invites to external attendees. :)

loelkes commented 3 years ago

I've tested both scenarios, attendees with external email address and even with a plus (+) in the address. Both fail if the browser accessing the confirmation link is not logged in. Both succeed if the browser is logged in. It is not important who is logged in.

After going a bit through the source it seems that something in the sabre plugin fails if the user is not logged in.

https://github.com/nextcloud/server/blob/0447b53bda9fe95ea0cbed765aa332584605d652/apps/dav/lib/Controller/InvitationResponseController.php#L86-L88

Similar for decline() and processMoreOptionsResult().

RodSeq commented 3 years ago

Is this bug fixed in Nextcloud 22.0.0 ? If not, when the bug is scheduled to be fixed ?

NB: this is not a critical bug, rather a very dammaging bug for the image of Nextcloud towards external Users that could be turned into new NC Users.

loelkes commented 3 years ago

Is this bug fixed in Nextcloud 22.0.0 ? If not, when the bug is scheduled to be fixed ?

Just did a test and it's still there in 22 (Calendar 2.3.1). And while looking through the code I'm not certain if this is an issue within Nextcloud or if comes from the sabre/dav plugin. Therefore this might be the wrong place, but I was unable to do more research until now.

Thatoo commented 2 years ago

I get the same issue as I explain in the forum https://help.nextcloud.com/t/external-attendees-cannot-accept-invitations/69932/5 I tried to give logs when an external attendee was clicking on the "Accept" button : https://paste.yunohost.org/osoparuwor.pl I can't read it. I could take time to do test thought with guidance, if needed. Nextcloud 21.0.4 with calendar app 2.3.3

Der-K-2000 commented 2 years ago

Well, will there be a fix after the report a few years ago? The annoying bug and for clients not clear error still appear in v22.2.3.

Beheadedstraw commented 2 years ago

Kinda disheartening that a nearly 3 year old bug still isn't fixed.

NC23 has this issue as well. Seems to not work with emails without a NC account and disabling the sharing with user groups only is not an option due to security and privacy concerns.

FinnMer commented 2 years ago

Looks like there will be a fix in the upcoming updates 🥳

annaithoma commented 2 years ago

I'm having the same issue since today - until yesterday everything worked fine but now all attempts to book an appointment return with the error message to contact the organizer directly. However the attempts to book an appointment show up as "preliminary" appointments in the calendar.

Edit: this seems to be related to the "skip validation email" function. When the validation step is required, booking appointments is possible. When the validation step is not required, booking an appointment leads to the error message (please contact the organizer directly).

shitchell commented 2 years ago

Just tossing my name into the pile of affected users. Using system cron and all unique emails. Fresh install using the web installer on an Ubuntu 20.04 VPS. Nginx used for an HTTPS proxy. :shrug:

shu0406 commented 2 years ago

I only get that error when inviting somebody to an (reccurring) event. If I invite somebody for a single event it works just fine. So my "workaround" is to create a single event next to the reccuring event which is kind of annoying...

ksteinb commented 2 years ago

Any progress on this issue?

francescor commented 2 years ago

We've lost several hours on this, and it is pretty painful.

Nextcloud Hub II (23.0.5), Ubuntu 20.04.4, nginx

AntonOellerer commented 1 year ago

Hey, I am having the same problem, and I just noticed the following error messages (logged at the Debug level, coming from webdav) in the logs:

Sabre\DAV\Exception\NotAuthenticated: No public access to this resource., No 'Authorization: Basic' header found. Either the client didn't send one, or the server is misconfigured, No 'Authorization: Bearer' header found. Either the client didn't send one, or the server is mis-configured, No 'Authorization: Basic' header found. Either the client didn't send one, or the server is misconfigured
Beheadedstraw commented 1 year ago

Hey, I am having the same problem, and I just noticed the following error messages (logged at the Debug level, coming from webdav) in the logs:

Sabre\DAV\Exception\NotAuthenticated: No public access to this resource., No 'Authorization: Basic' header found. Either the client didn't send one, or the server is misconfigured, No 'Authorization: Bearer' header found. Either the client didn't send one, or the server is mis-configured, No 'Authorization: Basic' header found. Either the client didn't send one, or the server is misconfigured

More than likely the only legitimate way to fix this is for them to have a randomly generated background auth/auth token for just calendar invites. As it stands now I'm pretty sure it requires an NC auth token or credentials for accepting any sort of invitation due to "sharing with user groups only" being enabled.

AntonOellerer commented 1 year ago

Do you know how to disable "sharing with user groups only"?

Beheadedstraw commented 1 year ago

I would need to reinstall Nextcloud as I blew away my last install since it was a POC, but I know it was in general permissions for the calendar app.

On Wed, Sep 14, 2022 at 10:31 AM Anton Oellerer @.***> wrote:

Do you know how to disable "sharing with user groups only"?

— Reply to this email directly, view it on GitHub https://github.com/nextcloud/server/issues/15814#issuecomment-1246944842, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABNNBZ4LCFTXIWSPQUE6YJLV6HVV7ANCNFSM4HRDVYWQ . You are receiving this because you commented.Message ID: @.***>

-- Devin Arendt Cell: 815-751-7723

AntonOellerer commented 1 year ago

Do you mean in the admin settings or in the app user settings? Or in each specific calendar setting?

AntonOellerer commented 1 year ago

Upon further examination it seems as if the error listed above is not in connection to the problem, sorry

st-schilling commented 1 year ago

NC24.0.5 is still showing this error. Setting "sharing with user groups only" is disabled. I'm trying to invite a single attendee, who is not having an account at the installation, to the single (not reoccurring) meeting.

ImaCrea commented 1 year ago

Seen also here on NC 23.0.9 with an user who has a "." (dot) in their email address (like first.last@company.com). With an email without dot, it works (!)

Also, the "Restrict users to only share with users in their groups" option is set to false on this instance. On another instance (same NC version) where this is set to true it doesn't work even without a dot in the email address.