You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The EDC data plane accesses an asset only with GET even though proxyMethod has been set to "true" in the asset definition.
Expected Behavior
Given proxyMethod is set to "true" in the asset: the EDC data plane should access an HTTP data resource with the same HTTP method with which the public API endpoint has been invoked.
Observed Behavior
The EDC data plane only uses GET for access.
Detailed Description
Error Path with POST request
Created Asset: { "@id": "f1cc608f-439b-4fce-aa95-0da0de566f9b", "@type": "Asset", "properties": { "https://purl.org/dc/terms/subject": "cx-taxo:ReadAccessPoolForCatenaXMember", "https://purl.org/dc/terms/description": "Grants the Catena-X Member read access to the Pool API. This can be used to read legal entity, site, address, legal form, identifier type and administrative area level 1 data. To that end, it also grants read access to the respective changelog entries and identifier mappings, as well as relational data.", "https://w3id.org/catenax/ontology/common#version": "6.0", "id": "f1cc608f-439b-4fce-aa95-0da0de566f9b", "https://purl.org/dc/terms/type": "cx-taxo:BPDMPool" }, "dataAddress": { "@type": "DataAddress", "proxyPath": "true", "oauth2:tokenUrl": "https://centralidp.dev.demo.catena-x.net/auth/realms/CX-Central/protocol/openid-connect/token", "oauth2:clientId": "xxx", "type": "HttpData", "proxyMethod": "true", "oauth2:clientSecretKey": "dev/edc/gate/asset-dev-client-secret", "proxyQueryParams": "true", "proxyBody": "true", "baseUrl": "https://business-partners.dev.demo.catena-x.net/pool/v6" }, "@context": { "@vocab": "https://w3id.org/edc/v0.0.1/ns/", "edc": "https://w3id.org/edc/v0.0.1/ns/", "tx": "https://w3id.org/tractusx/v0.0.1/ns/", "odrl": "http://www.w3.org/ns/odrl/2/" } }
Bug Report
Describe the Bug
The EDC data plane accesses an asset only with GET even though proxyMethod has been set to "true" in the asset definition.
Expected Behavior
Given proxyMethod is set to "true" in the asset: the EDC data plane should access an HTTP data resource with the same HTTP method with which the public API endpoint has been invoked.
Observed Behavior
The EDC data plane only uses GET for access.
Detailed Description
Error Path with POST request
Created Asset:
{ "@id": "f1cc608f-439b-4fce-aa95-0da0de566f9b", "@type": "Asset", "properties": { "https://purl.org/dc/terms/subject": "cx-taxo:ReadAccessPoolForCatenaXMember", "https://purl.org/dc/terms/description": "Grants the Catena-X Member read access to the Pool API. This can be used to read legal entity, site, address, legal form, identifier type and administrative area level 1 data. To that end, it also grants read access to the respective changelog entries and identifier mappings, as well as relational data.", "https://w3id.org/catenax/ontology/common#version": "6.0", "id": "f1cc608f-439b-4fce-aa95-0da0de566f9b", "https://purl.org/dc/terms/type": "cx-taxo:BPDMPool" }, "dataAddress": { "@type": "DataAddress", "proxyPath": "true", "oauth2:tokenUrl": "https://centralidp.dev.demo.catena-x.net/auth/realms/CX-Central/protocol/openid-connect/token", "oauth2:clientId": "xxx", "type": "HttpData", "proxyMethod": "true", "oauth2:clientSecretKey": "dev/edc/gate/asset-dev-client-secret", "proxyQueryParams": "true", "proxyBody": "true", "baseUrl": "https://business-partners.dev.demo.catena-x.net/pool/v6" }, "@context": { "@vocab": "https://w3id.org/edc/v0.0.1/ns/", "edc": "https://w3id.org/edc/v0.0.1/ns/", "tx": "https://w3id.org/tractusx/v0.0.1/ns/", "odrl": "http://www.w3.org/ns/odrl/2/" } }
Perform EDR Negotiation to obtain transfer token
Access Data:
curl --location 'https://edc-url.net/api/public/business-partners/changelog/search?page=0&size=10' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'Authorization: xxx' \ --data '{ "businessPartnerTypes": [ "SITE", "LEGAL_ENTITY" ] }'
Further information
Accessing a GET endpoint on the same asset is working without issues. For example the following request after negotiation gives an expected response:
curl --location 'https://edc-url/api/public/legal-entities?size=10&page=0' \ --header 'Accept: application/json' \ --header 'Authorization: xxx'
Context
Image: tractusx/edc-dataplane-hashicorp-vault:0.6.0
The text was updated successfully, but these errors were encountered: