11837 Commits

Author SHA1 Message Date
CES Marvin
396789efa4 Release version 2.14.1 2.14.1 2021-03-03 14:21:12 +00:00
Eduard Heimbuch
bd79f94f55 Adjust changelog for release 2.14.1 2021-03-03 15:14:40 +01:00
Sebastian Sdorra
0072808c7d Upgrade react-markdown to prevent xss from stored markdown (#1567)
Prevent XSS attacks from stored markdown, by updating react-markdown to v5 which sanitizes html.
2021-03-03 15:06:34 +01:00
Sebastian Sdorra
4ec01ff4d1 Fix endless loading spinner for sources of empty repositories (#1565) 2021-03-03 11:00:26 +01:00
Florian Scholdei
8e2c2aaa5e Prevent breadcrumb overflow and shrink large elements (#1563)
- Restore left margin on copy permalink
- Move slash to the right to make it resemble the console
- Shrink large elements
- Add new storyshot
- Fix separation of toggle icon and file title
2021-03-03 10:57:15 +01:00
Florian Scholdei
61814a5027 Clarify that FileUpload component does not upload directly (#1566)
Clarify that FileUpload component does not upload directly:
Changed label from “Upload” to “Select File” and icon from direct to a kind of upload.
2021-03-03 10:01:29 +01:00
Konstantin Schaper
311528fd45 Add permalink button to markdown headings (#1564)
* add permalink button to markdown headings
2021-03-03 09:52:18 +01:00
Eduard Heimbuch
96658046ff Merge branch 'develop' of github.com:scm-manager/scm-manager into develop 2021-03-02 14:00:13 +01:00
Eduard Heimbuch
2a425af205 Fix redirect after logout 2021-03-02 13:59:07 +01:00
René Pfeuffer
e295be20bf Suppress sonar cipher warning 2021-03-02 08:11:08 +01:00
Eduard Heimbuch
bac8ee246c Add publish config to ui-api package 2021-03-01 14:21:03 +01:00
CES Marvin
fe73d46e08 Prepare for next development iteration 2021-03-01 13:01:50 +00:00
CES Marvin
caf29c555b Merge branch 'master' into develop 2021-03-01 13:01:29 +00:00
CES Marvin
a25fd7acbb Release version 2.14.0 2.14.0 2021-03-01 12:32:32 +00:00
Eduard Heimbuch
89d5819117 Adjust changelog for release 2.14.0 2021-03-01 13:22:33 +01:00
René Pfeuffer
1f78e2fbd7 Suppress irrelevant warning 2021-03-01 09:22:56 +01:00
Eduard Heimbuch
7852d1034e Fix build warnings (#1562)
Co-authored-by: René Pfeuffer <rene.pfeuffer@cloudogu.com>
2021-03-01 09:08:01 +01:00
René Pfeuffer
0695ca3bac Add import protocol (#1558)
Adds a protocol for repository imports (either from an URL, a dump file or a SCM-Manager repository archive).
This protocol documents single steps of an import, the time and the user and is accessible via a dedicated REST
endpoint or a simple ui.

The id of the log is added to the repository imported event, so that plugins like the landingpage or mail can link to these logs.
2021-02-26 13:52:29 +01:00
Eduard Heimbuch
d19f61735b Merge branch 'feature/import_protocol' of github.com:scm-manager/scm-manager into feature/import_protocol 2021-02-26 12:33:00 +01:00
René Pfeuffer
4ceb9c1b8c Wrap event 2021-02-26 12:30:08 +01:00
Eduard Heimbuch
3edcb8c095 Merge branch 'feature/import_protocol' of github.com:scm-manager/scm-manager into feature/import_protocol 2021-02-26 12:04:41 +01:00
René Pfeuffer
5b9a445cb3 Send import event on full import 2021-02-26 12:04:29 +01:00
Eduard Heimbuch
ebc721f128 Merge branch 'develop' into feature/import_protocol 2021-02-26 11:24:22 +01:00
René Pfeuffer
3d97e79524 Replace printStackTrace with correct logging 2021-02-26 11:23:38 +01:00
René Pfeuffer
1d674055c8 Write success only once 2021-02-26 11:08:03 +01:00
René Pfeuffer
d4c5436c4c Fix unit tests after rebase 2021-02-26 11:08:03 +01:00
René Pfeuffer
e2cd0a8eeb Check log permission before returning stream 2021-02-26 11:08:03 +01:00
René Pfeuffer
97c2165a52 User blob store instead of data store 2021-02-26 11:08:00 +01:00
René Pfeuffer
89e573ad72 Log change 2021-02-26 11:04:50 +01:00
René Pfeuffer
c3a5dd4ffb Add page for import logs 2021-02-26 11:04:50 +01:00
René Pfeuffer
75ed038084 Use repository id as id for import log 2021-02-26 11:04:48 +01:00
René Pfeuffer
d42560aba3 Add log id to imported event 2021-02-26 10:48:06 +01:00
René Pfeuffer
8f5fcf6911 Guard import log 2021-02-26 10:42:35 +01:00
René Pfeuffer
8170d981cd Add unit test for log output 2021-02-26 10:42:35 +01:00
René Pfeuffer
b7fa1d77b2 Fix unit test for import resource 2021-02-26 10:42:35 +01:00
René Pfeuffer
51ed267ada Write import protocol at the end 2021-02-26 10:42:34 +01:00
René Pfeuffer
1b3320dfe9 Add permission check 2021-02-26 10:42:34 +01:00
René Pfeuffer
1d74df6596 Set repository type in log 2021-02-26 10:42:34 +01:00
René Pfeuffer
074f119a0d Add rest endpoint for import log 2021-02-26 10:42:34 +01:00
René Pfeuffer
33cddda172 Add logging for url and dump import 2021-02-26 10:42:34 +01:00
René Pfeuffer
468b37f725 Move import logic to dedicated classes 2021-02-26 10:42:34 +01:00
René Pfeuffer
bfb6a39631 Simple approach for import logs 2021-02-26 10:42:32 +01:00
Eduard Heimbuch
ac404b3cdd Migrate unit tests to junit 5 to fix local flappy behaviour 2021-02-26 10:37:29 +01:00
Sebastian Sdorra
888f5d699b Fire RepositoryImportHookEvent instead of PostReceiveRepositoryHookEvent (#1561)
We will fire an RepositoryImportHookEvent instead of PostReceiveRepositoryHookEvent for repository imports with metadata. The event is only fired if all parts of the repository could be successfully imported. The extra event is required to avoid heavy recalculations which can be triggered by the PostReceiveRepositoryHookEvent for example the scm-statistic-plugin uses the PostReceiveRepositoryHookEvent to calculate its statistics.

Co-authored-by: Eduard Heimbuch <eduard.heimbuch@cloudogu.com>
2021-02-26 09:49:34 +01:00
René Pfeuffer
c8621061bf Overwrite files on import 2021-02-25 17:29:14 +01:00
René Pfeuffer
ff4d9224f9 Decrypt import only if password is given 2021-02-25 17:29:02 +01:00
Eduard Heimbuch
1ffeeb035d Improve translations for repository export permissions 2021-02-25 14:22:52 +01:00
Eduard Heimbuch
972cfd312b Small improvements on export information 2021-02-25 14:17:08 +01:00
Eduard Heimbuch
db2ce98721 Feature/import export encryption (#1533)
Add option to encrypt repository exports with a password and add possibility to decrypt them on repository import. Also make the repository export asynchronous. This implies that the repository export will be created on the server and can be downloaded multiple times. The repository export will be deleted automatically 10 days after creation.
2021-02-25 13:01:03 +01:00
Sebastian Sdorra
367d7294b8 Enable refetch on focus (#1559)
During the integration of react-query we had to disable the refetch on focus option, because it has cleared our input fields on refocusing the browser tab. This problem comes mostly from a wrong use of routes. Often routes were used with the component prop and a anonymous function e.g.:

```jsx
<Route path="/my/route" component={() => <AwesomeComponent />} />
```

This triggers not only rerendering but remounting of the route component every time the parent is rerendered. With the ongoing work on the migration from redux to react-query, we have removed the usage of routes with component functions. So we can now safely enable the option refetch on mount of react-query.
2021-02-25 08:30:23 +01:00