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

Page cannot be edited after the history has been restored

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • App CMS 1.0.4
    • App CMS 1.1.0
    • App CMS
    • None

    Description

       

      I recently discovered that the CMS creates a version history and then after restoring the history, the page cannot be edited.

      Steps to reproduce:

      1. Run SlingCMS, go to http://localhost:8080/cms/site/content.html/content/apache/sling-apache-org

      2. Select index and click on "Edit Page".
      3. Then click on "Manage Versions" in the top right corner of the page, click on "Make Versionable", then click on "Manage Versions" in the top right corner , click on "Create Version".

      4. Modify any of the components, e.g. change the text "Apache Sling™ is a framework for ..." to "test". to "test" and save it.

      5. Then click on "Manage Versions" in the top right corner, in Version 1.0, click on "Restore Version".

      6. Then modify any of the components of the page, save it and an error appears, it cannot be saved:
      500
      Server Error

      Forbidden
      You cannot access the requested resource.

      Login?

      After checking the Node browser, http://localhost:8080/bin/browser.html/content/apache/sling-apache-org/index
      The page "jcr:isCheckedOut" property was found to be false, and after changing it to true, the functionality was restored. Perhaps the problem needs to be fixed here.

      Other suggestions.
      1. Click on "Manage Versions" in the top right corner for the first time.
      2. You need to click on "Make Versionable" first.
      3. Then you need to open "Manage Versions" again, then the "Create Version" button will appear on the page.

      "Make Versionable" should be a redundant step and should be designed to create versions directly by clicking on "Create Version".

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            dklco Dan Klco
            James.R James Raynor
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment