Miguel Serrano
3e81e212f3
Merge pull request #19054 from overleaf/msm-fit-bridge-java-21
...
[git-bridge] Update Java 21
GitOrigin-RevId: 67429a15e484947b9109ceedc303b3a3c8d32911
2024-07-04 08:05:47 +00:00
Miguel Serrano
da5846209f
Merge pull request #18402 from overleaf/msm-git-bridge-pom
...
* [git-bridge] Extracted pom versions to properties
Managing versions as properties is a best practice
with pom files. An advantage in our case is ensuring
dependency groups (as simpleclient) are upgraded
together.
* [git-bridge] Remove '_' as keyword
* [git-bridge] Added formatting with 'fmt-maven-plugin'
* Remove java from .editorconfig
No longer needed as a formatter is now available
* Replace javadoc comments with multiline comments
Replaces "/**" with "/*", which then prevents the formatter
from adding HTML elements to comments
* [git-bridge] Formatted .java files
GitOrigin-RevId: 0997b838cee88c290d824a74444295e26392f26b
2024-06-17 08:04:21 +00:00
Eric Mc Sween
a5834a0f8c
Merge pull request #13107 from overleaf/em-reenable-swap-job-test
...
Reenable swap job test in git bridge
GitOrigin-RevId: 4fcef9d1b9a6ef169b14ec490b785daeb80ab418
2023-05-17 12:05:20 +00:00
Eric Mc Sween
effccf2d3a
Merge pull request #12997 from overleaf/em-git-bridge-pat-messaging
...
Adapt git bridge messaging to personal access tokens
GitOrigin-RevId: 0b5d5ecbd97814c8b18827fe11e77513c11bab3a
2023-05-16 08:04:36 +00:00
Eric Mc Sween
cc604376c5
Merge pull request #12882 from overleaf/em-git-bridge-swap-job-config
...
Disable swap job when swap store is unsafe
GitOrigin-RevId: 104b03e378e7802f9ba6ff96b5a626a2fa7960fb
2023-05-02 19:45:48 +00:00
Miguel Serrano
0564532f92
[git-bridge] Add support for Oauth2 Personal Access Tokens ( #12795 )
...
* [git-bridge] Add support for Oauth2 Personal Access Tokens
Adds support for Personal Access Tokens by sending a Bearer
token authentication when the username is `git`.
The feature is controlled by `GIT_BRIDGE_ACCESS_TOKEN_ENABLED`
---------
Co-authored-by: Eric Mc Sween <5454374+emcsween@users.noreply.github.com>
GitOrigin-RevId: 5553b0b68574158ede86ceec6c618cf4c4b09c92
2023-05-02 19:43:59 +00:00
Eric Mc Sween
c539e960e7
Merge pull request #12671 from overleaf/em-git-bridge-delete-project
...
Add endpoint to delete project data in git bridge
GitOrigin-RevId: bdc9701284255166bf4a122dad5fd89ced0c0ca2
2023-04-25 08:06:30 +00:00
June Kelly
7c809432db
Merge pull request #8409 from overleaf/jk-git-bridge-operation-in-progress
...
[git-bridge] Operation-in-progress message
GitOrigin-RevId: 2836c3917303f06c7ff2e0b91a36f88237276507
2022-07-13 08:04:46 +00:00
Miguel Serrano
de20b5b443
Merge pull request #6744 from overleaf/msm-update-async-http-client-vuln
...
[git-bridge] Bump `async-http-client` and `mockserver-netty`
GitOrigin-RevId: bcea12a01f3bbae6567b9f54567a1187e5a763f3
2022-02-16 11:39:21 +00:00
Simon Detheridge
f8f60eabad
Revert "Merge pull request #125 from overleaf/spd-revert-jetty-changes"
...
This reverts commit 9c324c378c46aa8b4b14e529e90ad9cbfca969cd, reversing
changes made to 63ccd609405952aa8749299c8a5cf7895f14a1bd.
2021-07-01 11:45:16 +01:00
Simon Detheridge
a239b70bfc
Revert change to make Jetty idle timeout configurable
2021-06-28 17:00:52 +01:00
Shane Kilkelly
899e781b33
Set sqlite soft_heap_limit via pragma
2021-06-25 12:03:57 +01:00
Simon Detheridge
cafa94fcba
Add support for bindIp and idleTimeout to config object
2021-06-24 17:00:04 +01:00
Shane Kilkelly
2efc7f22a7
Remove old username/password settings
...
These were once used to secure interactions with the web api, back when
we allowed anonymous access to git repositories. This feature was
dropped in the migration to Overleaf v2, and we use OAuth on those
interactions anyway, so these settings are not actually used for
anything, and keeping these around is just confusing.
2021-05-20 15:59:26 +01:00
Shane Kilkelly
465a39c564
Wait one second between checks in swap test
2021-02-04 09:52:13 +00:00
Shane Kilkelly
b92c737814
Use configured compression method in swap job
2021-02-04 09:52:13 +00:00
Shane Kilkelly
c67014b859
Update SqliteDBStoreTest with swap/compression
2021-02-04 09:52:13 +00:00
Shane Kilkelly
c520ecd70d
Allow configuration of AWS region
2021-01-27 10:41:32 +00:00
Eric Mc Sween
8bbeee0f8d
Strip token from blob URLs when using cache
...
Blob URLs coming from web may now contain a token for authentication
with history v1. This token will change every request, which makes the
URL not suitable as a cache key. Removing the token fixes that.
2020-12-04 15:15:10 -05:00
Shane Kilkelly
de23035e80
Add test for pulling ignored file
2020-09-29 13:00:36 +01:00
Shane Kilkelly
03af20113f
Force add the test file, sigh.
2020-09-24 13:29:39 +01:00
Shane Kilkelly
935770e2ab
Add test for reset before pull
2020-09-24 11:24:47 +01:00
Shane Kilkelly
2b8f3f4de8
Use 422 status when rejecting Git LFS request
2020-08-05 13:00:20 +01:00
Shane Kilkelly
f7125b9159
Handle Git LFS requests, with error message
...
We don't support Git LFS. This change adds a handler for
POST requests to "<project>.git/info/lfs/objects/batch",
and sends back a 406 response, with json data that the
client can use to print a nice error message.
2020-08-05 10:08:40 +01:00
Shane Kilkelly
5e31a11938
Respond to HEAD request in /status, /health_check
2020-06-26 11:54:18 +01:00
Shane Kilkelly
a9a7f54a96
Handle trailing slash on status and health_check
2020-06-25 16:43:57 +01:00
Shane Kilkelly
6ff3877dd1
Fix status and healthcheck tests
2020-06-19 15:50:51 +01:00
Shane Kilkelly
3c6ef38036
Fix alignment of function
2020-06-18 15:00:17 +01:00
Shane Kilkelly
973a18b1b8
Clean up new healthcheck test
2020-06-18 14:56:38 +01:00
Shane Kilkelly
badeea3e0b
Add test for status and health-check endpoints
2020-06-18 13:54:10 +01:00
Shane Kilkelly
ffcb382f0c
Update test to match new setup/teardown pattern
2019-08-02 13:34:43 +01:00
Shane Kilkelly
ac4f4082c8
Use 404 code when rejecting invalid project id
2019-08-02 13:31:27 +01:00
Shane Kilkelly
b0ab2e07c5
Reject requests when the project uri begins with '/project'
2019-08-02 13:31:27 +01:00
Shane Kilkelly
abf525f43a
Update test to match new setup/teardown pattern
2019-08-01 16:34:49 +01:00
Shane Kilkelly
3fac2cc825
Merge pull request #59 from das7pad/tests/cleanup-resources
...
[tests] cleanup resources
2019-08-01 16:26:51 +01:00
Shane Kilkelly
2492c95c0b
Handle a 409 response with code=projectHasDotGit
2019-05-29 10:18:49 +01:00
Jakob Ackermann
a333aabfa9
[WLGitBridgeIntegrationTest] adjust the urls for the individual tests
...
Signed-off-by: Jakob Ackermann <das7pad@outlook.com>
2019-04-26 23:56:54 +02:00
Jakob Ackermann
5040b4d7f0
[WLGitBridgeIntegrationTest] ensure that we stop the started servers
...
Signed-off-by: Jakob Ackermann <das7pad@outlook.com>
2019-04-26 23:56:47 +02:00
Shane Kilkelly
a517035e2c
Refuse to process project-ids that look like they come from v1
2019-03-06 10:16:55 +00:00
Shane Kilkelly
4dc140aced
Add integration test to cover imported-but-not-changed projects
2019-01-10 10:21:31 +00:00
Shane Kilkelly
c553094a60
Add a test for when migrated-from project is not present
2018-12-03 10:13:10 +00:00
Shane Kilkelly
1a646d3fd0
Add an integration test for migrating repository
2018-11-29 10:22:22 +00:00
Shane Kilkelly
245cd67a39
Fix tests
2018-11-27 16:24:50 +00:00
Michael Walker
b91390c025
Fix gc job leak in tests
2018-03-09 11:25:01 +00:00
Michael Walker
b5e7327410
Fix swap job leak in tests
2018-03-09 11:16:51 +00:00
Michael Walker
3f1eb2b0c3
Revert "Revert "Update dependencies to latest stable versions""
2018-02-27 11:51:02 +00:00
Michael Walker
e68271747b
Revert "Update dependencies to latest stable versions"
2018-02-27 11:46:28 +00:00
Michael Walker
9bb7576f0b
Replace com.ning/async-http-client with new package
...
Notice at:
https://github.com/ning/async-http-client
2018-02-09 16:00:58 +00:00
Michael Walker
4c237e84f5
Rename disabled project test
2018-02-07 13:27:31 +00:00
Michael Walker
25ccfe28fe
Rename protected project test
2018-02-07 13:27:19 +00:00