Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-1332

Support multi-value sling:alias resolution

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • JCR Resource 2.0.6
    • JCR Resource 2.0.8
    • JCR
    • None

    Description

      Currently, only a single sling:alias value for a resource is honoured, even though the sling:alias is defined as both a single-value and multi-value property [1].

      To reproduce:
      1. Create a node at /node
      2. Set a multi-value sling:alias property on /node, with values "alias1" and "alias2"
      3. Browse to http://localhost:8080/alias2

      Expected result:

      • The resource at /node is returned

      Actual result:

      • A 404 not found. Still, browsing to /alias1 returns the /node resource.

      Mailing list discussion: http://n3.nabble.com/Multi-value-sling-alias-td140425.html#a140425

      [1] http://svn.apache.org/viewvc/sling/trunk/bundles/jcr/resource/src/main/resources/SLING-INF/nodetypes/mapping.cnd?view=markup#l32

      Attachments

        Activity

          People

            fmeschbe Felix Meschberger
            vramdal Vidar Skauge Ramdal
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: