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

Issue 4343053: DefaultIframeUriManager changes for handling locked domains (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
14 years, 11 months ago by Stanton
Modified:
14 years, 10 months ago
Reviewers:
johnfargo, Paul Lindner, dev-remailer, plindner1
Base URL:
http://svn.apache.org/repos/asf/shindig/trunk/
Visibility:
Public.

Description

Currently, specifying a lockedDomainSuffix with a port number causes an exception to be thrown when using the DefaultIframeUriManager and the DefaultUriParser. The problem is that such URLs are parsed as opaque and opaque URLs are not allowed by the default parser. These changes will break unlockedDomain URLs such as "www.example.com" and "www.example.com:8080" when they used to work. These are now broken because I moved the setAuthority() call outside of the conditional in in DefaultIframeUriManager. Based on RFC 3986, a URI such as "www.example.com" is parsed as the Path not the Authority and one such as "www.example.com:8080" is parsed with "www.example.com" as the Scheme and "8080" as the Scheme-specific Part. The setAuthority() call in the case of a blank schema worked around that, although probably incorrectly. Unlocked domain URLs would now require either a Schema or "//" prepended to the URL in order to unambiguously be parsed as the Authority. If this is going to cause too much turbulence, I could do some further checking as was done before.

Patch Set 1 #

Patch Set 2 : Updates based on John's feedback #

Total comments: 1

Patch Set 3 : Fixed indentation inconsistencies #

Patch Set 4 : Fixed indentation issues in the test file #

Unified diffs Side-by-side diffs Delta from patch set Stats (+50 lines, -6 lines) Patch
java/gadgets/src/main/java/org/apache/shindig/gadgets/uri/DefaultIframeUriManager.java View 1 2 3 1 chunk +14 lines, -5 lines 0 comments Download
java/gadgets/src/test/java/org/apache/shindig/gadgets/uri/DefaultIframeUriManagerTest.java View 1 2 3 3 chunks +36 lines, -1 line 0 comments Download

Messages

Total messages: 8
Stanton
14 years, 11 months ago (2011-04-04 23:02:53 UTC) #1
johnfargo
Hi Stanton- This looks pretty reasonable to me, though our team definitely needs to take ...
14 years, 11 months ago (2011-04-06 05:37:00 UTC) #2
Stanton
Updates based on John's feedback
14 years, 11 months ago (2011-04-06 22:34:38 UTC) #3
johnfargo
Looks great! Adding dev-remailer@shindig.apache.org and Paul to take a look as well. http://codereview.appspot.com/4343053/diff/3001/java/gadgets/src/main/java/org/apache/shindig/gadgets/uri/DefaultIframeUriManager.java File java/gadgets/src/main/java/org/apache/shindig/gadgets/uri/DefaultIframeUriManager.java ...
14 years, 11 months ago (2011-04-06 22:50:09 UTC) #4
plindner1
lgtm
14 years, 11 months ago (2011-04-06 22:55:19 UTC) #5
Stanton
On 2011/04/06 22:50:09, johnfargo wrote: > Looks great! Adding mailto:dev-remailer@shindig.apache.org and Paul to take a ...
14 years, 11 months ago (2011-04-07 00:04:12 UTC) #6
johnfargo
You know, it's been so long since I've set that up that I forget whether ...
14 years, 11 months ago (2011-04-07 00:44:22 UTC) #7
Stanton
14 years, 11 months ago (2011-04-07 01:31:03 UTC) #8
Fixed indentation inconsistencies
Sign in to reply to this message.

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