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] Inability to Upload an AASX File Created with Package Explorer #514

Closed
JS-Aibel opened this issue Nov 4, 2024 · 5 comments
Closed
Labels
bug Something isn't working

Comments

@JS-Aibel
Copy link

JS-Aibel commented Nov 4, 2024

Describe the bug
Inability to Upload an AASX File Created with Package Explorer version 2024-06-10.
It seems to be related to this answer, #500 (comment)
On second thought, based on your comment, I guess this issue will be fixed in the pull request #503 ?

To Reproduce
Steps to reproduce the behavior:

  1. Create a simple Asset Administration Shell (AAS) using the Package Explorer.
  2. Attempt to upload the AASX file using the aas-ui.
  3. Encounter an error with status code 400.

Observations

  • The AAS is present in the repository.
  • The AAS is absent in the registry.
  • The submodel is missing in both the submodel repository and the submodel registry.

These observations seem similar to the issue #500

Additional Information

  • The AASX file can be read using the basyx-python-sdk.
  • An AASX file created with the basyx-python-sdk can be successfully uploaded.

Expected behavior
Uploaded with no errors.

BaSyx (please complete the following information):
BaSyx Version [ v2.0]
BaSyx SDK [Python]
AAS Version [DotAAS V3]

BaSyx configuration
Default from the Quick Start Guide.

@JS-Aibel JS-Aibel added the bug Something isn't working label Nov 4, 2024
@github-project-automation github-project-automation bot moved this to To triage in Support Requests Nov 4, 2024
@aaronzi
Copy link
Member

aaronzi commented Nov 5, 2024

Hi @JS-Aibel,

Can you share your AAS that you created in AASPE? That way we can have a look at what might be wrong (on our end or in the AAS that you created in the AASPE).

@aaronzi aaronzi moved this from To triage to Backlog in Support Requests Nov 5, 2024
@JS-Aibel
Copy link
Author

JS-Aibel commented Nov 5, 2024

Thank you for the reply, @aaronzi
It is any AASX I create with Package Explorer version 2024-06-10. I will e-mail you an example.

@aaronzi
Copy link
Member

aaronzi commented Nov 5, 2024

Thank you, I will have a look.

@aaronzi
Copy link
Member

aaronzi commented Nov 5, 2024

Found the problem. It seems that the asset type causes the problem and as discussed in #500 the registry integration creates the entry in the repo even if the entry in the registry could not be created. Oddly enough, this should have been fixed in the current version of BaSyx 2.0.0_SNAPSHOT.

This only happens if the asset type is set to NotApplicable. Attached are two shells to reproduce this. One uses the Instance type which works and one uses NotApplicable.

test-instance-asset-kind.zip
test-not-applicable-asset-kind.zip
To try the demo shells, change the file extension to .aasx.

We will have a look into this and come up with a fix.

@aaronzi
Copy link
Member

aaronzi commented Nov 5, 2024

The newest images did not include the pull request that fixes #500.
I pushed a new version of the AAS Environment to Dockerhub. I will now also update the 2.0.0_SNAPSHOT tag for all other components as well. This fixes the problem.

@aaronzi aaronzi closed this as completed Nov 5, 2024
@github-project-automation github-project-automation bot moved this from Backlog to Done in Support Requests Nov 5, 2024
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
Archived in project
Development

No branches or pull requests

2 participants