[xwiki-users] Attachment loss after restarting tomcat
Hello everybody, I think I do have a severe problem. I created a new wiki and enabled file system storage as described here: http://extensions.xwiki.org/xwiki/bin/view/Extension/Filesystem+Attachment+P... As described here (http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Attachments) I should be able to find the attachments in /usr/share/tomcat5.5/work/storage/xwiki/?. Unfortunately they are all saved in a temp directory: /usr/share/tomcat5.5/temp/work/storage/xwiki/Main/Test_for_upload/~this/attachments After restarting tomcat all attachments seem to be gone. What have I done wrong? Do I need to change anything in the tomcat configs? Any help is appreciated, Stephanie
Hi Stephanie, On Sep 12, 2011, at 8:00 PM, [email protected] wrote:
Hello everybody,
I think I do have a severe problem. I created a new wiki and enabled file system storage as described here: http://extensions.xwiki.org/xwiki/bin/view/Extension/Filesystem+Attachment+P...
As described here (http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Attachments) I should be able to find the attachments in /usr/share/tomcat5.5/work/storage/xwiki/?.
Unfortunately they are all saved in a temp directory: /usr/share/tomcat5.5/temp/work/storage/xwiki/Main/Test_for_upload/~this/attachments
After restarting tomcat all attachments seem to be gone.
What have I done wrong?
Nothing. This is a bug that we've discovered and fixe today. Here's the issue FYI: http://jira.xwiki.org/jira/browse/XWIKI-6959 I don't know if there's a workaround. Thomas (who fixed the issue) should know. Thomas? Thanks -Vincent
Do I need to change anything in the tomcat configs?
Any help is appreciated, Stephanie
On Mon, Sep 12, 2011 at 9:06 PM, Vincent Massol <[email protected]> wrote:
Hi Stephanie,
On Sep 12, 2011, at 8:00 PM, [email protected] wrote:
Hello everybody,
I think I do have a severe problem. I created a new wiki and enabled file system storage as described here: http://extensions.xwiki.org/xwiki/bin/view/Extension/Filesystem+Attachment+P...
As described here (http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Attachments) I should be able to find the attachments in /usr/share/tomcat5.5/work/storage/xwiki/?.
Unfortunately they are all saved in a temp directory: /usr/share/tomcat5.5/temp/work/storage/xwiki/Main/Test_for_upload/~this/attachments
After restarting tomcat all attachments seem to be gone.
What have I done wrong?
Nothing. This is a bug that we've discovered and fixe today. Here's the issue FYI: http://jira.xwiki.org/jira/browse/XWIKI-6959
I don't know if there's a workaround. Thomas (who fixed the issue) should know.
Thomas?
Because of the bug you need to setup both xwiki.temp.dir and xwiki.work.dir for xwiki.work.dir properties in xwiki.cfg to be taken into account. But even without the bug you would have to make sure xwiki.work.dir is associated to a proper permanent folder (by default it fallback on temporary folder because there is no standard way for XWiki to get application server permanent directory, only temporary directory is part of Servlet specifications).
Thanks -Vincent
Do I need to change anything in the tomcat configs?
Any help is appreciated, Stephanie
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Thomas Mortagne
participants (3)
-
lists@yhmail.de -
Thomas Mortagne -
Vincent Massol