Announcements
The Google Cloud Community will be in read-only from July 16 - July 22 as we migrate to a new platform; refer to this community post for more details.
Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

request.path bug

Not applicable

With GET /test?foo=bar the JS policy

print( request.path );
print( context.getVariable( 'request.path' ) );

gives:

/test?foo=bar (incorrect)
/test         (correct)

on-premise Version 4.15.07.00.

1 2 195
2 REPLIES 2

gnanasekaran
Former Googler

Thanks @Morris Brodersen, fyi @Shailendra Baxi, can you pls check?

Not applicable

you should use

print( context.getVariable('request.path'));