You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "James Raynor (Jira)" <ji...@apache.org> on 2021/08/13 03:15:00 UTC

[jira] [Created] (SLING-10731) Page cannot be edited after the history has been restored

James Raynor created SLING-10731:
------------------------------------

             Summary: Page cannot be edited after the history has been restored
                 Key: SLING-10731
                 URL: https://issues.apache.org/jira/browse/SLING-10731
             Project: Sling
          Issue Type: Bug
          Components: App CMS
    Affects Versions: App CMS 1.0.4
            Reporter: James Raynor
         Attachments: 1.png

 

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".



--
This message was sent by Atlassian Jira
(v8.3.4#803005)