Skip to content

Commit

Permalink
Merge branch '9.4' into feat/bulk-import-base
Browse files Browse the repository at this point in the history
  • Loading branch information
sattvikc authored Dec 19, 2024
2 parents b135066 + 038b5c8 commit 4d972b1
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 6 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ CREATE INDEX IF NOT EXISTS bulk_import_users_pagination_index1 ON bulk_import_us
CREATE INDEX IF NOT EXISTS bulk_import_users_pagination_index2 ON bulk_import_users (app_id, created_at DESC, id DESC);
```
## [9.3.1]
- Includes exception class name in 500 error message
## [9.3.0]
### Changes
Expand Down
Binary file modified cli/jar/cli.jar
Binary file not shown.
Binary file modified downloader/jar/downloader.jar
Binary file not shown.
Binary file modified ee/jar/ee.jar
Binary file not shown.
Binary file renamed jar/core-9.3.0.jar → jar/core-9.3.1.jar
Binary file not shown.
4 changes: 2 additions & 2 deletions src/main/java/io/supertokens/webserver/WebserverAPI.java
Original file line number Diff line number Diff line change
Expand Up @@ -532,10 +532,10 @@ protected void service(HttpServletRequest req, HttpServletResponse resp) throws
} else if (rootCause instanceof BadPermissionException) {
sendTextResponse(403, rootCause.getMessage(), resp);
} else {
sendTextResponse(500, rootCause.getMessage(), resp);
sendTextResponse(500, rootCause.toString(), resp);
}
} else {
sendTextResponse(500, e.getMessage(), resp);
sendTextResponse(500, e.toString(), resp);
}
}
Logging.info(main, tenantIdentifier, "API ended: " + req.getRequestURI() + ". Method: " + req.getMethod(),
Expand Down
4 changes: 2 additions & 2 deletions src/test/java/io/supertokens/test/PathRouterTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ protected void doGet(HttpServletRequest req, HttpServletResponse resp)
fail();
} catch (HttpResponseException e) {
assertEquals(500, e.statusCode);
assertEquals("Http error. Status Code: 500. Message: Test Exception", e.getMessage());
assertEquals("Http error. Status Code: 500. Message: java.lang.RuntimeException: Test Exception", e.getMessage());
}
}

Expand All @@ -137,7 +137,7 @@ protected void doGet(HttpServletRequest req, HttpServletResponse resp)
fail();
} catch (HttpResponseException e) {
assertEquals(500, e.statusCode);
assertEquals("Http error. Status Code: 500. Message: Runtime Exception", e.getMessage());
assertEquals("Http error. Status Code: 500. Message: java.lang.RuntimeException: Runtime Exception", e.getMessage());
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ public void testImportingAUsesrFromFirebaseWithoutSettingTheSignerKey() throws E
throw new Exception("Should not come here");
} catch (io.supertokens.test.httpRequest.HttpResponseException e) {
assertTrue(e.statusCode == 500
&& e.getMessage().equals("Http error. Status Code: 500. Message: 'firebase_password_hashing_signer_key' cannot be null"));
&& e.getMessage().equals("Http error. Status Code: 500. Message: java.lang.IllegalStateException: 'firebase_password_hashing_signer_key' cannot be null"));
}

process.kill();
Expand Down Expand Up @@ -388,7 +388,7 @@ public void testSigningInAUserWithFirebasePasswordHashWithoutSettingTheSignerKey
throw new Exception("Should not come here");
} catch (io.supertokens.test.httpRequest.HttpResponseException e) {
assertTrue(e.statusCode == 500
&& e.getMessage().equals("Http error. Status Code: 500. Message: 'firebase_password_hashing_signer_key' cannot be null"));
&& e.getMessage().equals("Http error. Status Code: 500. Message: java.lang.IllegalStateException: 'firebase_password_hashing_signer_key' cannot be null"));
}

process.kill();
Expand Down

0 comments on commit 4d972b1

Please sign in to comment.