Skip to content

Commit da153bc

Browse files
author
Karl Rieb
committed
2.0.7 release.
1 parent 81804e8 commit da153bc

File tree

5 files changed

+19
-3
lines changed

5 files changed

+19
-3
lines changed

.gitignore

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,13 @@ intellij/
1010
.idea/
1111
*.iml
1212
gradle.properties
13+
local.properties
1314

1415
# Output file when rendering ReadMe.md locally.
1516
/ReadMe.html
1617

1718
# editor temp files
18-
*~
19+
*~
20+
21+
# pyc files from generator
22+
*.pyc

ChangeLog.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
2.0.7 (2016-08-02)
2+
---------------------------------------------
3+
- Backport of v2.1.1 critical deserialization bug fix.
4+
15
2.0.6 (2016-06-20)
26
---------------------------------------------
37
- Update to latest API specs:

ReadMe.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ If you're using Maven, then edit your project's "pom.xml" and add this to the `<
1414
<dependency>
1515
<groupId>com.dropbox.core</groupId>
1616
<artifactId>dropbox-core-sdk</artifactId>
17-
<version>2.0.6</version>
17+
<version>2.0.7</version>
1818
</dependency>
1919
```
2020

@@ -23,7 +23,7 @@ If you are using Gradle, then edit your project's "build.gradle" and add this to
2323
```groovy
2424
dependencies {
2525
// ...
26-
compile 'com.dropbox.core:dropbox-core-sdk:2.0.6'
26+
compile 'com.dropbox.core:dropbox-core-sdk:2.0.7'
2727
}
2828
```
2929

src/main/java/com/dropbox/core/stone/StoneSerializer.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ protected static void expectEndArray(JsonParser p) throws IOException, JsonParse
117117
protected static void skipValue(JsonParser p) throws IOException, JsonParseException {
118118
if (p.getCurrentToken().isStructStart()) {
119119
p.skipChildren();
120+
p.nextToken();
120121
} else if (p.getCurrentToken().isScalarValue()) {
121122
p.nextToken();
122123
} else {

src/test/java/com/dropbox/core/v2/files/DataTypeSerializationTest.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,13 @@ public void testUnknownStructFields() throws Exception {
6767
Dimensions actual = Dimensions.Serializer.INSTANCE.deserialize(json);
6868

6969
assertEquals(actual, expected);
70+
71+
// change order of fields to ensure we parse valid fields at end of response
72+
json = "{\"height\":768,\"alpha\":0.5,\"foo\":{\"bar\":[1, 2, 3],\"baz\":false},\"width\":1024}";
73+
expected = new Dimensions(768, 1024);
74+
actual = Dimensions.Serializer.INSTANCE.deserialize(json);
75+
76+
assertEquals(actual, expected);
7077
}
7178

7279
@Test

0 commit comments

Comments
 (0)