Uploaded image for project: 'Forum (closed)'
  1. Forum (closed)
  2. MGNLFORUM-138

Threadlist page fails if a thread starts with a "special" character

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Neutral Neutral
    • Ideas
    • None
    • None
    • None

      If a thread node's name start with a "special" character (! or [ for example) which is turned into a - when saving the node, the query used in info.magnolia.module.forum.DefaultForumManager#getMessages (incidentally used in a ...template!yuck.) fails miserably, presumably because of that first hyphen.

      Here's such a failing query, as generated by the criteria module:

      //sandbox/-what-//*[( (jcr:primaryType='mgnl:message')  and  not( (@validated='false') )  )]  order by  @creationDate ascending

      This simplified query fails the same way

      //sandbox/-what-//*

        Acceptance criteria

              Unassigned Unassigned
              gjoseph Magnolia International
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: