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

optionset option label may become empty #9248

Closed
rymsha opened this issue Nov 30, 2021 · 0 comments
Closed

optionset option label may become empty #9248

rymsha opened this issue Nov 30, 2021 · 0 comments
Assignees
Milestone

Comments

@rymsha
Copy link
Contributor

rymsha commented Nov 30, 2021

Potentially a regression of #9094

Before XP 7.8 it was never a problem

Caused by: java.lang.IllegalArgumentException: Generate name failed; Original name cannot be empty or blank
	at com.enonic.xp.name.NamePrettyfier.create(NamePrettyfier.java:45)
	at jdk.scripting.nashorn.scripts/jdk.nashorn.internal.scripts.Script$Recompilation$255$1052A$common.L:1#sanitize(no.nav.navno:/lib/xp/common.js:34)
	at jdk.scripting.nashorn.scripts/jdk.nashorn.internal.scripts.Script$Recompilation$424$599A$naming.L:1#sanitizeText(no.nav.navno:/lib/guillotine/util/naming.js:23)
	at jdk.scripting.nashorn.scripts/jdk.nashorn.internal.scripts.Script$Recompilation$448$102AZA$naming.L:1#generateCamelCase(no.nav.navno:/lib/guillotine/util/naming.js:4)
	at jdk.scripting.nashorn.scripts/jdk.nashorn.internal.scripts.Script$Recompilation$447$1950AAA$form.L:1#generateItemSetObjectType(no.nav.navno:/lib/guillotine/dynamic/form.js:60)
	at jdk.scripting.nashorn.scripts/jdk.nashorn.internal.scripts.Script$Recompilation$458$6422AAA$form.L:1#generateOptionObjectType(no.nav.navno:/lib/guillotine/dynamic/form.js:186)
	at jdk.scripting.nashorn.scripts/jdk.nashorn.internal.scripts.Script$Recompilation$457$5479A$form.L:1#generateOptionSetObjectType#L:154(no.nav.navno:/lib/guillotine/dynamic/form.js:156)
	at jdk.scripting.nashorn/jdk.nashorn.internal.runtime.ScriptFunctionData.invoke(Unknown Source)
	at jdk.scripting.nashorn/jdk.nashorn.internal.runtime.ScriptFunction.invoke(Unknown Source)
	at jdk.scripting.nashorn/jdk.nashorn.internal.runtime.ScriptRuntime.apply(Unknown Source)
	at jdk.scripting.nashorn/jdk.nashorn.internal.objects.NativeArray$9.forEach(Unknown Source)
	at jdk.scripting.nashorn/jdk.nashorn.internal.runtime.arrays.IteratorAction.apply(Unknown Source)
	at jdk.scripting.nashorn/jdk.nashorn.internal.objects.NativeArray.forEach(Unknown Source)
	at jdk.scripting.nashorn.scripts/jdk.nashorn.internal.scripts.Script$Recompilation$454$4657AAA$form.L:1#generateOptionSetObjectType(no.nav.navno:/lib/guillotine/dynamic/form.js:154)
	at jdk.scripting.nashorn.scripts/jdk.nashorn.internal.scripts.Script$Recompilation$428$1013AAA$form.L:1#generateFormItemObjectType(no.nav.navno:/lib/guillotine/dynamic/form.js:43)
	at jdk.scripting.nashorn.scripts/jdk.nashorn.internal.scripts.Script$Recompilation$446$1400A$component_types.L:1#createDataConfigType#\==\_\!21#\==\_\!26#L:33(no.nav.navno:/lib/guillotine/dynamic/component-types.js:36)
	at jdk.scripting.nashorn/jdk.nashorn.internal.runtime.ScriptFunctionData.invoke(Unknown Source)
	at jdk.scripting.nashorn/jdk.nashorn.internal.runtime.ScriptFunction.invoke(Unknown Source)
	at jdk.scripting.nashorn/jdk.nashorn.internal.runtime.ScriptRuntime.apply(Unknown Source)
	at jdk.scripting.nashorn/jdk.nashorn.internal.objects.NativeArray$9.forEach(Unknown Source)
	at jdk.scripting.nashorn/jdk.nashorn.internal.runtime.arrays.IteratorAction.apply(Unknown Source)
	at jdk.scripting.nashorn/jdk.nashorn.internal.objects.NativeArray.forEach(Unknown Source)
	at jdk.scripting.nashorn.scripts/jdk.nashorn.internal.scripts.Script$Recompilation$445$1041A$component_types.L:1#createDataConfigType#\==\_\!21#\==\_\!26(no.nav.navno:/lib/guillotine/dynamic/component-types.js:33)
	at jdk.scripting.nashorn/jdk.nashorn.internal.runtime.ScriptFunctionData.invoke(Unknown Source)
	at jdk.scripting.nashorn/jdk.nashorn.internal.runtime.ScriptFunction.invoke(Unknown Source)
	at jdk.scripting.nashorn/jdk.nashorn.internal.runtime.ScriptRuntime.apply(Unknown Source)
	at jdk.scripting.nashorn/jdk.nashorn.internal.objects.NativeArray$9.forEach(Unknown Source)
	at jdk.scripting.nashorn/jdk.nashorn.internal.runtime.arrays.IteratorAction.apply(Unknown Source)
	at jdk.scripting.nashorn/jdk.nashorn.internal.objects.NativeArray.forEach(Unknown Source)
	at jdk.scripting.nashorn.scripts/jdk.nashorn.internal.scripts.Script$Recompilation$443$839A$component_types.L:1#createDataConfigType#\==\_\!21(no.nav.navno:/lib/guillotine/dynamic/component-types.js:26)
	at jdk.scripting.nashorn/jdk.nashorn.internal.runtime.ScriptFunctionData.invoke(Unknown Source)
	at jdk.scripting.nashorn/jdk.nashorn.internal.runtime.ScriptFunction.invoke(Unknown Source)
	at jdk.scripting.nashorn/jdk.nashorn.internal.runtime.ScriptRuntime.apply(Unknown Source)
	at jdk.scripting.nashorn/jdk.nashorn.internal.objects.NativeArray$9.forEach(Unknown Source)
	at jdk.scripting.nashorn/jdk.nashorn.internal.runtime.arrays.IteratorAction.apply(Unknown Source)
	at jdk.scripting.nashorn/jdk.nashorn.internal.objects.NativeArray.forEach(Unknown Source)
	at jdk.scripting.nashorn.scripts/jdk.nashorn.internal.scripts.Script$Recompilation$442$672AA$component_types.L:1#createDataConfigType(no.nav.navno:/lib/guillotine/dynamic/component-types.js:21)
	at jdk.scripting.nashorn.scripts/jdk.nashorn.internal.scripts.Script$Recompilation$441$327A$component_types.L:1#createComponentDataConfigType(no.nav.navno:/lib/guillotine/dynamic/component-types.js:9)
	at jdk.scripting.nashorn.scripts/jdk.nashorn.internal.scripts.Script$Recompilation$420$546A$page_types.L:1#generateTypes(no.nav.navno:/lib/guillotine/generic/page-types.js:104)
	at jdk.scripting.nashorn.scripts/jdk.nashorn.internal.scripts.Script$Recompilation$410$9209A$generic_types.L:1#createGenericTypes(no.nav.navno:/lib/guillotine/generic/generic-types.js:251)
	at jdk.scripting.nashorn.scripts/jdk.nashorn.internal.scripts.Script$Recompilation$397$269A$index/0x000000080104c440.L:1#createTypes(no.nav.navno:/lib/guillotine/generic/index.js:8)
	at jdk.scripting.nashorn.scripts/jdk.nashorn.internal.scripts.Script$Recompilation$473$4284$guillotine_schema.L:1#initAndCreateSchema(no.nav.navno:/lib/headless/guillotine/guillotine-schema.js:88)
	at jdk.scripting.nashorn.scripts/jdk.nashorn.internal.scripts.Script$Recompilation$472$1AAAAAA$guillotine_schema.L:1(no.nav.navno:/lib/headless/guillotine/guillotine-schema.js:97)
	at jdk.scripting.nashorn/jdk.nashorn.internal.runtime.ScriptFunctionData.invoke(Unknown Source)
	at jdk.scripting.nashorn/jdk.nashorn.internal.runtime.ScriptFunction.invoke(Unknown Source)
	at jdk.scripting.nashorn/jdk.nashorn.internal.runtime.ScriptRuntime.apply(Unknown Source)
	at jdk.scripting.nashorn/jdk.nashorn.api.scripting.ScriptObjectMirror.call(Unknown Source)
	at com.enonic.xp.script.impl.executor.ScriptExecutorImpl.executeRequire(ScriptExecutorImpl.java:158)
	... 187 common frames omitted
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants