Uploaded image for project: '[Read Only] - Hippo Essentials Components'
  1. [Read Only] - Hippo Essentials Components
  2. ESSCOM-32

Improve error handling for misuse of content component

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • 4.1.0
    • 14.0.0, 13.4.0
    • 1
    • Platform 190 - HST Tests!, Platform 194 - Features Done!, Tiger Sprint 212, Tiger Sprint 213, Tiger Sprint 214

    Description

      In a new project a developer accidentally used the EssentialsContentComponent for his custom hst:catalog component instead of the EssentialsDocumentComponent. The resulting component could not be added to a container with the feedback from the system just being "Couldn't add mycomponent". Nothing in the logs. This was hard to diagnose and the mistake an easy one to make (the components sound very similar). The error handling/logging should be improved.

      Reproduction

      Create a 12.1 archetype project

      accept Essentials defaults

      add simple content feautre

      add hst catalog item with componentclassname EssentailsContentComponent

      add the hst catalog item to a prototype page instance

      Observed

      error message "cannot add xyzcomponent"

      nothing in logs

      component is added anyway

      Suggested Improvement

      Error message in console explaining why component is broken (no bean found?)

      Attachments

        Activity

          People

            Unassigned Unassigned
            wborgbarthet William Borg Barthet
            UX Issues UX Issues
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: