Skip to content

[BUG] Allow disabling JavaScript evaluation during Aspect Model validation #274

Closed
@atextor

Description

@atextor

Describe the bug
Since the update to Java 17 (#188), the Aspect Model validator that evaluates SHACL-JS is no longer based on the Nashorn JS engine (which was removed from the JDK) but instead on the Graal JavaScript engine. However, due to an an open GraalVM issue, the GraalVM JavaScript support can currently not be used in conjunction with a Spring Boot application that is built with native-image. For this specific configuration, it's necessary to be able to disable JavaScript evaluation, otherwise the validation process will not work at all in such an application. This is also used in the esmf-aspect-model-editor-backend.

Where
The JsConstraint evaluation should provide a way to completely disable JS validation, similar to the io.openmanufacturing.sds.aspectmodel.resolver.services.ExtendedXsdDataType#setChecking() method in the sds-aspect-meta-model-resolver module.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions