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

SlingFileUploadHandler removes any existing nodes, preventing file upload versioning

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Servlets Post 2.0.4
    • Servlets Post 2.1.0
    • Servlets
    • None

    Description

      When uploading a file to the location of an existing file, the SlingFileUploadHandler removes the old node before creating the new one. That's sometimes necessary, for example in the cases where a typeHint is provided for the upload that differs from the type of the existing node, but it's not always required. The current behaviour prevents us maintaining a version history for uploaded resources.

      I'll attach a patch for this in a sec.

      Attachments

        1. patch.txt
          2 kB
          Arthur Taylor
        2. patch2.txt
          2 kB
          Arthur Taylor

        Activity

          People

            ianeboston Ian Boston
            codders Arthur Taylor
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: