-
Type:
Suggestion
-
Resolution: Low Engagement
-
None
-
Component/s: Apps - Team Calendar
-
1
Problem Definition
Anonymous Access to Space with Team Calendar installed causes Safari in iOS to prompt authentication request
Environment
Confluence 6.11.2
Team Calendar 6.0.20
Steps to Reproduce
- Install Team Calendar to Confluence
- Enable Anonymous Access for the Confluence
- Browse to a publicly accessible space without logged in using browsers below:
- Google Chrome
- Safari from iOS
Expected Result
All browsers should be able to load and display the page properly
Actual Result
Safari from iOS specifically, will prompt an authentication request
Meanwhile, other browsers such as Chrome and Firefox, even Safari from MacOS X loads the page just fine
Information
This is becuase browsing the space when Team Calendar is installed will always result in a REST API call that returns with 401 Unauthorized response:
<status>
<status-code>401</status-code>
<message>
Client must be authenticated to access this resource.
</message>
</status>
- /rest/calendar-services/1.0/tips?_=1539931039888
The string of numbers can be different every time the space is loaded
In the case if the user is logged in, this REST call will return with 200 OK but there won't be aren't any useful information being returned
[]
Due to the 401 response it will trigger the authentication prompt on Safari from iOS which can be annoying to the public user since it is not necessary and doesn't provide any useful information after authenticating
Suggested Solution
If this is behavior is not intended, perhaps it can be skipped entirely.
A temporary workaround can be to have JavaScript to detect the type of browser and strip this result from the responses