Commit Graph

7735 Commits

Author SHA1 Message Date
Philipp Czora
6bffee5624 Implemented PUT for Groups 2018-06-27 11:27:12 +02:00
René Pfeuffer
10e951c4b1 Document return codes 2018-06-27 11:23:08 +02:00
René Pfeuffer
e41c0323f3 Merge 2018-06-27 09:48:40 +02:00
René Pfeuffer
fc576d5f2d Handle update 'not found' error 2018-06-27 09:41:22 +02:00
René Pfeuffer
07e3361bcb Add exception mappers for create conflicts 2018-06-27 09:19:41 +02:00
Philipp Czora
063772c1d5 Merged changes 2018-06-26 17:27:09 +02:00
Philipp Czora
7b64d0aa58 Do not try to map HAL attributes 2018-06-26 17:26:40 +02:00
Philipp Czora
df5012db56 Added properties field to UserDto and GroupDto
Previously, properties weren't mapped by mapstruct
2018-06-26 17:24:56 +02:00
René Pfeuffer
2b9f5de9e0 Fix total page count 2018-06-26 12:19:41 +02:00
René Pfeuffer
d55fa508b9 Name and document things 2018-06-26 11:47:38 +02:00
René Pfeuffer
e3af714a76 Rename closures 2018-06-26 11:31:12 +02:00
René Pfeuffer
4f52825875 Remove unused parameter 2018-06-26 08:55:52 +02:00
René Pfeuffer
651a8783c5 Reduce visibility 2018-06-26 08:54:46 +02:00
René Pfeuffer
00c3c5ca66 Use adapter for collection resources 2018-06-26 08:45:37 +02:00
René Pfeuffer
0fb6541113 Introduce adapter for resource classes and managers 2018-06-26 08:16:37 +02:00
Johannes Schnatterer
85f69fb67b More polishing during review 2018-06-25 18:32:00 +02:00
Johannes Schnatterer
b299606f88 Polishing during review.
Extends REST API docs, straightens naming, cleans up dependencies,
clears warnings, does a bit of formatting, etc.
2018-06-25 17:56:03 +02:00
Johannes Schnatterer
e0cb5cc924 Adds tests for JsonEnricherContext 2018-06-25 16:56:45 +02:00
Johannes Schnatterer
959d56904e Merge 2018-06-25 16:14:27 +02:00
René Pfeuffer
a083d3d596 Use Java 8 style annotations 2018-06-25 15:31:42 +02:00
René Pfeuffer
20db836e6c Use dedicated instead of generic Method for members 2018-06-25 15:21:38 +02:00
Philipp Czora
6476fe18cd Merged changes 2018-06-25 15:18:27 +02:00
Philipp Czora
716d7ab7fc Use field injection, but suppress SQ Bugs.
We need this b/c of MapStruct
2018-06-25 15:17:53 +02:00
René Pfeuffer
8a9b17a550 Fix overridden method annotations 2018-06-25 15:01:57 +02:00
René Pfeuffer
0c8ec1577a Remove unused fields 2018-06-25 14:54:20 +02:00
Johannes Schnatterer
4cb53930f6 Merge 2018-06-25 14:43:09 +02:00
Philipp Czora
3d450ece64 Merged changes 2018-06-25 14:30:07 +02:00
René Pfeuffer
3edd5877b8 Add unit tests for user deletion 2018-06-25 14:28:41 +02:00
René Pfeuffer
15acd69562 Add unit tests for user update 2018-06-25 14:16:20 +02:00
Philipp Czora
a85961ee57 Use constructor injection 2018-06-25 14:10:36 +02:00
Johannes Schnatterer
83c3372a0a Updates jacoco-maven-plugin.
Hoping for more accurate code coverage calculations.
2018-06-25 14:06:05 +02:00
René Pfeuffer
e156ef1964 Add unit tests for group resource 2018-06-25 14:05:25 +02:00
René Pfeuffer
0985f76a8a Add simple unit test 2018-06-25 13:28:55 +02:00
René Pfeuffer
0c88a03f27 Fix not found 2018-06-25 13:27:24 +02:00
René Pfeuffer
dda832775e Heed IntelliJ warning 2018-06-25 12:51:38 +02:00
René Pfeuffer
627eb8bd90 Add null check 2018-06-25 12:49:17 +02:00
René Pfeuffer
9d03a52ea0 Fix documentation and permission check 2018-06-25 12:45:16 +02:00
René Pfeuffer
83d6ab8e9c Backed out changeset 5d23ff274a2f 2018-06-25 11:52:36 +02:00
René Pfeuffer
9d250920f2 Format comment as a comment 2018-06-25 11:06:18 +02:00
René Pfeuffer
2ca7d708e6 Use JitPack as a workaround for edison hal bug 2018-06-25 10:49:21 +02:00
René Pfeuffer
fab44afcad Activate tests 2018-06-25 10:02:29 +02:00
René Pfeuffer
2d32b24e48 Extract base class for collection mappers 2018-06-25 09:57:59 +02:00
René Pfeuffer
f9a094e1b9 Use field variables 2018-06-25 09:40:18 +02:00
René Pfeuffer
51b2407ac4 Fix unit test 2018-06-25 09:37:25 +02:00
René Pfeuffer
c847f3d437 Format code 2018-06-25 09:31:07 +02:00
René Pfeuffer
b0f460c6b4 Merge 2018-06-25 09:25:31 +02:00
René Pfeuffer
c340fadba7 Advance to edison hal 2.0.0 2018-06-25 09:25:12 +02:00
Philipp Czora
20d6dd9b60 merge 2018-06-25 09:19:49 +02:00
Matt Harbison
405dd67275 ensure each message line printed in the Mercurial hook gets a trailing newline
I noticed that the exception printed in the previous commit started on the same
line as the print for the `str(e)` case right before it.  Since this also prints
the content of urllib2.URLError.read(), it seems better to remove any existing
newline and re-add it, than to just assume the `str(e)` case was the only
problem.
2018-06-22 16:42:05 -04:00
Matt Harbison
2d103b7f95 optionally print tracebacks when the Mercurial hook swallows an exception
If `ui.traceback=True` is set on the server, this prints the stacktrace for the
exception on the client side.  Otherwise, nothing happens.  I tried allowing the
exception to propagate back to Mercurial, but then the client sees this message
with 4.4.2 and 4.6.1:

    abort: remote error:
    Mercurial/Python process ends with return code 1

Something odd changed when upgrading from CentOS 7.4 to 7.5 around forwarding
requests from the loopback address that I don't fully understand.  First, we
were getting a ValueError from inside `opener.open()` saying that 'localhost'
didn't match the host listed in the SSL certificate.  That wasn't visible until
adding this.

Then what happened is a connection refused out of the same function, so the
traceback is added to the other handler too.  Running the equivalent command on
the command line from the 'vcs' host stopped working in 7.5:

  $ curl https://vcs.domain.com/hook/hg/?ping=true
  curl: (7) Failed connect to vcs.domain.com:443; Connection refused

But it works when run on another machine targeting that same 'vcs' host.  Adding
another firewall rule allows everything to work from the 'vcs' host again:

  $ iptables -t nat -I OUTPUT -p tcp -o lo --dport 443 -j REDIRECT --to-ports 8443
2018-06-22 16:33:52 -04:00