eclipse-tractusx / digital-product-pass

Eclipse Tractus-X Digital Product Pass - An application for visualizing Digital Product Passports, Battery Passports and Transmission Passports, it is the reference implementation of the EcoPass KIT
https://github.com/eclipse-tractusx/digital-product-pass
Apache License 2.0
22 stars 14 forks source link

[DPP] App crashes with more than one policy #275

Closed matbmoser closed 4 months ago

matbmoser commented 5 months ago

Current Behavior

When there are more than one policy selection  showing in the dpp Web UI, it encounters two potential bugs during the selection.

If the other than first policy is selected, PolicyId field (in Network Tab) holds the policy object, it should be the Id of the policy of type String (see screenshot-1 and screenshor-2).  If the first policy is selected, it contains the correct policyId as String (which is correct), but the backend throws the error message: "Cannot invoke "String.equals(Object)" because the return value of "org.eclipse.tractusx.digitalproductpass.models.negotiation.Set.getId()" is null" (see screenshot-3)

Screenshot 1

image

Screenshot 2

image

Screenshot 3

image

Expected Behavior

To select the proper policy and send it.

Steps To Reproduce

Receive two policies in the selection mode

matbmoser commented 4 months ago

Will be solved in #314