eclipse-edc / DataDashboard

DataDashboard
Apache License 2.0
15 stars 80 forks source link

Assets can not be shown #89

Closed edwo-dev closed 1 year ago

edwo-dev commented 1 year ago

Bug Report

Describe the Bug

List of assets can not be shown.

Expected Behavior

Asset items are listed as expected.

Steps to Reproduce

Steps to reproduce the behavior:

  1. Go to 'Assests'
  2. See error

Context Information

Error Information

assets_error

Detailed Description

core.mjs:6485 ERROR TypeError: Cannot read properties of undefined (reading 'edc:id')

Response:

[
    {
        "@id": "test-document-2_company1",
        "@type": "edc:Asset",
        "edc:properties": {
            "edc:version": "1.0",
            "edc:type": "AzureStorage",
            "edc:name": "test-document-2_company1",
            "edc:id": "test-document-2_company1",
            "edc:contenttype": "text/plain"
        },
        "edc:dataAddress": {
            "@type": "edc:DataAddress",
            "edc:container": "src-container",
            "edc:type": "AzureStorage",
            "edc:blobname": "text-document-2.txt",
            "edc:account": "company1assets",
            "edc:keyName": "company1assets-key1"
        },
        "@context": {
            "dct": "https://purl.org/dc/terms/",
            "edc": "https://w3id.org/edc/v0.0.1/ns/",
            "dcat": "https://www.w3.org/ns/dcat/",
            "odrl": "http://www.w3.org/ns/odrl/2/",
            "dspace": "https://w3id.org/dspace/v0.8/"
        }
    },
    {
        "@id": "test-document_company1",
        "@type": "edc:Asset",
        "edc:properties": {
            "edc:version": "1.0",
            "edc:type": "AzureStorage",
            "edc:name": "test-document_company1",
            "edc:id": "test-document_company1",
            "edc:contenttype": "text/plain"
        },
        "edc:dataAddress": {
            "@type": "edc:DataAddress",
            "edc:container": "src-container",
            "edc:type": "AzureStorage",
            "edc:blobname": "text-document.txt",
            "edc:account": "company1assets",
            "edc:keyName": "company1assets-key1"
        },
        "@context": {
            "dct": "https://purl.org/dc/terms/",
            "edc": "https://w3id.org/edc/v0.0.1/ns/",
            "dcat": "https://www.w3.org/ns/dcat/",
            "odrl": "http://www.w3.org/ns/odrl/2/",
            "dspace": "https://w3id.org/dspace/v0.8/"
        }
    }
]