Duplicate parameter values after forwarding from controller to another

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Duplicate parameter values after forwarding from controller to another

Joud Kassem
Hi,

I'm upgrading to grails 3.3.8 and I have this issue:

I have this params list: [customerController:customer, customerAction:index, controller:roles, action:index]

After forwarding it from roles controller to auth controller, as I see in the auth interceptor some values are duplicated as following:
[customerController:[customer, customer], customerAction:[index, index], controller:auth, action:index]

Anybody knows what could be the reason for this duplication?

Thanks

--
You received this message because you are subscribed to the Google Groups "Grails Dev Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/grails-dev-discuss/45d8365d-b6db-44bb-9589-3c29d2c20c57%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Duplicate parameter values after forwarding from controller to another

Jeff Scott Brown-4
On 3 Dec 2018, at 5:43, Joud wrote:

> Hi,
>
> I'm upgrading to grails 3.3.8 and I have this issue:
>
> I have this params list: *[customerController:customer,
> customerAction:index, controller:roles, action:index]*
>
> After forwarding it from roles controller to auth controller, as I see in
> the auth interceptor some values are duplicated as following:
> *[customerController:[customer, customer], customerAction:[index, index],
> controller:auth, action:index]*
>

See https://github.com/grails/grails-core/issues/9526#issuecomment-168963512.

Is that related to the behavior you are seeing?



JSB

--
Jeff Scott Brown
OCI Partner and Principal Software Engineer
OCI Grails and Micronaut Practice Lead

Autism Strikes 1 in 166
Find The Cause ~ Find The Cure
http://www.autismspeaks.org/

--
You received this message because you are subscribed to the Google Groups "Grails Dev Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/grails-dev-discuss/BEEF0082-BAF2-436B-9F88-A611E6A3431E%40objectcomputing.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Duplicate parameter values after forwarding from controller to another

Joud Kassem
Yes exactly thanks a lot :)

On Monday, December 3, 2018 at 2:56:47 PM UTC+1, Jeff Scott Brown wrote:
On 3 Dec 2018, at 5:43, Joud wrote:

> Hi,
>
> I'm upgrading to grails 3.3.8 and I have this issue:
>
> I have this params list: *[customerController:customer,
> customerAction:index, controller:roles, action:index]*
>
> After forwarding it from roles controller to auth controller, as I see in
> the auth interceptor some values are duplicated as following:
> *[customerController:[customer, customer], customerAction:[index, index],
> controller:auth, action:index]*
>

See <a href="https://github.com/grails/grails-core/issues/9526#issuecomment-168963512" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fgrails%2Fgrails-core%2Fissues%2F9526%23issuecomment-168963512\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFiPyJogf1klO8hB_n7RmeU31grwg&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fgrails%2Fgrails-core%2Fissues%2F9526%23issuecomment-168963512\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFiPyJogf1klO8hB_n7RmeU31grwg&#39;;return true;">https://github.com/grails/grails-core/issues/9526#issuecomment-168963512.

Is that related to the behavior you are seeing?



JSB

--
Jeff Scott Brown
OCI Partner and Principal Software Engineer
OCI Grails and Micronaut Practice Lead

Autism Strikes 1 in 166
Find The Cause ~ Find The Cure
<a href="http://www.autismspeaks.org/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.autismspeaks.org%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHLOilSQBYB1lzLN6Ms6K6DtQY5DQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.autismspeaks.org%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHLOilSQBYB1lzLN6Ms6K6DtQY5DQ&#39;;return true;">http://www.autismspeaks.org/

--
You received this message because you are subscribed to the Google Groups "Grails Dev Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/grails-dev-discuss/9bfe27ab-c740-4653-9c4e-20feabb30068%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.