Uploaded image for project: 'CMS'
  1. CMS
  2. CMS-579

JCRPageQuery : one of the execute() methods doesn't use its 'path' parameter

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Minor Minor
    • 4.2.0
    • 2.9.5
    • Storage
    • None

      In the JCR implementation of PageQuery, one of the execute() methods seems to never use its path parameter.

      As of now, it is :

      public Collection<Page> execute(String siteName, String sitemapName, String language, String path, Expression expression) throws RepositoryException
      {
          return execute(siteName, sitemapName, language, "", expression, null);
      }
      

      It seems that it should be :

      public Collection<Page> execute(String siteName, String sitemapName, String language, String path, Expression expression) throws RepositoryException
      {
          return execute(siteName, sitemapName, language, path, expression, null);
      }
      

      In itself, the workaround is easy : just use the full-parametered method "execute", which doesn't have this problem. However, the method is used in the Tag component class FilteredPagesInputData, so the problem should be investigated a little further.

            Unassigned Unassigned
            ngavalda Nicolas Gavalda (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: