Sebastian Sdorra
8fa1308169
implemented avatar and information extension point for svn, hg and git
2018-08-24 11:03:35 +02:00
René Pfeuffer
ca563dd874
Fix default revision for hg and fix encoded slashes in URLs
2018-08-23 15:52:02 +02:00
René Pfeuffer
a0f74e3329
Replace model object exception with generic ones and migrate guice
2018-08-21 07:53:33 +02:00
Philipp Czora
a2c7fb22dd
Merged heads
2018-08-16 10:47:47 +02:00
René Pfeuffer
9babeecea6
Create and handle RevisionNotFoundException
2018-08-16 10:24:47 +02:00
René Pfeuffer
5d6fcffe5e
Clean up hg cat command
2018-08-15 09:59:35 +02:00
René Pfeuffer
c8c1cad67f
Add raw stream result to cat command
2018-08-14 17:22:30 +02:00
Philipp Czora
0199b2ccfb
Merged branch feature/branches_v2_endpoint
2018-08-09 11:53:45 +02:00
René Pfeuffer
a5ddea31c7
Merge with 2.0.0-m3
2018-08-08 15:57:05 +02:00
Philipp Czora
390ba29bee
Renamed tests
2018-08-08 15:14:39 +02:00
René Pfeuffer
67278582e3
Update to Mockito v2
2018-08-08 09:20:08 +02:00
Johannes Schnatterer
499be7314e
Merged 2.0.0-m3 into feature/repository_config_v2_endpoint
2018-08-07 17:37:25 +02:00
Johannes Schnatterer
15da105683
Commits missing changes for HgConfigPackagesToDtoMapper
2018-08-07 17:23:52 +02:00
Johannes Schnatterer
45822c44cb
Deliver HgConfigPackages no longer as embedded.
...
They don't have an own identity in terms of REST and its much simpler
to return a simple list instead of an _embedded list.
Also gets rid of one HgConfigPackageToDtoMapper.
2018-08-07 16:47:03 +02:00
Sebastian Sdorra
15255aeeb1
merge with branch feature/repositories-ui
2018-08-07 16:34:26 +02:00
Johannes Schnatterer
adde70f090
Fixes NPE in HgConfigPackageResource for non-existing packages.
2018-08-07 10:44:18 +02:00
Johannes Schnatterer
869821f6db
Fixes some SQ Issues regarding DTO add(Links) methods.
2018-08-06 17:47:46 +02:00
Johannes Schnatterer
730c2ae358
Adds test for HgConfigAutoConfigurationResource, its DTO and mappers.
2018-08-06 17:39:05 +02:00
Johannes Schnatterer
45e48e1834
Adds test for HgConfigInstallationsResource, its DTO and mappers.
2018-08-06 17:00:50 +02:00
Johannes Schnatterer
7d59975c80
Adds test for HgConfigPackageResource, its DTO and mappers.
2018-08-06 16:21:46 +02:00
Johannes Schnatterer
b65a8c6b8d
Implements Hg Config Sub Resources
2018-08-02 18:36:28 +02:00
Johannes Schnatterer
8c8d908378
Config Resource DTO Mappers: Make use of BaseMapper.
...
More DRY.
2018-08-02 15:03:30 +02:00
Johannes Schnatterer
62087521be
Config Resources: Makes permission names publicly available
2018-08-02 14:16:26 +02:00
Johannes Schnatterer
988dfbd689
Config Resources: Makes REST API docs for 403 more precise
2018-08-02 13:21:07 +02:00
Johannes Schnatterer
982d502203
Config Resources: Gets rid of unnecessary UriInfo param
2018-08-02 13:18:21 +02:00
Johannes Schnatterer
8b16a0251a
VndMedia Type classes: Adds private constructor
2018-08-02 13:02:43 +02:00
Sebastian Sdorra
99ecc8cba2
implemented rest endpoint for repository types
2018-08-02 11:56:35 +02:00
Johannes Schnatterer
f20865c658
HgPlugin Config: Minor corrections
2018-08-02 11:56:06 +02:00
Johannes Schnatterer
31540a7ecc
Makes REST API doc for config endpoints more precise
2018-08-02 11:52:30 +02:00
Johannes Schnatterer
eee325e185
HgPlugin Config: Adds v2 endpoint
2018-08-02 10:59:34 +02:00
Johannes Schnatterer
7572580ac1
Create fine-grained configuration permissions.
...
No more hard-coded isAdmin() checks.
2018-07-30 17:41:00 +02:00
Sebastian Sdorra
8a2346271a
do not expose exception to the client
2018-07-16 13:51:37 +02:00
René Pfeuffer
53f3264f6e
Correct repository name for hg
2018-07-11 12:53:48 +02:00
René Pfeuffer
dc8ecd5689
Adjust to repository storage with id
2018-07-10 15:31:18 +02:00
René Pfeuffer
43ca72255e
Remove redundant checks
2018-07-09 10:47:28 +02:00
Philipp Czora
5d5d3c9170
Implemented persisting repositories according to namespace changes
...
Repository directories are now named after the repo's id instead of it's
name
2018-07-06 11:57:43 +02:00
Philipp Czora
ffabda3f83
Set namespace while creating a repository
2018-06-29 17:10:14 +02:00
René Pfeuffer
83d6ab8e9c
Backed out changeset 5d23ff274a2f
2018-06-25 11:52:36 +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
Matt Harbison
a051eb159c
#989 load global configuration in hgweb on Mercurial 4.1 and later
2018-06-22 16:06:35 -04:00
René Pfeuffer
7f19b5baff
Fix typo
2018-06-20 11:11:14 +02:00
Gábor Stefanik
bfc70d418d
oops... don't interpret "close=junk" as "close=1"
2017-09-18 12:34:50 +00:00
Gábor Stefanik
3262524832
prevent binary data in {extras} from interfering with UTF-8 decoding
2017-09-18 12:30:20 +00:00
broDom
46f5002f29
refactor: replace removed Guava API calls
2017-07-05 21:23:28 +02:00
broDom
c91b3a39cd
build: remove duplicated dependencies
2017-07-03 17:15:21 +02:00
broDom
94fba3df13
build: remove redundant groupIds as they are defined in the parent pom
2017-07-03 17:13:15 +02:00
broDom
0cff0e7e7a
refactor: remove explicit type arguments
2017-07-03 17:12:41 +02:00
broDom
397904adde
refactor: replace anonymous types with lambdas
2017-07-03 17:07:07 +02:00
broDom
e9d5b3a363
refactor: collapse identical catch blocks
2017-07-03 16:59:19 +02:00