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] Thumbnail files with same name overwrite each other #518

Open
de-ich opened this issue Nov 7, 2024 · 1 comment
Open

[BUG] Thumbnail files with same name overwrite each other #518

de-ich opened this issue Nov 7, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@de-ich
Copy link

de-ich commented Nov 7, 2024

Describe the bug
If two AASes are uploaded that specifcy a thumbnail with the same name (e.g. "thumbnail.jpg") but different content, these seem overwrite each other so that the thumbnail of the AAS that was uploaded last "wins" and is shown for both AASes.

To Reproduce
Steps to reproduce the behavior:

  1. Create two AASes with different thumbnail images that have the same name (e.g. "thumbnail.jpg").
  2. Upload the first AAS to the BaSyx environment.
  3. Note that the correct thumbnail is stored/displayed, e.g. by using the BaSyx GUI or the Rest API.
  4. Upload the second AAS to the BaSyx environment.
  5. Note that the correct thumbnail is stored/displayed, e.g. by using the BaSyx GUI or the Rest API.
  6. Note that the thumbnail of the first AAS has changed and now also displays the thumbnail of the first AAS.

Expected behavior
Thumbnail files should not override each other and be stored separately.

BaSyx (please complete the following information):
eclipsebasyx/aas-environment:2.0.0-milestone-04

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
I did not check if this problem only occurs for thumbnail or also for other files that are stored in an AAS.

@de-ich de-ich added the bug Something isn't working label Nov 7, 2024
@github-project-automation github-project-automation bot moved this to To triage in Support Requests Nov 7, 2024
@zhangzai123
Copy link
Contributor

Hi @de-ich, thank you for pointing out the problem. We can reproduce it with MongoDB backend. We will create a PR to fix this problem.

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: Backlog
Development

No branches or pull requests

2 participants