Open memaldi opened 2 years ago
@memaldi Please try this message for connector registration and let me now if there is still an error : { "@context": { "ids": "https://w3id.org/idsa/core/", "idsc": "https://w3id.org/idsa/code/", "mobids": "https://w3id.org/mobids/" }, "@id": "https://test.connector.de/testDataModel", "@type": "ids:BaseConnector", "ids:curator": { "@id": "https://connector.de/agent/" }, "ids:description": [ { "@type": "http://www.w3.org/2001/XMLSchema#string", "@value": "FRONTEND TESTING (This is a dummy description from the Interaction Library for testing)" } ], "ids:hasDefaultEndpoint": { "@id": "https://test.connector.de/data/", "@type": "ids:ConnectorEndpoint", "ids:accessURL": { "@id": "https://exmple.org/infrastructure" }, "ids:endpointDocumentation": [ { "@id": "https://app.swaggerhub.com/apis/idsa/IDS-Broker/1.3.1#/Multipart%20Interactions/post_infrastructure" } ], "ids:endpointInformation": [ { "@language": "en", "@value": "This endpoint provides IDS Connector information and IDS Resources." } ], "ids:path": "/infrastructure", "ids:soveriegn": { "@id": "https://exmple.org/infrastructure" } }, "ids:inboundModelVersion": [ "4.0.0" ], "ids:maintainer": { "@id": "https://connector.de/agent/" }, "ids:mainTitle": [ { "@type": "http://www.w3.org/2001/XMLSchema#string", "@value": "DRM TEST Mobids TAGS" } ], "ids:outboundModelVersion": "4.0.0", "ids:resourceCatalog": { "@id": "https://w3id.org/idsa/autogen/catalog/fa535e30-8cb0-4ede-b5a9-def764d69357", "@type": "ids:ResourceCatalog", "ids:offeredResource": [ { "@id": "https://w3id.org/idsa/autogen/resource/f659522f-b668-4351-a1b1-50f872a3d999", "@type": "ids:Resource", "ids:author": [ { "@id": "https://w3id.org/idsa/autogen/person/8b51a76a-7316-4285-b96a-722bf7a944f8", "@type": "ids:Person", "ids:emailAddress": [ "info@example.org" ], "ids:familyName": "Mustermensch", "ids:givenName": "Max", "ids:homepage": "http://example.org", "ids:phoneNumber": [ "012345678891" ] } ], "ids:contentStandard": { "@id": "http://contentstandard.org" }, "ids:contentType": { "@id": "idsc:INTERFACE_DEFINITION" }, "ids:contractOffer": { "@id": "https://w3id.org/idsa/autogen/contractOffer/b6d78c1f-bccb-4615-9a67-bf0ab729428a", "@type": "ids:ContractOffer", "ids:permission": [ { "@id": "https://w3id.org/idsa/autogen/permission/6949b9d2-11b7-40f0-b935-d5964a0f7a3e", "@type": "ids:Permission", "ids:action": [ { "@id": "https://w3id.org/idsa/code/USE", "@type": "ids:Action" } ], "ids:assignee": [ { "@id": "http://example.org/assignee" } ], "ids:constraint": [ { "@id": "https://w3id.org/idsa/autogen/constraint/4be87aa3-e203-4ac8-b4d6-ea006814d494", "@type": "ids:Constraint", "ids:leftOperand": { "@id": "https://w3id.org/idsa/code/SECURITY_LEVEL" }, "ids:operator": { "@id": "https://w3id.org/idsa/code/EQ" }, "ids:rightOperandReference": { "@id": "https://w3id.org/idsa/code/TRUST_SECURITY_PROFILE" }, "ids:pipEndpoint": { "@type": "ids:PIP", "ids:interfaceDescription": {"@id": "https://ids.org/PIP/askIfPurpose" }, "ids:endpointURI": {"@id": "https://ids.org/EXAMPLE/realEndpointURI" } } } ] } ] }, "ids:created": { "@type": "http://www.w3.org/2001/XMLSchema#dateTimeStamp", "@value": "2003-01-10T00:00:00Z" }, "ids:customLicense": { "@id": "http://customlicense.org" }, "ids:dataCreator": { "@type": "http://www.w3.org/2001/XMLSchema#string", "@value": "Data creator/Owner" }, "ids:description": [ { "@type": "http://www.w3.org/2001/XMLSchema#string", "@value": "Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quos blanditiis tenetur\n unde suscipit, quam beatae rerum inventore consectetur, neque doloribus, cupiditate numquam\n dignissimos laborum fugiat deleniti? Eum quasi quidem quibusdam." } ], "ids:domainVocabulary": { "@id": "https://w3id.org/idsa/autogen/vocabularyData/2d98d466-52ce-48b8-a29e-936f7f4efa9e", "@type": "ids:VocabularyData", "ids:vocabulary": { "@id": "http://vocabulary.org" } }, "ids:keyword": [ { "@type": "http://www.w3.org/2001/XMLSchema#string", "@value": "energy" }, { "@type": "http://www.w3.org/2001/XMLSchema#string", "@value": "energy" }, { "@type": "http://www.w3.org/2001/XMLSchema#string", "@value": "conservation" }, { "@type": "http://www.w3.org/2001/XMLSchema#string", "@value": "ad" }, { "@type": "http://www.w3.org/2001/XMLSchema#string", "@value": "open" } ], "ids:language": [ { "@id": "idsc:EN" }, { "@id": "idsc:ES" } ], "ids:mainTitle": [ { "@type": "http://www.w3.org/2001/XMLSchema#string", "@value": "MOBIDS TEST TAGS" } ], "ids:modified": { "@type": "http://www.w3.org/2001/XMLSchema#dateTimeStamp", "@value": "2020-01-29T00:00:00+00:00" }, "ids:paymentModality": { "@id": "idsc:FREE" }, "ids:rawData": false, "ids:representation": [ { "@id": "https://w3id.org/idsa/autogen/textRepresentation/8a23edb5-be86-4722-afd4-fd2276c9bc18", "@type": "ids:TextRepresentation", "ids:created": { "@type": "http://www.w3.org/2001/XMLSchema#dateTimeStamp", "@value": "2013-11-14T00:00:00+00:00" }, "ids:domainVocabulary": { "@id": "https://w3id.org/idsa/autogen/vocabularyData/bbe50ee4-5033-4c13-bf43-35c733a7b781", "@type": "ids:VocabularyData", "ids:vocabulary": { "@id": "http://textVovabulary.com" } }, "ids:instance": [ { "@id": "https://w3id.org/idsa/autogen/artifact/aa1cf3d9-8aa1-42ef-9f85-08ce0f48005b", "@type": "ids:Artifact", "ids:byteSize": 2678, "ids:creationDate": { "@type": "http://www.w3.org/2001/XMLSchema#dateTimeStamp", "@value": "2020-06-23T17:27:18.599+02:00" }, "ids:fileName": "data.pdf" } ], "ids:mediaType": { "@id": "idsc:APPLICATION_PDF", "@type": "ids:IANAMediaType" }, "ids:modified": { "@type": "http://www.w3.org/2001/XMLSchema#dateTimeStamp", "@value": "2020-01-15T00:00:00+00:00" }, "ids:representationStandard": { "@id": "http://textRepresentation.org" } } ], "ids:researchDataType": { "@id": "idsc:OBSERVATIONAL_DATA" }, "ids:sample": [ { "@id": "https://w3id.org/idsa/autogen/resource/1cfde6ad-c042-4485-ba71-976945c34b78", "@type": "ids:Resource" } ], "ids:standardLicense": { "@id": "idsc:OTHERFREEWARELICENSE" }, "ids:title": [ { "@type": "http://www.w3.org/2001/XMLSchema#string", "@value": "DRM RELEASE MOBIDS TEST TAGS" } ], "ids:version": "version 3.0.0", "mobids:DataCategory": [ "Baustelleninformationen" ], "mobids:DataCategoryDetail": [ "Kurzzeit-Baustellen" ], "mobids:dataModel": [ "DATEX II" ], "mobids:geoReferenceMethod": [ "sonstige" ], "mobids:mdmBrokering": { "@type": "http://www.w3.org/2001/XMLSchema#boolean", "@value": "true" }, "mobids:nutsLocation": [ "DE7" ], "mobids:transportMode": [ "Pkw", "Lkw" ] } ] }, "ids:securityProfile": { "@id": "https://w3id.org/idsa/code/BASE_SECURITY_PROFILE", "@type": "ids:SecurityProfile" }, "ids:title": [ { "@type": "http://www.w3.org/2001/XMLSchema#string", "@value": "DRM TEST Mobids TAGS" } ] }
This bug has been fixed please try to pull the updated image of the broker and try this message again.
I have pulled the latest image of the broker from registry.gitlab.cc-asp.fraunhofer.de/eis-ids/broker-open/core:latest
and modified the pip:Endpoint property to
"ids:pipEndpoint": {
"@type": "ids:PIP",
"ids:interfaceDescription": {
"@id": "https://ids.org/PIP/askIfPurpose"
},
"ids:endpointURI": {
"@id": "https://ids.org/EXAMPLE/realEndpointURI"
}
}
but an slightly different error is raised:
{
"details": {
"reason": {
"properties": null,
"@id": "https://w3id.org/idsa/code/MALFORMED_MESSAGE"
},
"payload": "The message could not be parsed due to an error in the message. Note that, due to being unable to parse this message, the ID of the correlating message is incorrect. Error: The following mandatory field(s) of Constraint are not filled or invalid: ids:pipEndpoint. Note that the value of \"@id\" fields MUST be a valid URI (e.g. emails preceded by \"mailto:\"). Mandatory fields are: leftOperand, operator, pipEndpoint",
"type": "de.fraunhofer.iais.eis.RejectionMessageImpl"
},
"message": "Received unexpected response message."
}
Its not only pipEndpoint that is modified but also others, so please follow the message format i sent to you .
I have tried with a simpler rule (PROVIDE_ACCESS) and it works fine. I suppose the problem is at the connector. Thank you for your support.
@memaldi Would be great if you could share with us the request message you sent.
When I try to update a resource at the broker, I get the following response at the Dataspace Connector:
This is the log from the broker:
And, the message the connector is sending:
In a more readable way, header:
And payload:
As can be seen, the connector seems to be sending the ids:pipEndpoint property correctly.