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

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

    [ https://issues.apache.org/jira/browse/SLING-10731?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17399590#comment-17399590 ] 

Julian Sedding commented on SLING-10731:
----------------------------------------

[~dklco] Have you tried with {{:autoCheckout=true}}? I haven't tested it, but SLING-1573 seems to suggest it should do what your post-op does.

> 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
>            Assignee: Dan Klco
>            Priority: Minor
>             Fix For: App CMS 1.0.8
>
>         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)