Page 1 of 1
Update URL in beforeFactory()
#1
Posted 28 November 2011 - 02:25 AM
I am tryin' to cope with problem of covering report parameters in URL using ciphers. The reason for this is clear - I don't want the user to see what parameters are passed to the report's URL.
Example
Original URL: http://localhost:808...e=dev&year=2009
Crypted URL: http://localhost:808...Idnfksdlfnskdlf
So the part after name of the report, that has to be generated
__format=xls&profile=dev&year=2009
is being encrypted to this
dcdSfCirelfcdDKFMFNIdnfksdlfnskdlf
and parameter "p" is added that holds encrypted text.
Now I want to decrypt parameters held by "p" parameter in the beforeFactory() method. I created eventHandler that extends ReportEventAdapter and overrides beforeFactory() method for this purpose but I don't know how to access "p" parameter.
Can anyone provide me please mechanism for accessing URL text?
I really appreciate any help.
Thanks
Example
Original URL: http://localhost:808...e=dev&year=2009
Crypted URL: http://localhost:808...Idnfksdlfnskdlf
So the part after name of the report, that has to be generated
__format=xls&profile=dev&year=2009
is being encrypted to this
dcdSfCirelfcdDKFMFNIdnfksdlfnskdlf
and parameter "p" is added that holds encrypted text.
Now I want to decrypt parameters held by "p" parameter in the beforeFactory() method. I created eventHandler that extends ReportEventAdapter and overrides beforeFactory() method for this purpose but I don't know how to access "p" parameter.
Can anyone provide me please mechanism for accessing URL text?
I really appreciate any help.
Thanks
#2
Posted 29 November 2011 - 12:21 AM
I solved the problem using little work-around: I added parameter "p" to all my reports, so in beforeFactory() the parameter had been set and then I can access it and decrypt.
But now I face another big problem. Is there any way to set the "__format" parameter programmatically? For now I do not encrypt this parameter but that's not the best solution.
But now I face another big problem. Is there any way to set the "__format" parameter programmatically? For now I do not encrypt this parameter but that's not the best solution.
Page 1 of 1





MultiQuote



