Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(51)

Issue 2622042: Handle schema less url for proxy and concat

Can't Edit
Can't Publish+Mail
Start Review
Created:
15 years, 4 months ago by zhoresh
Modified:
15 years, 4 months ago
Reviewers:
johnfargo, dev-remailer, fargo
Base URL:
http://svn.apache.org/repos/asf/shindig/trunk
Visibility:
Public.

Description

When proxying a url without a schema, we should add the gadget schema to the url.

Patch Set 1 #

Patch Set 2 : Alternate solution, support schema-less when parsing a request instead of creation #

Patch Set 3 : Fixing tests #

Total comments: 2

Messages

Total messages: 6
zhoresh
15 years, 4 months ago (2010-10-21 00:48:36 UTC) #1
zhoresh
Alternate solution, support schema-less when parsing a request instead of creation
15 years, 4 months ago (2010-10-23 00:02:00 UTC) #2
zhoresh
Fixing tests
15 years, 4 months ago (2010-10-25 16:10:04 UTC) #3
fargo
LGTM http://codereview.appspot.com/2622042/diff/4002/java/gadgets/src/main/java/org/apache/shindig/gadgets/uri/DefaultProxyUriManager.java File java/gadgets/src/main/java/org/apache/shindig/gadgets/uri/DefaultProxyUriManager.java (right): http://codereview.appspot.com/2622042/diff/4002/java/gadgets/src/main/java/org/apache/shindig/gadgets/uri/DefaultProxyUriManager.java#newcode204 java/gadgets/src/main/java/org/apache/shindig/gadgets/uri/DefaultProxyUriManager.java:204: endToken = endToken + "/"; technically this is ...
15 years, 4 months ago (2010-10-25 22:57:42 UTC) #4
zhoresh
Committed to r1027321 On Mon, Oct 25, 2010 at 3:57 PM, <fargo@google.com> wrote: > LGTM ...
15 years, 4 months ago (2010-10-26 00:22:25 UTC) #5
fargo
15 years, 4 months ago (2010-10-26 00:23:26 UTC) #6
On Mon, Oct 25, 2010 at 5:22 PM, Ziv Horesh <zhoresh@gmail.com> wrote:

> Committed to r1027321
>
> On Mon, Oct 25, 2010 at 3:57 PM, <fargo@google.com> wrote:
>
>> LGTM
>>
>>
>>
>>
>>
http://codereview.appspot.com/2622042/diff/4002/java/gadgets/src/main/java/or...
>> File
>>
>>
java/gadgets/src/main/java/org/apache/shindig/gadgets/uri/DefaultProxyUriManager.java
>> (right):
>>
>>
>>
http://codereview.appspot.com/2622042/diff/4002/java/gadgets/src/main/java/or...
>>
>>
java/gadgets/src/main/java/org/apache/shindig/gadgets/uri/DefaultProxyUriManager.java:204:
>> endToken = endToken + "/";
>> technically this is unnecessary, though the resulting syntax can be
>> quite ugly indeed:
>> /gadgets/container=foo&gadget=bar/proxyhttp://www.foo.com...
>>
>> ...will break in this case. If we add this in the process step we may
>> want to ensure it's there in the corresponding make(...)
>>
>
> The reason for this fix is because make already add this extra '/' in line
> 136
> :-)
>

Weak sauce, who wrote that? :)


>
>
>>
>>
http://codereview.appspot.com/2622042/diff/4002/java/gadgets/src/test/java/or...
>> File
>>
>>
>>
java/gadgets/src/test/java/org/apache/shindig/gadgets/uri/DefaultConcatUriManagerTest.java
>> (right):
>>
>>
>>
http://codereview.appspot.com/2622042/diff/4002/java/gadgets/src/test/java/or...
>>
>>
java/gadgets/src/test/java/org/apache/shindig/gadgets/uri/DefaultConcatUriManagerTest.java:48:
>> private static final Uri RESOURCE_3 =
>> Uri.parse("//foobar.com/three.dat");
>> nit: might want to call this one RESOURCE_3_NOSCHEMA
>
> Done
>
>>
>>
>> http://codereview.appspot.com/2622042/
>>
>
>
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b