OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

wsrp-interop message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: [wsrp-interop] Spaces in resource URLs revisited.


This is working now:
http://wsrp.bea.com:7001/consumer/resource?_pageLabel=page3&_portlet.portalUrl=%2Fconsumer%2Fappmanager%2Finterop%2Fnetunity&_windowLabel=T8002663241207073021326&_nfpb=true&_portlet.renderResource=true&wsrp-urlType=resource&wsrp-url=http%3a%2f%2fwww.netunitysoftware.com%2fwsrp2interop%2fimages%2fnetunity%2520image.gif&wsrp-requiresRewrite=&wsrp-resourceID=&wsrp-preferOperation=&wsrp-resourceState=&wsrp-resourceCacheability=

Thanks,

Nate

Nader Oteifa wrote:
EAEF28D5C9C34EFEA3F463087BC2523C@n3o" type="cite">

You are correct.

 

Apparently, there is URL parameter encoding and URL path encoding (at least in .NET).  Path encoding is used to encode special characters in the path not the parameters and so a space that is path encoded is “%20” where as when parameter encoded, it is “+”.

 

The portlet is now updated and deployed with correct semantics (hopefully).  In the Resource Download portlet the URL display is a properly path encoded URL.  However, when it is used as part of the WSRP resource URL, the whole of it is parameter encoded.

 

Pseudo code for setting the URL property/attribute of a WSRP Resource URL would be:

 

WsrpUrl.Url = UrlParameterEncode(UrlPathEncode(rawUrl))

 

Please let me know if any of the above is incorrect or if it is just applicable to .NET.

 

Nader


From: Nathan Lipke [mailto:nlipke@bea.com]
Sent: Friday, April 18, 2008 12:26 PM
To: wsrp-interop@lists.oasis-open.org
Subject: [wsrp-interop] Spaces in resource URLs revisited.

 

    I'm doing some interop testing with NetUnity with a proxied URL with a space. It appears some servers (Weblogic, and IIS) do not support the '+' for a space in a resource. In this case the %20 must be used. Can we issue a clarification note that that either form can be used, depending on what resource server supports?

Does not work:
wsrp-url=http%3a%2f%2fwww.netunitysoftware.com%2fwsrp2interop%2fimages%2fnetunity%2bimage.gif

Does work:
wsrp-url=http%3a%2f%2fwww.netunitysoftware.com%2fwsrp2interop%2fimages%2fnetunity%2520image.gif

Nader,

Can you update your producer to encode the space as "%2520"

Thanks,

Nate


Notice: This email message, together with any attachments, may contain information of BEA Systems, Inc., its subsidiaries and affiliated entities, that may be confidential, proprietary, copyrighted and/or legally privileged, and is intended solely for the use of the individual or entity named in this message. If you are not the intended recipient, and have received this message in error, please immediately return this by email and then delete it.


Notice: This email message, together with any attachments, may contain information of BEA Systems, Inc., its subsidiaries and affiliated entities, that may be confidential, proprietary, copyrighted and/or legally privileged, and is intended solely for the use of the individual or entity named in this message. If you are not the intended recipient, and have received this message in error, please immediately return this by email and then delete it.


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]