How to stop E_FILENAME_TRANSFORM events?
Hi!
As part of my authorization plugin I have a content URL tokenization system. When user requests some content to play, it sends a tokenized name. e.g. 06e3b733c1140573f105a83462471df8. Then it transforms through a request into 3rd system to a full path of the requested content.
To handle this I ought to catch E_FILENAME_TRANFORM and change a content path there. It is odd that is imposible to do it during E_PLAY event.
Everything is fine while the content transformation is successfull and I authorize E_FILENAME_TRANSFORM event. But when the transformation failed and I blocked E_FILENAME_TRANSFORM and even close!!! the connection with a user, I still get a few E_FILENAME_TRANSFORM events after the blocked first!
I understand the nature of those events, but I would like to find a way to prevent the generation.Simple solutions like 'just ignore it' or 'remeber somewhere that it was already handled and blocked' do not work in my case. The whole system is comlex, have a async pool of threads to handle requests into 3rd systems and completely stateless!Thanks!