Skip to content

Commit

Permalink
Fixed pre-loading data to be ready in the html page. This was the res…
Browse files Browse the repository at this point in the history
…ult of a change in RF's handling of Longs - apparently we now need to treat them as Strings, even though they are base64'd when they go over the wire anyway...
  • Loading branch information
niloc132 committed May 11, 2011
1 parent 6d456f5 commit 57f724e
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,9 @@ public String getViewerAsJson() {
AutoBean<IdMessage> id = factory.id();
try {
id.as().setServerId(
Base64Utils.toBase64(user.getId().toString().getBytes(
"UTF-8")));
Base64Utils
.toBase64(("\"" + user.getId().toString() + "\"")
.getBytes("UTF-8")));
} catch (UnsupportedEncodingException e) {
return "";
}
Expand Down

0 comments on commit 57f724e

Please sign in to comment.