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

Remove ":savePrefix" support

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 3
    • Servlets
    • None

    Description

      The :savePrefix parameter was intended to identify the required prefix to parameter names for them to be considered for content modification.

      The use case behind such prefixing is, that we might want to have forms which contain a mix GUI provided parameters (some GUI toolkits seem to add them) and parameters to be used for content update. In this case the content parameters could be prefixed and only those could be considered.

      In reality, the only value used for prefixing is "./" and the :savePrefix is never used. In fact, the SlingPostServlet's modification operation scans all parameters for some which are prefixed with "./" if the :savePrefix is not set and then decides upon using prefixes or not.

      Thus, this issue is about the following changes:

      • remove :savePrefix parameter support
      • the prefix used is hardcoded to be "./"
      • If any parameter with the prefix is found, only parameters starting with
        "./", "../" and "/" are considered for content update
      • If no parameter with the "./" prefix is found, all parameters not starting
        with the operation parameter prefix ":" are considered for content
        update.

      Attachments

        Issue Links

          Activity

            People

              fmeschbe Felix Meschberger
              uncled David Nuescheler
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: