Masaya Suzuki
abedaf0d38
http: Allow specifying a custom error handler for UploadPack
...
By abstracting the error handler, this lets a user customize the error
handler for UploadPack. A customized error handler can show a custom
error message to the clients based on the exception thrown from the
hook, create a monitoring system for server errors, or do custom
logging.
Change-Id: Idd3b87d6bd471fef807c0cf1183e904b2886157e
Signed-off-by: Masaya Suzuki <masayasuzuki@google.com>
5 years ago
Matthias Sohn
b570b6907c
Prepare 5.5.2-SNAPSHOT builds
...
Change-Id: Ief9940182fd6e3f3e2df88e6485be753c1260e6b
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
5 years ago
Matthias Sohn
2796d86d1e
JGit v5.5.1.201910021850-r
...
Change-Id: I9930b35b095f638119b4601a8311257daf5e5420
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
5 years ago
Matthias Sohn
ca207cd3ae
Prepare 5.3.7-SNAPSHOT builds
...
Change-Id: I3465b6a4d913bfb2864abba58448423e7c262f60
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
5 years ago
Matthias Sohn
38258f3f72
JGit v5.3.6.201910020505-r
...
Change-Id: I12d1c6af03f2d7474c99c22cd2aabb77e95fcb32
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
5 years ago
Matthias Sohn
929dd414c1
Prepare 5.1.13-SNAPSHOT builds
...
Change-Id: Ic1dca14924f49ad07eb5cd0570ce7ece9f319d0d
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
5 years ago
Matthias Sohn
ebe1e15781
JGit v5.1.12.201910011832-r
...
Change-Id: I69fef9b2cdc18bbf1c8b9b290fb3d190684be13c
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
5 years ago
Matthias Sohn
7f262b8745
Prepare 5.5.1-SNAPSHOT builds
...
Change-Id: Iaf929168770dfef54ce2a7bfcbee9b87c450ca8a
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
5 years ago
Matthias Sohn
de2df8adde
JGit v5.5.0.201909110433-r
...
Change-Id: I5715730ac47d32462f235c2f50581bf1579d46b9
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
5 years ago
David Pursehouse
85cea8c583
Bazel: Add fixes for --incompatible_load_java_rules_from_bzl
...
Change-Id: I24746335db132bf20f400cb3db400737596d4542
Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
5 years ago
Matthias Sohn
fdd63b183c
Prepare 5.5.0-SNAPSHOT builds
...
Change-Id: I96bbefd698c74e450d05d21572d4769c6c5aaea6
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
5 years ago
Matthias Sohn
685f2f8ec4
JGit v5.5.0.201909041048-rc1
...
Change-Id: I77a8c73cfd0a27b1242eddf32da513ce0148260e
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
5 years ago
Matthias Sohn
32116da0cd
Prepare 5.4.4-SNAPSHOT builds
...
Change-Id: I64c03436c285bd8eb5e87abe560417402b60e695
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
5 years ago
Matthias Sohn
fb08804e91
JGit v5.4.3.201909031940-r
...
Change-Id: I48ff1d51122ff73e0561f1fcf52a532221810e5d
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
5 years ago
Matthias Sohn
927ae2f55b
Prepare 5.3.6-SNAPSHOT builds
...
Change-Id: I4d57f8ea0ab1f8fbd73fd75861f2f751c4aba0a6
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
5 years ago
Matthias Sohn
2a3c8a86aa
JGit v5.3.5.201909031855-r
...
Change-Id: I7f5dcebc2e5816c845fa63046c67bc2301926e2a
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
5 years ago
Matthias Sohn
c8e42ca3ba
Prepare 5.1.12-SNAPSHOT builds
...
Change-Id: I353ac3f23024063722abc7340bc9a6df3c615741
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
5 years ago
Matthias Sohn
002f1628c6
JGit v5.1.11.201909031202-r
...
Change-Id: I288acf670160b9bcd2d04f572a902b5838b4d4f8
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
5 years ago
Matthias Sohn
261881055d
Prepare 4.11.10-SNAPSHOT builds
...
Change-Id: Ic98bd87d96ce627d38e1ecc2c3cb28b517ab489e
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
5 years ago
Matthias Sohn
9a2deb2049
JGit v4.11.9.201909030838-r
...
Change-Id: Ie60468569074197d49e19cbd0ffaedfe88f3d74e
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
5 years ago
Matthias Sohn
5e24753ab0
Prepare 5.6.0-SNAPSHOT builds
...
Change-Id: I9eceb7b1272b27b979144041c75eb09ab4eeca6b
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
5 years ago
Matthias Sohn
d5a0d76ed0
Prepare 5.5.0-SNAPSHOT builds
...
Change-Id: Ib498303c8787a5fbee89377eaed332a5a6b4f3b0
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
5 years ago
Matthias Sohn
e0ea41b500
JGit v5.5.0.201908280940-m3
...
Change-Id: I0920767979d7927bc18f3e395963aeebae5ea540
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
5 years ago
Matthias Sohn
85a1d8bcf8
Prepare 5.4.3-SNAPSHOT builds
...
Change-Id: Iaf5140446dcf86a50bdb1a30860dfd624d3ec337
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
5 years ago
Matthias Sohn
2c0f02244c
JGit v5.4.2.201908231537-r
...
Change-Id: I1d808c63db81435173987c399c90bda7bc5c8d9d
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
5 years ago
Matthias Sohn
f30382b191
Prepare 5.3.5-SNAPSHOT builds
...
Change-Id: Ic0b9dfcac814ac7584e5eb19105f46344a10465a
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
5 years ago
Matthias Sohn
06309fdc43
JGit v5.3.4.201908231101-r
...
Change-Id: Ia98f47d9a10d6b8cccca6b697230dad4f350d720
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
5 years ago
Matthias Sohn
418722df34
Prepare 5.1.11-SNAPSHOT builds
...
Change-Id: I8608580424d0e523dcace63f83ae530ba78dbb15
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
5 years ago
Matthias Sohn
1c44bf8caf
JGit v5.1.10.201908230655-r
...
Change-Id: I68d15ebd6054bdeaf62e14cddb87724828db7943
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
5 years ago
Matthias Sohn
2eb83f4b4a
Prepare 5.4.2-SNAPSHOT builds
...
Change-Id: I5b2fde2d69ef1cc11b085874ab783ba48e070470
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
5 years ago
Matthias Sohn
0af59e1212
JGit v5.4.1.201908211225-r
...
Change-Id: Ifa99b930bd20a9bc10696c414c73ebde0cd4b0c8
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
5 years ago
Matthias Sohn
bbf3da1aac
Prepare 5.3.4-SNAPSHOT builds
...
Change-Id: I1ccfeb28e87d13b25a8892947e62f1151130b6a6
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
5 years ago
Matthias Sohn
e9fcf1932e
JGit v5.3.3.201908210735-r
...
Change-Id: I799859e47616af0ac5ee3a982cb9350d141681d7
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
5 years ago
Matthias Sohn
edc67125b7
Prepare 5.1.10-SNAPSHOT builds
...
Change-Id: If10afc8e663299a15db8c5fd0574fb51bf7e7ae9
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
5 years ago
Matthias Sohn
38adb548c3
JGit v5.1.9.201908210455-r
...
Change-Id: Iaade207292acb8b27e01aca7e1af97ad7db1e854
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
5 years ago
David Turner
59640fb4f0
Constants for objects and info/{http-,}alternates
...
These are useful to avoid typos, and also for tab completion.
Change-Id: I0f2d267e46b36bc40297c9657c447f3fd8b9f831
Signed-off-by: David Turner <dturner@twosigma.com>
5 years ago
Matthias Sohn
95e8264cc8
Use Instant instead of milliseconds for filesystem timestamp handling
...
This enables higher file timestamp resolution on filesystems like ext4,
Mac APFS (1ns) or NTFS (100ns) providing high timestamp resolution on
filesystem level.
Note:
- on some OSes Java 8,9 truncate milliseconds, see
https://bugs.openjdk.java.net/browse/JDK-8177809 , fixed in Java 10
- UnixFileAttributes truncates timestamp resolution to microseconds when
converting the internal representation to FileTime exposed in the API,
see https://bugs.openjdk.java.net/browse/JDK-8181493
- WindowsFileAttributes also provides only microsecond resolution
Change-Id: I25ffff31a3c6f725fc345d4ddc2f26da3b88f6f2
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
5 years ago
Michael Keppler
4b0c192f2d
Fix bundle localization of Apache SSH bundle
...
The placeholders in manifest and plugin.properties did not match. To
avoid similar issues, all placeholders have been changed to
Bundle-Vendor and Bundle-Name now.
Bug:548503
Change-Id: Ibd4b9bc237b323e614506b97e5fbc99416365040
Signed-off-by: Michael Keppler <Michael.Keppler@gmx.de>
6 years ago
David Pursehouse
f18b5010fc
Deprecate Constants.CHARACTER_ENCODING in favor of StandardCharsets.UTF_8
...
Change-Id: I621ba174235a6fb56236e54d24bce704bb5afb28
Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
6 years ago
Matthias Sohn
16fd3feefc
Prepare 5.5.0-SNAPSHOT builds
...
Change-Id: I177d637e552a79014816dc5d2ef5ccda506adb39
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
6 years ago
Matthias Sohn
f3b7c2beae
Prepare 5.4.1-SNAPSHOT builds
...
Change-Id: I8620d03c1cd5c1d0ad04e7607553e9aa18def9bb
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
6 years ago
Matthias Sohn
3dad0682be
JGit v5.4.0.201906121030-r
...
Change-Id: Ie68828af68d07cf8e3fe778d39436f539f1c73d0
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
6 years ago
Matthias Sohn
0e9361f066
JGit v5.4.0.201906120450-r
...
Change-Id: Iea17cba848d4e53d69d34e952a2476c375721aa4
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
6 years ago
Matthias Sohn
fcfe1299c3
Prepare 5.3.3-SNAPSHOT builds
...
Change-Id: Idebf272835cb22c21257c88b414ada802629b665
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
6 years ago
David Ostrovsky
8cd07cb815
Repository: Add getIdentifier() method to avoid instanceof operator
...
This change is needed to implement permission aware ref database in
Gerrit: [1], that is a pre-requisite to re-enable Git v2 protocol in
Gerrit: [2].
Background: Last year Git v2 protocol was enabled in Gerrit. The fact,
that JGit layer was not calling ref advertise filter for Git v2
protocol, introduced security vulnerability.
The lesson learned from this security incident: Gerrit should not rely
on ref advertise filter being called by JGit to implement crictical
security checks. Instead, the idea is to use the same approach as
currently used by Google's internal code on googlesource.com that
didn't suffer from this vulnerability: provide a custom repository to
JGit. The repository provides a RefDatabase that is permission-aware
and will only ever return refs that the user has access to.
However, due to hard coded instanceof operator usages in JGit code
base, some tests in Gerrit are failing with: [1] in place. This change
addresses this problem.
[1] https://gerrit-review.googlesource.com/c/gerrit/+/212874
[2] https://gerrit-review.googlesource.com/c/gerrit/+/226754
Change-Id: I67c0f53ca33b149442e7ee3e51910d19e3f348d5
Signed-off-by: David Ostrovsky <david@ostrovsky.org>
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
6 years ago
Matthias Sohn
d6c7c42a1b
JGit v5.3.2.201906051522-r
...
Change-Id: I41b4926f4bfa896ef2a13c35e93e08071ae949a3
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
6 years ago
Matthias Sohn
57ccca75e6
Prepare 5.1.9-SNAPSHOT builds
...
Change-Id: I60571e4e0bea04bb2c25ef3d0332a9ab6895db06
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
6 years ago
Matthias Sohn
2fe587fcfd
JGit v5.1.8.201906050907-r
...
Change-Id: Iae0ffe161df2ca8a800d21688d6b7d7419dfb640
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
6 years ago
Matthias Sohn
0988276746
Prepare 5.4.0-SNAPSHOT builds
...
Change-Id: I9df6fccee253d4087f9afab4cb46e0a40b8a5699
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
6 years ago
Matthias Sohn
72998dd5ee
JGit v5.4.0.201905221418-m3
...
Change-Id: I8a7e687acfcf8c341abd726ae60b5ee173422215
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
6 years ago