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

text/html property rendering of multi-valued properties doesn't work

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • Servlets Get 2.1.0
    • Servlets
    • None

    Description

      $ curl -u admin:admin -F a=b -F "a@TypeHint=String[]" http://localhost:8888/test/node1
      $ curl http://localhost:8888/test/node1.html
      <?xml version="1.0" encoding="utf-8"?>
      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
      "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
      <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
      <head><meta http-equiv="content-type" content="text/html; charset=utf-8" /></head>
      <body>
      <h1>Resource dumped by HtmlRendererServlet</h1>
      <p>Resource path: <b>/test/node1</b></p>
      <p>Resource metadata: <b>

      {sling.resolutionPathInfo=.html, sling.resolutionPath=/test/node1}

      </b></p>
      <p>Resource type: <b>nt:unstructured</b></p>
      <p>Resource super type: <b>-</b></p>
      <h2>Resource properties</h2>
      <p>
      a: <b>[b]</b><br />
      jcr:primaryType: <b>nt:unstructured</b><br />
      </p>
      </body></html>

      $ curl http://localhost:8888/test/node1/a.html
      returns a 204 No Content message

      Attachments

        Activity

          People

            Unassigned Unassigned
            justinedelson Justin Edelson
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: