requestURI/URL pathInfo issues

10 views
Skip to first unread message

Sven Haiges

unread,
Apr 16, 2013, 4:53:57 AM4/16/13
to gae...@googlegroups.com
Hi all, 

I am developing a tiny voucher prototype that needs to calculate a hash value based on the requested URL. So naturlaly, I started working with request.requestURL and reqquestURI for example. The proble, here is that gaelyk 1.2 seems to return the executing groovy script in thsi case, not the real URL that was requested.

Example
http://arduinopiano.appspot.com/vouchers/1234 (this url will likely stop working in a second as I make changes)

Response (formateed in json)
{}

requestURL /URI is simply the value of request.requestURL/URI. the executing groovy script happens to have the name vouchers.groovy, which I'll probably base my solution on for now. But it is of course not optimal.

Is there another workaroudn? Is this a known issue, can it be fixed in 2.0?

Thx
Sven

Vladimír Oraný

unread,
Apr 16, 2013, 4:58:15 AM4/16/13
to gae...@googlegroups.com
Hi Sven,

you can obtain the original non-dispatched URI from request.originalURI. I'm not sure ATM, but is should be already available in 1.2

Cheers,
Vladimir


2013/4/16 Sven Haiges <sven....@gmail.com>

--
--
You've received this message because you've subscribed to the Gaelyk Google Group.
To send an email to the group, please write to: gae...@googlegroups.com
To unsuscribe from this group: gaelyk+un...@googlegroups.com
To show more options: http://groups.google.fr/group/gaelyk?hl=en
 
---
You received this message because you are subscribed to the Google Groups "Gaelyk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gaelyk+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply all
Reply to author
Forward
0 new messages