174 Commits

Author SHA1 Message Date
Andrei Isvoran
3ab607ccbf RED-8776 - Add local redaction when we do a manual change on a non-manual redaction 2024-04-02 08:38:08 +02:00
Ali Oezyetimoglu
3fde378ade RED-8480: integrated legal basis endpoint in recategorize endpoint 2024-03-14 09:58:21 +01:00
Maverick Studer
f5f33978ed Merge branch 'RED-7700' into 'master'
RED-7700: Safe rule execution

Closes RED-7700

See merge request redactmanager/persistence-service!378
2024-03-08 15:06:14 +01:00
Maverick Studer
d845b4cef2 RED-7700: Safe rule execution 2024-03-08 15:06:14 +01:00
Kilian Schüttler
c2110cd965 RED-7384: migration fixes forward port 2024-03-08 14:22:54 +01:00
Kilian Schuettler
4aa5b0ee34 reformat 2024-02-28 14:57:21 +01:00
Kilian Schuettler
b196544131 RED-8615: Revert and change the current behaviour of manualChanges 2024-02-28 09:32:45 +01:00
Corina Olariu
e8a942d764 RED-7886 - Endpoint for rule validation
- renamed from runDry to dryRun

Signed-off-by: Corina Olariu <corina.olariu.ext@knecon.com>
2024-02-22 11:31:00 +02:00
Corina Olariu
80c7c867ae RED-7886 - Endpoint for rule validation
- renamed from dryRunParameter to dryRun

Signed-off-by: Corina Olariu <corina.olariu.ext@knecon.com>
2024-02-22 11:19:30 +02:00
Corina Olariu
4091f21076 RED-7886 - Endpoint for rule validation
- add dry-run parameter, based on this save the rules or not and include warnings in the responses.
- added junit tests

Signed-off-by: Corina Olariu <corina.olariu.ext@knecon.com>
2024-02-21 15:40:10 +02:00
Corina Olariu
5d4badce06 RED-7886 - Endpoint for rule validation
- Include the warning messages for deprecated imports rules in response

Signed-off-by: Corina Olariu <corina.olariu.ext@knecon.com>
2024-02-20 12:49:16 +02:00
Corina Olariu
318d15f758 RED-5716 - Deprecate old prepare endpoints
- deprecate the old endpoint, update test unit with new endpoint

Signed-off-by: Corina Olariu <corina.olariu.ext@knecon.com>
2024-02-19 15:39:36 +02:00
Ali Oezyetimoglu
d2b6971f04 RED-8480: added legalBasis to recategorize endpoint and migrated it to the DB 2024-02-15 15:41:55 +01:00
Andrei Isvoran
cbef7c87b5 RED-7086 - Add ResponseStatus to hard delete files endpoint and adjust description 2024-02-15 08:23:36 +01:00
Andrei Isvoran
39000eed5a RED-7086 - Enable async file deletion and fix response code 2024-02-14 08:52:02 +01:00
Kilian Schuettler
768384a84c RED-8385: delete viewer doc, when rotating origin file, such that it is recreated with the rotation 2024-02-12 16:19:15 +01:00
Corina Olariu
99944c9fef Merge branch 'RED-8361-update' into 'master'
RED-8361 - Returned error status codes should be checked

Closes RED-8361

See merge request redactmanager/persistence-service!344
2024-02-09 18:27:01 +01:00
Andrei Isvoran
34c7e51ae8 RED-7086 - Deprecate hard-delete files and add new endpoint with POST request 2024-02-09 15:32:31 +01:00
Corina Olariu
3e67dd8055 RED-8361 - Returned error status codes should be checked
- add authorities to the endpoints that don't have them

Signed-off-by: Corina Olariu <corina.olariu.ext@knecon.com>
2024-02-09 12:13:51 +02:00
Corina Olariu
a7c4bf866c RED-8361 - Returned error status codes should be checked
- add some view/access permissions for some endpoints
- modify messages so in case dossier is not found to not include the id

Signed-off-by: Corina Olariu <corina.olariu.ext@knecon.com>
2024-02-08 18:21:36 +02:00
Corina Olariu
17d9b13042 RED-8361 - Returned error status codes should be checked
- rework for DictionaryController and VersionsController to return empty result in case user has no view permissions

Signed-off-by: Corina Olariu <corina.olariu.ext@knecon.com>
2024-02-02 17:24:13 +02:00
Corina Olariu
c843484ff0 RED-8219 - Wrong notification type for approvers
- set the correct notification type depending on the approved status of the file

Signed-off-by: Corina Olariu <corina.olariu.ext@knecon.com>
2024-02-01 20:21:08 +02:00
Corina Olariu
c00ac6ebe1 RED-7143 - Error 500 generated when entering very long text in editable fields of a file
- validate the value length

Signed-off-by: Corina Olariu <corina.olariu.ext@knecon.com>
2024-02-01 15:17:34 +02:00
Dominique Eifländer
a710c5b549 RED-8415: Reject file attribute configs with lable > 255 chars 2024-02-01 12:56:38 +01:00
Corina Olariu
80e783d46b RED-8361 - Returned error status codes should be checked
- renamed and rework the access permission validations

