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
This code only checks if the identifier is null, but it does not check if the identifier field is null. This causes an error in AbstractTemplateExportFunctions, insertTableCells :
Both parts of the code should receive according null checks.
The bug causes certain legacy dmps in our demo instance to be unexportable, since they have identifiers where onyl the type is set. But this could theoretically also happen in production, when OpenAire returns an empty identifer (didnt check if this is possible)
You can also trigger it, when you manually add an existing dataset with a source and then delete the source. Then try to export. You should look into why this exact behaviour happens.
Is this a regression?
Yes.
Steps to Reproduce
Log into the db and add a dataset identifer with only the type set and the identifer string null. Then try to export. Or try to export DMP: 2146 in our demo instance.
Alternatively manually create an existing dataset with a source. Then delete the source and try to export.
Expected behavior
Exporting should still work.
Environment
Damap version 4.3.1
The text was updated successfully, but these errors were encountered:
Describe the bug
Starting at line 1164 in
composeTableReusedDatasets
inAbstractTemplateExportScienceEuropeComponents
:This code only checks if the identifier is null, but it does not check if the identifier field is null. This causes an error in
AbstractTemplateExportFunctions
,insertTableCells
:Both parts of the code should receive according null checks.
The bug causes certain legacy dmps in our demo instance to be unexportable, since they have identifiers where onyl the type is set. But this could theoretically also happen in production, when OpenAire returns an empty identifer (didnt check if this is possible)
You can also trigger it, when you manually add an existing dataset with a source and then delete the source. Then try to export. You should look into why this exact behaviour happens.
Is this a regression?
Yes.
Steps to Reproduce
Log into the db and add a dataset identifer with only the type set and the identifer string null. Then try to export. Or try to export DMP: 2146 in our demo instance.
Alternatively manually create an existing dataset with a source. Then delete the source and try to export.
Expected behavior
Exporting should still work.
Environment
The text was updated successfully, but these errors were encountered: