Uploaded image for project: 'Hippo CMS'
  1. Hippo CMS
  2. CMS-9480

HippoItem getBean() returns unpublished version of the bean

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Normal
    • Resolution: Won't Fix
    • 10.0.2
    • None
    • hippo-cms-engine
    • None
    • linux

    Description

      I've been upgrading our Hippo 7.7 project to Hippo 10.
      Since there has been a lot of changes in the repository this upgrade is a challenge.

      However I think I've come across the following problem.
      When I call

      // opleidingen/chemie-breda-voltijd-bachelor
      HippoBean bean = contentRoot.getBean(relPath);

      The getBean method returns a bean with path:
      opleidingen/chemie-breda-voltijd-bachelor/chemie-breda-voltijd-bachelor

      in most cases this is the right one, but in this case the bean with path
      opleidingen/chemie-breda-voltijd-bachelor/chemie-breda-voltijd-bachelor

      is an unpublished version of the bean. The published LIVE version has a path:
      opleidingen/chemie-breda-voltijd-bachelor/chemie-breda-voltijd-bachelor[3]

      And there is also a published DRAFT version with path
      opleidingen/chemie-breda-voltijd-bachelor/chemie-breda-voltijd-bachelor[2]

      The bean(s there are more with this problem) are created through an importer program, so I'm looking into the way the beans are create, maybe there the problem occurs, BUT I would assume that the getBean method would check of the right version of the node to convert to the bean.

      Attachments

        Activity

          People

            ronvanderkruit Ron van der Kruit
            ronvanderkruit Ron van der Kruit
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: