Skip to content

Commit 655d843

Browse files
Merge pull request #98 from browserstack/LOC-6730
Fixes for LOC-6730 & 6729
2 parents efea07e + 5bb0851 commit 655d843

5 files changed

Lines changed: 7 additions & 6 deletions

File tree

.github/workflows/Semgrep.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ jobs:
2727

2828
container:
2929
# A Docker image with Semgrep installed. Do not change this.
30-
image: returntocorp/semgrep
30+
# Pinned by digest (LOC-6730 / INF-002) — tag-mutation is a supply-chain vector.
31+
image: returntocorp/semgrep@sha256:9349edbadf90c3f3c0c3f55867625354e89680e6fa10d9034042af52fdb0e0d0
3132

3233
# Skip any PR created by dependabot to avoid permission issues:
3334
if: (github.actor != 'dependabot[bot]')

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Add this dependency to your project's POM:
1111
<dependency>
1212
<groupId>com.browserstack</groupId>
1313
<artifactId>browserstack-local-java</artifactId>
14-
<version>1.1.6</version>
14+
<version>1.1.9</version>
1515
</dependency>
1616
```
1717

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<groupId>com.browserstack</groupId>
44
<artifactId>browserstack-local-java</artifactId>
55
<packaging>jar</packaging>
6-
<version>1.1.8</version>
6+
<version>1.1.9</version>
77

88
<name>browserstack-local-java</name>
99
<description>Java bindings for BrowserStack Local</description>

src/main/java/com/browserstack/local/Local.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public class Local {
2323
private LocalProcess proc = null;
2424

2525
// Current version of binding package, used for --source option of binary
26-
private static final String packageVersion = "1.1.8";
26+
private static final String packageVersion = "1.1.9";
2727
private final Map<String, String> parameters;
2828
private final Map<String, String> avoidValueParameters;
2929

@@ -159,7 +159,7 @@ private void makeCommand(Map<String, String> options, String opCode) {
159159
if (IGNORE_KEYS.contains(parameter)) {
160160
continue;
161161
}
162-
if (avoidValueParameters.get(parameter) != null && opt.getValue().trim().toLowerCase() != "false") {
162+
if (avoidValueParameters.get(parameter) != null && !"false".equals(opt.getValue().trim().toLowerCase())) {
163163
command.add(avoidValueParameters.get(parameter));
164164
} else {
165165
if (parameters.get(parameter) != null) {

src/main/java/com/browserstack/local/LocalBinary.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ private void fetchSourceUrl() throws LocalException {
214214
inputParams.put("auth_token", this.key);
215215
if (fallbackEnabled) {
216216
connection.setRequestProperty("X-Local-Fallback-Cloudflare", "true");
217-
inputParams.put("error_message", downloadFailureThrowable.getMessage());
217+
inputParams.put("error_message", downloadFailureThrowable.getClass().getName());
218218
}
219219
String jsonInputParams = inputParams.toString();
220220

0 commit comments

Comments
 (0)