Commit Graph

184 Commits

Author SHA1 Message Date
Sebastian Sdorra
f74a89c9d8 do not allow "." as part of repository ids 2018-11-30 11:04:33 +01:00
Sebastian Sdorra
53be8b112b avoid path traversal attack 2018-11-30 08:11:26 +01:00
Sebastian Sdorra
e9401624a7 re implement XmlRepositoryDAO 2018-11-28 19:49:55 +01:00
René Pfeuffer
d4db39755f Harmonize repository resolution 2018-11-27 15:31:57 +01:00
René Pfeuffer
282b5687a6 Query initial repository location only once at creation 2018-11-23 16:34:38 +01:00
René Pfeuffer
1e655e9c97 Fix creation of root repository folder
The root folder has to be created with FileSystem, not only the data
directory
2018-11-23 13:58:39 +01:00
René Pfeuffer
27b5be5391 Remove test for deleted class 2018-11-23 10:43:23 +01:00
René Pfeuffer
20f5e7be1f Cleanup usage of InitialRepositoryLocationResolver and RepositoryLocationResolver 2018-11-22 17:06:29 +01:00
René Pfeuffer
00e3cbec57 Refactor directories in RepositoryPath and dao 2018-11-22 12:29:26 +01:00
Mohamed Karray
39e5c19251 merge 2018-11-15 11:28:33 +01:00
Mohamed Karray
f8ae7cedf7 Refactor the repository store implementation in order to store repositories in specific paths. 2018-11-15 10:04:16 +01:00
René Pfeuffer
6eb3c38655 Create error response for already existing entities 2018-10-25 15:31:42 +02:00
René Pfeuffer
46846673ae Merge with 2.0.0-m3 2018-10-17 13:58:53 +02:00
Mohamed Karray
d2dbccb80c remove throws NotFoundException and fix modify password 2018-10-16 10:47:52 +02:00
René Pfeuffer
83640b9d44 Merge with 2.0.0-m3 2018-10-10 08:54:23 +02:00
Sebastian Sdorra
e5a3cbb50e change browse api in order to build a tree base file structure 2018-10-08 14:38:27 +02:00
Mohamed Karray
c1c1c5b984 merge 2018-10-02 13:20:55 +02:00
Sebastian Sdorra
fe93d8baa6 added unit tests for JsonEnricher 2018-10-02 08:04:39 +02:00
Mohamed Karray
b33b72aa80 remove the rest/ path from endpoints 2018-10-01 17:22:03 +02:00
René Pfeuffer
cd344664aa Test permission filter 2018-09-14 11:30:05 +02:00
René Pfeuffer
e88639ab81 Implement permission filters as decorator for servlets 2018-09-14 10:21:00 +02:00
René Pfeuffer
145502a7b8 Introduce extension point for further protocol implementations 2018-09-13 10:35:10 +02:00
René Pfeuffer
f47c5ef16f Replace MockProvider test helper with guice class 2018-09-12 12:05:24 +02:00
René Pfeuffer
ef28350ce3 Handle missing request scope for url computation 2018-09-12 11:43:29 +02:00
René Pfeuffer
5b35fb2372 Fallback to configured base url if UriInfoStore not set 2018-09-11 16:03:32 +02:00
René Pfeuffer
bf9de8ea8e Reduce dependency to RepositoryProvider in provider servlets 2018-09-11 07:40:24 +02:00
René Pfeuffer
a490a20ac9 Inject uri info for http protocol url computation 2018-09-10 14:48:22 +02:00
René Pfeuffer
ce518ad784 Inject repository from service provider 2018-09-10 14:00:13 +02:00
René Pfeuffer
50a4133dff Remove old type dependant repo uri functions 2018-09-10 10:08:51 +02:00
René Pfeuffer
4eb75bc621 Initialize servlet and fix paths 2018-09-06 15:33:24 +02:00
René Pfeuffer
c4b34752b4 Fix integration tests by delegating to existing servlets 2018-09-04 20:29:17 +02:00
René Pfeuffer
3f772b3688 Use links from protocols instead of resource links
Add links only for requests with according permissions
2018-09-04 12:40:41 +02:00
René Pfeuffer
b55955f273 Add basic concept for scm protocol 2018-09-03 15:52:59 +02:00
Sebastian Sdorra
c1123810fc merge with feature/ui-extensions branch 2018-08-30 12:15:17 +02:00
Sebastian Sdorra
b09c46abcf remove old ui 2018-08-27 15:45:56 +02:00
René Pfeuffer
a0f74e3329 Replace model object exception with generic ones and migrate guice 2018-08-21 07:53:33 +02:00
René Pfeuffer
67278582e3 Update to Mockito v2 2018-08-08 09:20:08 +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
90aff6b31f merge branch heads of 2.0.0-m3 2018-07-16 15:21:29 +02:00
Sebastian Sdorra
187384088b remove no longer required sonia.scm.url package 2018-07-16 14:17:05 +02:00
Sebastian Sdorra
0a1ed6c6da ignore false positive squid:S2083 2018-07-16 13:21:55 +02:00
Sebastian Sdorra
01cbbe89da check repository path of hg hooks is in the hg directory, instead of path length check 2018-07-16 12:03:13 +02:00
Sebastian Sdorra
e371f32bf5 added javadoc and unit test 2018-07-13 11:43:41 +02:00
René Pfeuffer
a1c1bc1042 Merging base branch back into feature 2018-07-11 14:01:17 +02:00
René Pfeuffer
dc8ecd5689 Adjust to repository storage with id 2018-07-10 15:31:18 +02:00
René Pfeuffer
bbce9b7ca2 Use correct namespace of created repository 2018-07-05 12:19:31 +02:00
Philipp Czora
0402596cf1 Added namespace to Repository 2018-06-29 17:09:40 +02:00
Johannes Schnatterer
85f69fb67b More polishing during review 2018-06-25 18:32:00 +02:00
René Pfeuffer
9ec3833a97 Add overall count to collection results 2018-06-22 10:15:35 +02:00
Philipp Czora
b93b291293 Implemented unit tests for Manager and added param checks 2018-06-15 14:36:22 +02:00