GET submission issue with encode-for-uri()

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

GET submission issue with encode-for-uri()

Harshal
Hello All,

I am using encode-for-uri() method to escape special characters in URL.
I see weird behavior when I use encode-for-uri() in GET submission whose URL contains special character ( e.g. ampersand '&' )

I have following url
http://localhost/exist/rest/db/test/{encode-for-uri('sample&sample.xml')}

I first do PUT submission which successfully creates resource sample%26sample.xml under /db/test
When I do GET submission with same URL, I get HTTP 404 [Not found]

I have attached sample program which does GET and PUT submission.ampersand-issue.xhtml


Note: I see the file when I try URL from browser.

Has anyone seen same issue?
Any ideas how to solve this one?

Thanks,
Harshal Raut


Reply | Threaded
Open this post in threaded view
|

Re: GET submission issue with encode-for-uri()

Harshal
This post was updated on .
Correction in attachment url:
http://orbeon-forms-ops-users.24843.n4.nabble.com/file/n4338694/ampersand-issue.xhtml

On Sun, Jan 29, 2012 at 12:08 PM, harshal.raut@opennotus.com <
harshal.raut@opennotus.com> wrote:

> Hello All,
>
> I am using encode-for-uri() method to escape special characters in URL.
> I see weird behavior when I use encode-for-uri() in GET submission whose
> URL
> contains special character ( e.g. ampersand '&' )
>
> I have following url
>
> http://localhost/exist/rest/db/test/{encode-for-uri('sample&sample.xml')}
>
> I first do PUT submission which successfully creates resource
> sample%26sample.xml under /db/test
> When I do GET submission with same URL, I get HTTP 404 [Not found]
>
> I have attached sample program which does GET and PUT submission.
>
> http://orbeon-forms-ops-users.24843.n4.nabble.com/file/n4338694/ampersand-issue.xhtml
> ampersand-issue.xhtml
>
>
> Note: I see the file when I try URL from browser.
>
> Has anyone seen same issue?
> Any ideas how to solve this one?
>
> Thanks,
> Harshal Raut
>
>
>
>
> --
> View this message in context:
> http://orbeon-forms-ops-users.24843.n4.nabble.com/GET-submission-issue-with-encode-for-uri-tp4338694p4338694.html
> Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.com.
>
>
> --
> You receive this message as a subscriber of the ops-users@ow2.org mailing
> list.
> To unsubscribe: mailto:ops-users-unsubscribe@ow2.org
> For general help: mailto:sympa@ow2.org?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
>
>





--
You receive this message as a subscriber of the ops-users@ow2.org mailing list.
To unsubscribe: mailto:ops-users-unsubscribe@ow2.org
For general help: mailto:sympa@ow2.org?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws