You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jspwiki.apache.org by "Stefan Bohn (JIRA)" <ji...@apache.org> on 2008/10/30 18:30:44 UTC
[jira] Created: (JSPWIKI-406) Renaming a page back to the old name
destroys text changes of the page
Renaming a page back to the old name destroys text changes of the page
----------------------------------------------------------------------
Key: JSPWIKI-406
URL: https://issues.apache.org/jira/browse/JSPWIKI-406
Project: JSPWiki
Issue Type: Bug
Affects Versions: 2.8
Environment: Red Hat Linux and Windows Vista, Apache Tomcat v6.x
Reporter: Stefan Bohn
Priority: Critical
1) Create a page and enter some text.
2) Rename the page
3) Change the text
4) Rename the page back to the old name
5) Changes in Step 3 are lost in the actual revision (a revision with the changes is created)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (JSPWIKI-406) Renaming a page back to the old
name destroys text changes of the page
Posted by "Harry Metske (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/JSPWIKI-406?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12644064#action_12644064 ]
Harry Metske commented on JSPWIKI-406:
--------------------------------------
Bug reproduced on Sandbox and locally.
It is due to page caching, if you turn off page caching (jspwiki.usePageCache=false) it does not occur.
I guess the OSCache entry is not flushed on page rename.....
> Renaming a page back to the old name destroys text changes of the page
> ----------------------------------------------------------------------
>
> Key: JSPWIKI-406
> URL: https://issues.apache.org/jira/browse/JSPWIKI-406
> Project: JSPWiki
> Issue Type: Bug
> Affects Versions: 2.8
> Environment: Red Hat Linux and Windows Vista, Apache Tomcat v6.x
> Reporter: Stefan Bohn
> Priority: Critical
>
> 1) Create a page and enter some text.
> 2) Rename the page
> 3) Change the text
> 4) Rename the page back to the old name
> 5) Changes in Step 3 are lost in the actual revision (a revision with the changes is created)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (JSPWIKI-406) Renaming a page back to the old name
destroys text changes of the page
Posted by "Harry Metske (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/JSPWIKI-406?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Harry Metske updated JSPWIKI-406:
---------------------------------
Attachment: JSPWiki-406.patch
Attached patch solves the problem, I don't remember exactly but I think OSCache has some strange behavior when removing entries from the cache. I now use putInCache(key,null) instead of removeEntry(key). This was already done when deleting a page.
However, I haven't committed yet because my tests don't run correctly. Running "ant tests" gets stuck at com.ecyrd.jspwiki.providers.FileSystemProviderTest with a lot of disk activity.
Also running the JUnit test in Eclipse doesn't end, it keeps running in testScandinavianLetters.
No time yet to find that out yet.
to be continued......
> Renaming a page back to the old name destroys text changes of the page
> ----------------------------------------------------------------------
>
> Key: JSPWIKI-406
> URL: https://issues.apache.org/jira/browse/JSPWIKI-406
> Project: JSPWiki
> Issue Type: Bug
> Affects Versions: 2.8
> Environment: Red Hat Linux and Windows Vista, Apache Tomcat v6.x
> Reporter: Stefan Bohn
> Priority: Critical
> Fix For: 2.8.1
>
> Attachments: JSPWiki-406.patch
>
>
> 1) Create a page and enter some text.
> 2) Rename the page
> 3) Change the text
> 4) Rename the page back to the old name
> 5) Changes in Step 3 are lost in the actual revision (a revision with the changes is created)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (JSPWIKI-406) Renaming a page back to the old name
destroys text changes of the page
Posted by "Janne Jalkanen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/JSPWIKI-406?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Janne Jalkanen updated JSPWIKI-406:
-----------------------------------
Fix Version/s: 2.8.1
Let's fix this for 2.8.1.
> Renaming a page back to the old name destroys text changes of the page
> ----------------------------------------------------------------------
>
> Key: JSPWIKI-406
> URL: https://issues.apache.org/jira/browse/JSPWIKI-406
> Project: JSPWiki
> Issue Type: Bug
> Affects Versions: 2.8
> Environment: Red Hat Linux and Windows Vista, Apache Tomcat v6.x
> Reporter: Stefan Bohn
> Priority: Critical
> Fix For: 2.8.1
>
>
> 1) Create a page and enter some text.
> 2) Rename the page
> 3) Change the text
> 4) Rename the page back to the old name
> 5) Changes in Step 3 are lost in the actual revision (a revision with the changes is created)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (JSPWIKI-406) Renaming a page back to the old
name destroys text changes of the page
Posted by "Janne Jalkanen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/JSPWIKI-406?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12644429#action_12644429 ]
Janne Jalkanen commented on JSPWIKI-406:
----------------------------------------
removeEntry(key) is exactly the same as putInCache(key, null). However, flushEntry(key) is a different thing (which is what we were using, which was wrong...)
> Renaming a page back to the old name destroys text changes of the page
> ----------------------------------------------------------------------
>
> Key: JSPWIKI-406
> URL: https://issues.apache.org/jira/browse/JSPWIKI-406
> Project: JSPWiki
> Issue Type: Bug
> Affects Versions: 2.8
> Environment: Red Hat Linux and Windows Vista, Apache Tomcat v6.x
> Reporter: Stefan Bohn
> Assignee: Harry Metske
> Priority: Critical
> Fix For: 2.8.1
>
> Attachments: JSPWiki-406.patch
>
>
> 1) Create a page and enter some text.
> 2) Rename the page
> 3) Change the text
> 4) Rename the page back to the old name
> 5) Changes in Step 3 are lost in the actual revision (a revision with the changes is created)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (JSPWIKI-406) Renaming a page back to the old name
destroys text changes of the page
Posted by "Harry Metske (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/JSPWIKI-406?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Harry Metske resolved JSPWIKI-406.
----------------------------------
Resolution: Fixed
Assignee: Harry Metske
Well, the tests are working now (Lucene indexer tried to index my spare 10 GB partition that was mounted under /tmp :-) )
Fixed in 2.8.1-svn-2
> Renaming a page back to the old name destroys text changes of the page
> ----------------------------------------------------------------------
>
> Key: JSPWIKI-406
> URL: https://issues.apache.org/jira/browse/JSPWIKI-406
> Project: JSPWiki
> Issue Type: Bug
> Affects Versions: 2.8
> Environment: Red Hat Linux and Windows Vista, Apache Tomcat v6.x
> Reporter: Stefan Bohn
> Assignee: Harry Metske
> Priority: Critical
> Fix For: 2.8.1
>
> Attachments: JSPWiki-406.patch
>
>
> 1) Create a page and enter some text.
> 2) Rename the page
> 3) Change the text
> 4) Rename the page back to the old name
> 5) Changes in Step 3 are lost in the actual revision (a revision with the changes is created)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.