dzhw / metadatamanagement

Metadatamanagement (MDM) - Data Search for Higher Education Research and Science Studies
https://metadata.fdz.dzhw.eu
GNU Affero General Public License v3.0
25 stars 9 forks source link

LaTex Template issue related to sponsor field #3314

Closed tilovillwock closed 6 months ago

tilovillwock commented 6 months ago

A user tried to create a report for their data package and failed multiple times. This seems to be a regression that is related to #3129. We need to investigate if this is due to a missing migration step or if there's a bug with the data package form.

Details from the automated email:

FillTemplateException(errorListDto=ErrorListDto(errorDtos=[ErrorDto(entity=null, message=data-set-management.error.tex-template-error, invalidValue=The following has evaluated to null or missing: ==> sponsor.en [in template "Main.tex" at line 62, column 105]


Tip: It's the step after the last dot that caused this error, not those before it.

Tip: If the failing expression is known to legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing</#if>. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)??


FTL stack trace ("~" means nesting-related):

  • Failed at: ${sponsor.en} auto-escaped [in template "Main.tex" at line 62, column 103] ----, property=null)]))
tilovillwock commented 6 months ago

@AndyDaniel1 @DilekIkiz Das Problem wurde behoben.

DilekIkiz commented 6 months ago

Prima! Ich werde es gleich mal ausprobieren :) Und hat wunderbar geklappt. Danke!