Skip to content

Breadcrumb: Evaluation Error in Dialog-Field "startLevel" leads to error in log and missing default field value #3020

@anban02

Description

@anban02

Bug Report

Current Behavior
We have noticed that opening the dialog of the breadcrumb component leads to the following error written to our error.log every time:
30.03.2026 14:42:24.629 ERROR [10.1.223.32 [1774874544585] GET /mnt/override/apps/aembase/components/coop/contentVersioned/breadcrumb/v3/breadcrumb-v3-1/_cq_dialog.html/content/example-site/fr/dokumente/jcr:content/root/responsivegrid/breadcrumb HTTP/1.1] com.adobe.granite.ui.components.impl.el.ExpressionResolverImpl Encountered invalid expression evaluation: ${not empty cqDesign.startLevel ? cqDesign.startLevel : 2} for component at /mnt/override/apps/aembase/components/coop/contentVersioned/breadcrumb/v3/breadcrumb-v3-1/_cq_dialog.html/content/example-site/fr/dokumente/jcr:content/root/responsivegrid/breadcrumb

The issue still persists in the current version of the core component, as i have checked the Expression inside the field for the latest available release.
Beside the error this leads to the default value of "2" not being prefilled into the field.

You can easily reproduce it by just opening the edit dialog of the breadcrumb and checking the error.log on any vanilla instance of AEM. This is not a version related issue but seemingly a syntax error in the used expression.

Expected behavior/code
Opening the dialog should not lead to an error and correctly fill the default of "2" if there isn't already another value set by the user.

Environment

  • AEM OnPrem 6.5 LTS with Service Pack1
  • Core Components version 2.30.4
  • JRE21

Possible Solution
The default value must be set into single quotes to make the expression valid.

This is the current value set:
value="${not empty cqDesign.startLevel ? cqDesign.startLevel : 2}"

Instead it should be this. I have already verified that this change works and fixes the issue:
value="${not empty cqDesign.startLevel ? cqDesign.startLevel : '2'}"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions