You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jspwiki.apache.org by "Juan Pablo Santos Rodríguez (JIRA)" <ji...@apache.org> on 2011/05/06 12:00:03 UTC

[jira] [Created] (JSPWIKI-695) change note gets sticked upon several revisions

change note gets sticked upon several revisions
-----------------------------------------------

                 Key: JSPWIKI-695
                 URL: https://issues.apache.org/jira/browse/JSPWIKI-695
             Project: JSPWiki
          Issue Type: Bug
          Components: Core & storage
    Affects Versions: 3.0
            Reporter: Juan Pablo Santos Rodríguez


Reproduction steps:

- Create a new page and some content with a change note (for example rev1)
- Edit this new page with some more content, but without change note
- In the history table on Info tab, you can see the first version with it's associated change note, and the second version with the same change note
- If you edit once more the page with a new change note, this third revision will show up it's associated change note
- Editing the page and saving again without change note will reflect the bug again.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Resolved] (JSPWIKI-695) change note gets sticked upon several revisions

Posted by "Juan Pablo Santos Rodríguez (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JSPWIKI-695?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Juan Pablo Santos Rodríguez resolved JSPWIKI-695.
-------------------------------------------------

       Resolution: Fixed
    Fix Version/s: 3.0

fixed in v.3.0.0-svn-230, with it's corresponding unit test.

ContentManager stores the change note as a page attribute. When saving a new version of the page, it retrieves the last version, getting all of it's attributes through a for loop. 

As a consequence, if there wasn't a change note, we were storing the old changenote in the new page's version.

> change note gets sticked upon several revisions
> -----------------------------------------------
>
>                 Key: JSPWIKI-695
>                 URL: https://issues.apache.org/jira/browse/JSPWIKI-695
>             Project: JSPWiki
>          Issue Type: Bug
>          Components: Core & storage
>    Affects Versions: 3.0
>            Reporter: Juan Pablo Santos Rodríguez
>             Fix For: 3.0
>
>
> Reproduction steps:
> - Create a new page and some content with a change note (for example rev1)
> - Edit this new page with some more content, but without change note
> - In the history table on Info tab, you can see the first version with it's associated change note, and the second version with the same change note
> - If you edit once more the page with a new change note, this third revision will show up it's associated change note
> - Editing the page and saving again without change note will reflect the bug again.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira