On 01/15/2014 06:46 AM, Clemens Klein-Robbenhaar wrote:
Hi Patrick,
I'm working with a XWiki Enterprise 2.3 on
tomcat and Oracle 10;
Since 2 or 3 days, when we upload a new file to a page , the file is
available during 1 min then the file size change to 0kb ;
It is not directly related, but I have seen a similar effect when using XWiki with
a mySQL DB, which had a far too small "max_allowed_packet" config on the mySQL
server.
Somehow an error was generated in the DB Server, but not properly propagated to the
application.
Maybe there is something similar in your case, even though the DB Server is different.
There should be an error on the DB Server in that case.
Hope this helps,
Clemens
Yes, a database error is the general cause for this kind of behavior.
What's happening is that the document is modified in memory to have the
right attachment, it is placed in cache, but trying to save it to the
database fails. As long as the document (and its attachment) is still in
the cache, it will display fine. Once the attachment is evicted from the
cache, trying to load it from the database will fail.
However, in a transactional database I would expect the error to abort
the whole thing and be displayed to the user when uploading.
--
Sergiu Dumitriu
http://purl.org/net/sergiu