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

Issue 6305079: Using custom @ ids GroupIds throws IllegalArgumentException (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 7 months ago by rbaxter85
Modified:
13 years, 7 months ago
Reviewers:
Stanton, dev, douglasldavies, daviesd, themistymay
Base URL:
http://svn.apache.org/repos/asf/shindig/trunk
Visibility:
Public.

Description

If you try to create a GroupId with a non standard @ id an IllegalArgumentException will be thrown. This is because we default the type to ObjectId and @ is not a valid character in an ObjectId.

Patch Set 1 #

Patch Set 2 : Updated patch #

Total comments: 2

Patch Set 3 : Updated based on Doug's suggestions. #

Total comments: 7

Patch Set 4 : Updated comments #

Patch Set 5 : Changed variable name #

Unified diffs Side-by-side diffs Delta from patch set Stats (+42 lines, -4 lines) Patch
java/social-api/src/main/java/org/apache/shindig/social/opensocial/spi/GroupId.java View 1 2 4 5 chunks +12 lines, -4 lines 0 comments Download
java/social-api/src/test/java/org/apache/shindig/social/opensocial/spi/GroupIdTest.java View 1 2 4 3 chunks +30 lines, -0 lines 0 comments Download

Messages

Total messages: 13
rbaxter85
13 years, 7 months ago (2012-06-10 22:04:15 UTC) #1
rbaxter85
Updated patch
13 years, 7 months ago (2012-06-10 22:15:05 UTC) #2
DouglasLDavies
http://codereview.appspot.com/6305079/diff/1002/java/social-api/src/main/java/org/apache/shindig/social/opensocial/spi/GroupId.java File java/social-api/src/main/java/org/apache/shindig/social/opensocial/spi/GroupId.java (right): http://codereview.appspot.com/6305079/diff/1002/java/social-api/src/main/java/org/apache/shindig/social/opensocial/spi/GroupId.java#newcode115 java/social-api/src/main/java/org/apache/shindig/social/opensocial/spi/GroupId.java:115: String type = parseType(objectId); I wonder if parseType could ...
13 years, 7 months ago (2012-06-11 04:23:39 UTC) #3
rbaxter85
Updated based on Doug's suggestions.
13 years, 7 months ago (2012-06-11 13:31:05 UTC) #4
DouglasLDavies
http://codereview.appspot.com/6305079/diff/6001/java/social-api/src/main/java/org/apache/shindig/social/opensocial/spi/GroupId.java File java/social-api/src/main/java/org/apache/shindig/social/opensocial/spi/GroupId.java (right): http://codereview.appspot.com/6305079/diff/6001/java/social-api/src/main/java/org/apache/shindig/social/opensocial/spi/GroupId.java#newcode128 java/social-api/src/main/java/org/apache/shindig/social/opensocial/spi/GroupId.java:128: // return null we don't know the type change ...
13 years, 7 months ago (2012-06-11 13:48:55 UTC) #5
TheMistyMay
Other than the null comment...LGTM Applied patch and ran tests, all successful. Ship it! http://codereview.appspot.com/6305079/diff/6001/java/social-api/src/main/java/org/apache/shindig/social/opensocial/spi/GroupId.java ...
13 years, 7 months ago (2012-06-11 15:35:11 UTC) #6
Stanton
LGTM.
13 years, 7 months ago (2012-06-11 19:53:57 UTC) #7
rbaxter85
Updated comments
13 years, 7 months ago (2012-06-12 00:41:21 UTC) #8
rbaxter85
http://codereview.appspot.com/6305079/diff/6001/java/social-api/src/test/java/org/apache/shindig/social/opensocial/spi/GroupIdTest.java File java/social-api/src/test/java/org/apache/shindig/social/opensocial/spi/GroupIdTest.java (right): http://codereview.appspot.com/6305079/diff/6001/java/social-api/src/test/java/org/apache/shindig/social/opensocial/spi/GroupIdTest.java#newcode43 java/social-api/src/test/java/org/apache/shindig/social/opensocial/spi/GroupIdTest.java:43: GroupId unknown = GroupId.fromJson("@foo"); +1 Mike. Doug is there ...
13 years, 7 months ago (2012-06-12 00:41:36 UTC) #9
DouglasLDavies
http://codereview.appspot.com/6305079/diff/6001/java/social-api/src/test/java/org/apache/shindig/social/opensocial/spi/GroupIdTest.java File java/social-api/src/test/java/org/apache/shindig/social/opensocial/spi/GroupIdTest.java (right): http://codereview.appspot.com/6305079/diff/6001/java/social-api/src/test/java/org/apache/shindig/social/opensocial/spi/GroupIdTest.java#newcode43 java/social-api/src/test/java/org/apache/shindig/social/opensocial/spi/GroupIdTest.java:43: GroupId unknown = GroupId.fromJson("@foo"); Sorry. I meant the variable ...
13 years, 7 months ago (2012-06-12 02:37:55 UTC) #10
TheMistyMay
http://codereview.appspot.com/6305079/diff/6001/java/social-api/src/test/java/org/apache/shindig/social/opensocial/spi/GroupIdTest.java File java/social-api/src/test/java/org/apache/shindig/social/opensocial/spi/GroupIdTest.java (right): http://codereview.appspot.com/6305079/diff/6001/java/social-api/src/test/java/org/apache/shindig/social/opensocial/spi/GroupIdTest.java#newcode43 java/social-api/src/test/java/org/apache/shindig/social/opensocial/spi/GroupIdTest.java:43: GroupId unknown = GroupId.fromJson("@foo"); Ahhh! I'd be fine with ...
13 years, 7 months ago (2012-06-12 12:22:49 UTC) #11
rbaxter85
Changed variable name
13 years, 7 months ago (2012-06-12 13:34:52 UTC) #12
rbaxter85
13 years, 7 months ago (2012-06-13 00:30:55 UTC) #13
On 2012/06/12 13:34:52, rbaxter85 wrote:
> Changed variable name

Committed
Sign in to reply to this message.

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