Skip to content

Commit f9688d8

Browse files
committed
Merge branch 'fb_javaApiVersion' into fb_removeMavenCentralProxy
# Conflicts: # labkey-client-api/CHANGELOG.md
2 parents 05af499 + afffbde commit f9688d8

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

labkey-client-api/CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
*Released*: TBD
55
* Update gradle and various dependencies
66
* Update signature of `Connection` constructor
7-
* Issue 43380: `ImportDataCommand` missing options supported by the query-import.api endpoint
7+
* [Issue 43380](https://www.labkey.org/home/Developer/issues/issues-details.view?issueId=43380): `ImportDataCommand` missing options supported by the query-import.api endpoint
88
* Remove `CheckForStudyReloadCommand`.
99

1010
## version 1.4.0
1111
*Released*: 16 June 2021
12-
* Issue 43246: Lineage query NPE while processing an UploadedFile
12+
* [Issue 43246](https://www.labkey.org/home/Developer/issues/issues-details.view?issueId=43246): Lineage query NPE while processing an UploadedFile
1313
* Additional lineage options and support additional properties in response
1414
* Update dependency version numbers
1515
* Update to Gradle 7.1

labkey-client-api/src/org/labkey/remoteapi/Connection.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ public Connection(URI baseURI, CredentialsProvider credentialsProvider)
142142
{
143143
if (baseURI.getHost() == null || baseURI.getScheme() == null)
144144
{
145-
throw new IllegalArgumentException("Invalid server URL: " + baseURI.toString());
145+
throw new IllegalArgumentException("Invalid server URL: " + baseURI);
146146
}
147147
_baseURI = baseURI;
148148
_credentialsProvider = credentialsProvider;
@@ -541,4 +541,4 @@ private static URI toURI(String baseUrl)
541541
throw new IllegalArgumentException("Invalid target server URL: " + baseUrl);
542542
}
543543
}
544-
}
544+
}

labkey-client-api/src/org/labkey/remoteapi/query/ImportDataCommand.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
import java.io.InputStreamReader;
3333
import java.io.StringWriter;
3434
import java.net.URI;
35+
import java.nio.charset.Charset;
3536
import java.util.Arrays;
3637
import java.util.Objects;
3738
import java.util.stream.Collectors;
@@ -580,7 +581,7 @@ private static void printUsage()
580581
private static String readFully(InputStream in) throws IOException
581582
{
582583
StringWriter sw = new StringWriter();
583-
try (BufferedReader buf = new BufferedReader(new InputStreamReader(in)))
584+
try (BufferedReader buf = new BufferedReader(new InputStreamReader(in, Charset.defaultCharset())))
584585
{
585586
String line;
586587
do

0 commit comments

Comments
 (0)