Signed-off-by: Corina Olariu <corina.olariu.ext@knecon.com>
2024-02-01 12:36:57 +02:00
Corina Olariu
95978b85af RED-8361 - Returned error status codes should be checked
- adding validation to endpoints considering the dossier resources
- if changes are done to dossier, access permissions are checked
- in case information is requested regarding dossier, the view permissions are checked

Signed-off-by: Corina Olariu <corina.olariu.ext@knecon.com>
2024-01-30 15:00:38 +02:00
Timo Bejan
dab280cef5 Resolve RED-8085 2024-01-29 10:32:13 +01:00
Maverick Studer
cfb81e9326 RED-7176: Soft-/Hard-/Restore Dossier without Dossier Owner not possible 2024-01-25 15:50:47 +01:00
Kilian Schüttler
d9497ef45d RED-8371: after initial file upload flag calculation does not work 2024-01-25 09:29:58 +01:00
Ali Oezyetimoglu
6690fba43d Merge branch 'RED-7252' into 'master'
RED-7252: Not possible anymore to ocr deleted or approved file

Closes RED-7252

See merge request redactmanager/persistence-service!319
2024-01-23 17:25:26 +01:00
Ali Oezyetimoglu
9162bb7edc RED-7252: Not possible anymore to ocr deleted or approved file 2024-01-23 16:45:41 +01:00
Maverick Studer
835e3568f6 RED-7376: Flag in deployment to indicate supported file formats 2024-01-23 12:56:34 +01:00
maverickstuder
56dcd421a9 RED-5369: View dossier & access permissions are not working for dossier attributes controller
* now when no permissions are given to view dossiers the endpoint to get dossier attributes returns an empty list instead of a 403 access denied
2024-01-22 12:34:02 +01:00
maverickstuder
9a3898a377 RED-5369: View dossier & access permissions are not working for dossier attributes controller
* now when no permissions are given to view dossiers the endpoint to get dossier attributes returns an empty list instead of a 403 access denied
2024-01-22 11:23:07 +01:00
Kilian Schüttler
caecbb483a RED-8168: Calculation of analysis flags should be async 2024-01-18 16:12:36 +01:00
Maverick Studer
15ddc1afeb Merge branch 'RED-5368' into 'master'
RED-5368: View dossier permissions are not working for dossier status controller

Closes RED-5368

See merge request redactmanager/persistence-service!313
2024-01-18 14:13:18 +01:00
Maverick Studer
2505cb70d2 RED-5368: View dossier permissions are not working for dossier status controller 2024-01-18 14:13:18 +01:00
maverickstuder
804a078403 RED-5369: View dossier & access permissions are not working for dossier attributes controller
* added hasPermission checks on all dossier specific endpoints in the DossierAttributesController
2024-01-18 13:38:59 +01:00
Timo Bejan
7ff2b9f11f Merge branch 'RED-8175' into 'master'
RED-8175 - fixed path traversal issue

Closes RED-8175

See merge request redactmanager/persistence-service!310
2024-01-16 16:07:10 +01:00
Timo Bejan
8c7b991ecb RED-8175 - fixed path traversal issue 2024-01-16 14:36:54 +02:00
maverickstuder
9ac8fcbf38 RED-5949: Wrong notificationType for specific endpoint
* Do not send notification if assigneeId is null
2024-01-15 12:20:54 +01:00
Dominique Eifländer
cf4a650fb5 RED-8174: Fixed transaction handling for notification preferences 2024-01-09 10:38:09 +01:00
Ali Oezyetimoglu
f5f1bde988 RED-5246: changed permission check for getDossier(...) 2024-01-04 14:23:55 +01:00
Andrei Isvoran
4deadfec0b RED-8114 - Allow editing of unprocessed manual changes 2023-12-21 09:45:13 +01:00
Kilian Schüttler
87f841d9dd RED-7834: fix migration issues 2023-12-11 15:46:32 +01:00
Ali Oezyetimoglu
e52c60c669 Merge branch 'RED-8014' into 'master'
RED-8014: Remove spaces as suffix and prefix on dossier creation

Closes RED-8014

See merge request redactmanager/persistence-service!238
2023-12-04 14:10:23 +01:00
Andrei Isvoran
8dad6c44df RED-7404 - Migrate to gradle 2023-12-04 12:31:47 +01:00
Ali Oezyetimoglu
47e268287e RED-8014: Remove spaces as suffix and prefix on dossier creation 2023-12-04 09:54:10 +01:00
Kresnadi Budisantoso
b9d473677c Hotfix: Download file name not properly recognized by the browser as the response header is malformed 2023-11-29 23:25:46 +01:00
Kresnadi Budisantoso
9d84085d46 Hotfix: Download rule file endpoint (old version) ignores the file type 2023-11-29 23:16:31 +01:00