Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

searchform is not allowed to have a script element #14

Open
oliveregger opened this issue Apr 23, 2024 · 2 comments
Open

searchform is not allowed to have a script element #14

oliveregger opened this issue Apr 23, 2024 · 2 comments

Comments

@oliveregger
Copy link

FHIR IG Publisher Version 1.6.6 (Git# d1dac76a7c14). Built 2024-04-23T09:27:48.515Z returns an error for our search template:

output​/searchform​.html​#​/html​/body​/script at Line 130, column 2 error The <script> tag containing the javascript 'const site = 'file:/'... is illegal and not allowed on the HL7 cibuild - put the script in a .js file in a trusted template

probably two problems

  • script tag not in a js file
  • template is not trusted
@oliveregger
Copy link
Author

introducing js leads to:

org.hl7.fhir.exceptions.FHIRException: Unable to execute 'onLoad' in script 'scripts/ant.xml' as the template 'ch.fhir.ig.template#current' is not trusted (reason: Template has file extensions: [.js])
at org.hl7.fhir.igtools.templates.Template.runScriptTarget(Template.java:193)
at org.hl7.fhir.igtools.templates.Template.onLoadEvent(Template.java:375)
at org.hl7.fhir.igtools.publisher.Publisher.initializeFromIg(Publisher.java:2650)
at org.hl7.fhir.igtools.publisher.Publisher.initialize(Publisher.java:2491)
at org.hl7.fhir.igtools.publisher.Publisher.execute(Publisher.java:988)
at org.hl7.fhir.igtools.publisher.Publisher.main(Publisher.java:12543)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant