|Anonymous | Login | Signup for a new account||08-13-2020 12:54 PDT|
|Main | My View | View Issues | Change Log | Docs|
|Viewing Issue Simple Details [ Jump to Notes ]||[ View Advanced ] [ Issue History ] [ Print ]|
|ID||Category||Severity||Reproducibility||Date Submitted||Last Update|
|0003901||[Quercus]||minor||always||02-20-10 21:39||02-20-10 21:39|
|Summary||0003901: JSR 223 javax.script ServletContext issue|
(rep by liamr)
We're trying to use quercus as a JSR-223 compliant scripting language with Shibboleth (a java based web SSO package). In addition to being an SSO, Shibboleth provides "attribute" information about users for the purposes of making authorization decisions. Attribute values can be generated by JSR-223 compliant languages...
My php script can see the information passed into it..
But attribute data modified by the script doesn't make it back out of the script.
$phpAttr = new BasicAttribute("phpAttr");
Other than invoking $attr->getValues()->add(), one shouldn't have to do anything to make the information available to the application. The equivalent script in ECMAscript would be..
jsAttr = new BasicAttribute("jsAttr");
I'm not that Java savvy, but the Shib developers suggested that it could be a "context" issue.
The JSR-223 APIs have you pass in a processing context in to the script execution engine. This context contains a map where the keys are the attribute IDs and the values are the created objects. The keys then get changed in to variables within the script.
Shibboleth can see the updated value in the other JSR-223 compliant languages I've tried (jython, jruby, ECMAscript, groovy). My example script is essentially the same across all languages.
I'd really like to be able to use PHP/Quercus for this purpose (PHP being my language of choice). I'm not sure if the behavior I'm seeing with Quercus is a bug or a configuration option.
|There are no notes attached to this issue.|
| Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
26 total queries executed.|
24 unique queries executed.