AnsweredAssumed Answered

Persistent URL tickets disappearing

Question asked by rien0700 on Feb 4, 2013
I'm running Alfresco Community 4.0.d and a few months ago I noticed a kind of obscure bug when using disk persistent tickets in org.alfresco.cache.ticketsCache.

I'm also using Moodle 2.2 and that is where I need the persistent tickets to be able to include and access files from alfresco. If you don't know what I mean, this is the way work material is accessed from alfresco:


Please notice the ticket that is appended.

The bug appears very infrequently and is hard to trigger. What happens is that in some rare cases some of the tickets disappear. It's only a few tickets, maybe 1 or 2 that disappears from the ticket cache. I don't know if it is the latest or the oldest tickets that vanish. I have compared the ticket cache in tomcat/temp/ and I have seen that they actually do disappear.

However I have managed to trigger the bug by restarting the server several times in a row and during each of the startups I logged in to alfresco via Moodle and included files with new tickets. Everything is fine so far, to trigger the bug I restart the server and it could take anything from 3 - 20 restarts before the bug appeared, i.e. tickets disappeared from the cache.

I could generate 10 different tickets right now and when I reboot Alfresco 30 minutes later (or 10 weeks later for that matter) one of the tickets might disappear, while the rest of them stay valid.

My guess is that there is a shy bug somewhere in the classes related to ticketsCache

Anyone with deep insight into those classes might be able to figure out what it is all about.

Any ideas? I think this is kinda severe.

My Alfresco settings:

I override the EHCache defaults by moving ehcache-custom.xml here:

And then I configure ticketsCache like this:


I have tried different settings without any success.