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

Fix detection of protected user API operations #1148

Merged
merged 1 commit into from
Aug 29, 2021

Conversation

ghys
Copy link
Member

@ghys ghys commented Aug 25, 2021

The current implementation would set the access token before trying out calling /rest/sitemaps which would obviously always succeed, since the call would be made with the token. Therefore the "requireToken" flag would not be set properly and prevent the alternative SSE implementation (which allows headers) to be used.

Fixes #1146.

Signed-off-by: Yannick Schaus github@schaus.net

The current implementation would set the access token before trying out calling `/rest/sitemaps` which would obviously always succeed, since the call would be made with the token. Therefore the "requireToken" flag would not be set properly and prevent the alternative SSE implementation (which allows headers) to be used.

Fixes openhab#1146.

Signed-off-by: Yannick Schaus <github@schaus.net>
@ghys ghys requested a review from a team as a code owner August 25, 2021 17:50
@relativeci
Copy link

relativeci bot commented Aug 25, 2021

Job #188: Bundle Size — 10.47MB (-0.3%).

7ebc8c1 vs 8542194

Changed metrics (2/8)
Metric Current Baseline
Initial JS 1.6MB(~+0.01%) 1.6MB
Cache Invalidation 20.79% 25.12%
Changed assets by type (1/7)
            Current     Baseline
JS 8.21MB (-0.39%) 8.24MB

View Job #188 report on app.relative-ci.com

@ghys ghys merged commit b402600 into openhab:main Aug 29, 2021
@ghys ghys deleted the ghys/issue1146 branch August 29, 2021 22:59
@kaikreuzer kaikreuzer added the bug Something isn't working label Sep 5, 2021
@kaikreuzer kaikreuzer added this to the 3.2 milestone Sep 5, 2021
@ghys ghys added the main ui Main UI label Dec 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working main ui Main UI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Deactivation of "Implicite user role" in API-settings blocks items state update
2 participants