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

Curl commands in "Discover with sling in 15 minutes" are slightly wrong

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Cannot Reproduce
    • None
    • None
    • Site
    • None
    • * Intel Core2 Q8300 @2,5GHz
      * Windows 7 Home Premium (64 bit) with all the latest updates for 11/7/2011
      * jdk1.6.0_24
      * org.apache.sling.launchpad-6-standalone.jar

    Description

      Comment: I marked this as a major because this is the first thing any potential user tries when they download the project

      Steps to reproduce:

      • Install the launchpad jar in a blank directory
      • Execute curl -u admin:admin -F"sling:resourceType=foo/bar" -F"title=some title" http://localhost:8080/content/mynode
      • Observe the response:
        <html>
        <head>
        <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
        <title>Error 404 NOT_FOUND</title>
        </head>
        <body><h2>HTTP ERROR 404</h2>
        <p>Problem accessing /content/mynode. Reason:
        <pre> NOT_FOUND</pre></p><hr /><i><small>Powered by Jetty://</small></i><br/>

      According to the "Discover with sling in 15 minutes" this should have created some content. I had to replace it with:

      curl -u admin:admin -F"sling:resourceType=foo/bar" -F"title=some title" http://localhost:8080/mynode

      One very interesting thing about this was that when I had been using Sling for some time, the curl command worked. I had to re-install a virgin version (by running the launchpad jar in a clean directory) to recreate the defect. I tried to recreate the defect in the version I was using, and even deleted the 'content' node, but that made no difference: in the version I had used for a while the curl command worked, and in the virgin version it didn't

      Attachments

        Activity

          People

            olli Oliver Lietz
            phil.rice Phil
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: