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

public embed call notification api endpoint #1012

Closed
Cyrille37 opened this issue Oct 27, 2020 · 9 comments · Fixed by #1013
Closed

public embed call notification api endpoint #1012

Cyrille37 opened this issue Oct 27, 2020 · 9 comments · Fixed by #1013

Comments

@Cyrille37
Copy link

Steps to reproduce

  1. create a "embed link" for a calendar
  2. integrate the iframe in a web page
  3. keep you browser logged in Nextcloud (don't logout nextcloud)
  4. visite the wep page with the embeded calendar
  5. look at the browser console for call to XHR GET https://theserver/ocs/v2.php/apps/notifications/api/v2/notifications

Expected behaviour

No call to notifications endpoint in a public embed.

Actual behaviour

Periodically call to notification endpoint (every 30 secondes).

There is no notification call if your browser is not logged in.

Calendar app

Calendar app version: 2.0.3

Client configuration

Browser: whatever

Server configuration

Nextcloud Version: 19.0.1

Browser log

XHR GET https://cloud.xxxx.coop/ocs/v2.php/apps/notifications/api/v2/notifications [HTTP/2 304 Not Modified 309ms]
...
...
@tcitworld tcitworld transferred this issue from nextcloud/calendar Nov 21, 2020
@tcitworld
Copy link
Member

Could we avoid loading the notifications script on @PublicPage ?

@Cyrille37
Copy link
Author

I've changed the description: notification calls only happen when the browser is logged in Nextcloud.

@Cyrille37
Copy link
Author

Cyrille37 commented Nov 21, 2020

notification calls only happen when the browser is logged in Nextcloud.

With this new information, perhaps this issue is not a bug but a behavior ??
Perhaps we can close it ?

@Cyrille37
Copy link
Author

More around:

Displaying the web page while logged in Nextcloud calls notification endpoint, and after logout Nextcloud, notification call is slowing down to 1 minute.

image

@Cyrille37
Copy link
Author

Does not seem to be a bug, but a nice behavior if notification is accurate while showing a embeded calendar ... Don't know ...

@szaimen szaimen transferred this issue from nextcloud/server Jun 18, 2021
@tcitworld
Copy link
Member

@szaimen I'd say the issue lies in server, as server shouldn't include the script for notifications when the page is a @PublicPage.

@tcitworld tcitworld transferred this issue from nextcloud/notifications Jun 18, 2021
@nickvergessen
Copy link
Member

nickvergessen commented Jun 18, 2021

as server shouldn't include the script for notifications when the page is a @PublicPage.

So no notifications while being on Talk? xP

@nickvergessen nickvergessen transferred this issue from nextcloud/server Jun 18, 2021
@tcitworld
Copy link
Member

Oh, right, didn't know where this was hooked in.

@szaimen
Copy link
Contributor

szaimen commented Jun 18, 2021

I must say that was a really fast fix 😅

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

Successfully merging a pull request may close this issue.

4 participants