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

Consumer: assets cannot be deleted when contract exists referencing provider-asset with same assetid like at the consumer #1067

Open
tmberthold opened this issue Oct 17, 2024 · 1 comment
Labels
kind/bug Something isn't working. The software does not behave as expected or specified.

Comments

@tmberthold
Copy link
Contributor

Description - What happened? *

If a consumer has a contract with a provider and then creates a new asset as a consumer with the same asset-id as the provider, this newly created asset can not be deleted at the consumer, even though it has nothing to do with the existing contract.

Expected Behavior *

On the consumer side, this asset should be able to be deleted since it does not appear in any contract or contract definition and simply has the same asset-id like the asset at the provider.

Observed Behavior *

Asset at the consumer can't be deleted.

Steps to Reproduce

Provider:

  1. create asset with ID "test"
  2. create contract-definition for asset "test" using for example the always-true policy

Consumer:
3. get the provider catalog and initiate a contract negotiation for the created testing contract-definition and let it end successful in a contract
4. create an asset with the same ID "test" at the consumer
5. try to delete the created asset "test" at the consumer -> can not be deleted
Note: The consumer asset "test" does not have any contract definition

Context Information

No response

Relevant log output

API-Wrapper Log in Backend:
de.sovity.edc.ext.wrapper.api.ServiceException: Asset test cannot be deleted as it is referenced by at least one contract Agreement

Management-API (DELETE /api/management/v3/assets/test):
[
{
"message": "Asset test cannot be deleted as it is referenced by at least one contract agreement",
"type": "ObjectConflict",
"path": null,
"invalidValue": null
}
]

Screenshots

No response

@tmberthold tmberthold added the kind/bug Something isn't working. The software does not behave as expected or specified. label Oct 17, 2024
@tmberthold
Copy link
Contributor Author

core-edc issue: eclipse-edc/Connector#4583

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working. The software does not behave as expected or specified.
Projects
None yet
Development

No branches or pull requests

1 participant