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] 401 Unauthorized for Thumbnails #599

Open
de-ich opened this issue Jan 24, 2025 · 1 comment
Open

[BUG] 401 Unauthorized for Thumbnails #599

de-ich opened this issue Jan 24, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@de-ich
Copy link

de-ich commented Jan 24, 2025

Describe the bug
When using the authorization feature of the AAS environment, trying to retrieve the thumbnail of an AAS always returns "401 Unauthorized".

To Reproduce
Steps to reproduce the behavior:

  1. Clone the basyx-server-sdk repo
  2. Run "docker compose up" in the "BasyxSecured" example folder (https://github.com/eclipse-basyx/basyx-java-server-sdk/tree/main/examples/BaSyxSecured)
  3. Login to the UI using user "john.doe" (pw "johndoe") - a user with admin rights (read/write for everything)
  4. Click on the "Demo AAS V3" - an AAS with a thumbnail defined
  5. Notice that the thumbnail is not displayed and a 401 error is shown in the console/network tab of the browser

This behavior also happens with other AAS that include a thumbnail.

Expected behavior
The thumbnail is retrieved/displayed if the user has read rights for the AAS

BaSyx (please complete the following information):

  • BaSyx v2.0
  • BaSyx Java SDK

Screenshots

Image

BaSyx configuration
"BasyxSecured" example from https://github.com/eclipse-basyx/basyx-java-server-sdk/tree/main/examples/BaSyxSecured

@de-ich de-ich added the bug Something isn't working label Jan 24, 2025
@aaronzi
Copy link
Member

aaronzi commented Feb 7, 2025

Thank you for reporting this issue.
I can confirm the problem you described.
We will have a look at this and provide a fix.

@aaronzi aaronzi moved this from To triage to Ready in Support Requests Feb 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Ready
Development

No branches or pull requests

2 participants