`Consumer-Asset` with the same ID as a `Provider-Asset` Cannot Be Deleted After Contract Negotiation
Opened this issue · 2 comments
Bug Report
Describe the Bug
After a Contract
for an Asset
of a Provider
has successfully been negotiated, an Asset
reciding at the Consumer
with the same ID and not being part of a Contract, can not be deleted anymore.
Expected Behavior
Asset
can be deleted, because it has not been part of a contract.
Observed Behavior
Asset
can't be deleted.
Steps to Reproduce
- Create and negotiate a
Contract
forAsset-A
reciding at theProvider
- Create
Asset-B
with the same ID asAsset-A
at theConsumer
- Try to delete
Asset-B
using the Management-API
Context Information
- Used version:
v0.7.2
Possible Implementation
Query just for Assets
with ContractNegotations
of type PROVIDER
in the AssetServiceImpl
.
This should never happen because the identifier of the dataset (asset)
is a text string which is assigned to the resource to provide an unambiguous reference within a particular context.
(ref.)
this is an edge case that won't get prioritized, but we're open to contributions in form of PR.
Thanks @ndr-brt for clarification. Yes, we will take care of fixing it and provide a PR.
@ununhexium @AbdullahMuk