[OPENIDM-3857] Cannot pass along custom context when making router requests from script Created: 24/Aug/15 Updated: 06/Jun/17 Resolved: 06/Jun/17
|Component/s:||Module - Scripting|
|Affects Version/s:||OpenIDM 4.0.0|
|Reporter:||Jake Feasel||Assignee:||Brendan Miller|
|Remaining Estimate:||Not Specified|
|Time Spent:||Not Specified|
|Original Estimate:||Not Specified|
|Sprint:||OpenIDM Sprint 47|
Router calls from scripts using the "openidm" object are not able to define the context to use when executing that request. This is a regression from 3.2, and it prevents things like the linkedView from preventing information leakage based on authz filter logic.
It is expected that this should work, for example:
openidm.read(resourceId, null, context.current)
Presently such a call will fail.
This can be easily demonstrated using a custom endpoint, a sample command for doing so included below:
The above will fail with this output:
|Comment by Brendan Miller [ 26/Aug/15 ]|
I have a suspicion it will take a form of https://bugster.forgerock.org/jira/browse/CHF-27 to satisfy this requirement.
|Comment by Brendan Miller [ 12/Feb/16 ]|
Added to the SCRIPT-23 backlog
|Comment by Brendan Miller [ 10/Mar/16 ]|
See also this mailing list question
|Comment by Brendan Miller [ 06/Jun/17 ]|