Skip to main content
Participating Frequently
November 22, 2010
Question

How to stop E_FILENAME_TRANSFORM events?

  • November 22, 2010
  • 1 reply
  • 1075 views

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!
    This topic has been closed for replies.

    1 reply

    Adobe Employee
    November 23, 2010

    Can you tell what is the FMS version are you on?

    Regards,

    Amit

    Participating Frequently
    November 23, 2010

    The same(described in the first post) behaviour I have in 3.5.3 r824a and 4.0.0 r1121 x86.

    I will test it in 4.0.1 r2009 x86 tomorrow, but I think it would be the same again.

    I  can not tell the behaviour is not correct, it is just strange that I  cannot stop E_FILENAME_TRANFORM generation by blocking it directly by  hand. I mean, if I am handling E_FILENAME_TRANSFORM and decided to block  it for any reason, why Iam still getting another E_FILENAME_TRANSFORM  events after blocked one?

    Thanks!

    Asa_-_FMS
    Adobe Employee
    Adobe Employee
    November 30, 2010

    Hey Nickolas,

    E_FILENAME_TRANSFORM is an event that doesn't really have meaning to block.  It's FMS trying to get a physical filename transform for a logical one.  So really you should either change it or not, blocking it makes little difference.

    What you can do for unauthorized items is reject/block the E_PLAY event that comes directly following the FILENAME_TRANSFORM

    Asa