adf-content-metadata-card error in ADF 2.5 and 2.6

cancel
Showing results for 
Search instead for 
Did you mean: 
d_moeyersons
Customer

adf-content-metadata-card error in ADF 2.5 and 2.6

The adf-content-metadata-card component gives an error in ADF 2.5 and 2.6, I get the error after generating a new ADF app with Yeoman, opening a document preview, opening the 'info' sidebar and selecting 'Properties'.

The error message that I get:

It seems to be an error on the mat-expansion-panel-header tag in the contentMetadata component html. Does this have to do with the version of Angular Material used (6.4.3)?

 

7 Replies
eugenio_romano
Alfresco Employee

Re: adf-content-metadata-card error in ADF 2.5 and 2.6

Hi which is your configuration in the app.config.json for the metadata?

d_moeyersons
Customer

Re: adf-content-metadata-card error in ADF 2.5 and 2.6

Hi Eugenio,

My app.config.json doesn't have a specific metadata configuration.
Except for the ecmHost & application name I didn't change any of it.

app.config.json
{
    "$schema": "../node_modules/@alfresco/adf-core/app.config.schema.json",
    "ecmHost": "https://o-dms.vmm.be",
    "bpmHost": "http://{hostname}{:port}",
    "providers" : "ECM",
    "application": {
        "name": "Vergaderbeheer van de Vlaamse Milieumaatschappij"
    },
    "languages": [
        {
            "key": "en",
            "label": "English"
        },
        {
            "key": "fr",
            "label": "French"
        },
        {
            "key": "de",
            "label": "German"
        },
        {
            "key": "it",
            "label": "Italian"
        },
        {
            "key": "es",
            "label": "Spanish"
        },
        {
            "key": "ja",
            "label": "Japanese"
        },
        {
            "key": "nl",
            "label": "Dutch"
        },
        {
            "key": "pt-BR",
            "label": "Brazilian Portuguese"
        },
        {
            "key": "nb",
            "label": "Norwegian"
        },
        {
            "key": "ru",
            "label": "Russian"
        },
        {
            "key": "zh-CN",
            "label": "Simplified Chinese"
        }
    ],
    "logLevel" : "trace"
}
eugenio_romano
Alfresco Employee

Re: adf-content-metadata-card error in ADF 2.5 and 2.6

you could maybe experience this bug [ADF-3609 ] fallback for metadata and undefined value check by magemello · Pull Request #3838 · Alfr...  we didn't' merge yet the PR but the workaround, for now, could just add a default configuration for the metadata component like:

"content-metadata": {
    "presets": {
        "default": "*"
    }
}
d_moeyersons
Customer

Re: adf-content-metadata-card error in ADF 2.5 and 2.6

Hi Eugenio,

Adding those lines to my app.conf.json doesn't change anything for me.

eugenio_romano
Alfresco Employee

Re: adf-content-metadata-card error in ADF 2.5 and 2.6

I am not able to replicate the problem with the 2.6.2 generator can you try this version ?

d_moeyersons
Customer

Re: adf-content-metadata-card error in ADF 2.5 and 2.6

The problem seems to be fixed in the 2.6.2 generator.
I will compare the generated code to my current source code to see if I can fix it.

d_moeyersons
Customer

Re: adf-content-metadata-card error in ADF 2.5 and 2.6

I finally solved it by changing the versions of material, cdk and material-moment-adapter from 6.4.3 to 6.4.7.
I still have no idea why the error occured. The generated code works fine with 6.4.3 versions of the modules.