Commit Graph

148 Commits (4bad44decd00a20c3dbe15b00d5811a0d25e4d3c)

Author SHA1 Message Date
Christophe Bliard be2691e00e
fix test 3 years ago
Christophe Bliard 48f3c23bbd
make admin settings storage routes consistent with existing admin settings routes 3 years ago
Christophe Bliard 416205f08e
return 404 for storages api routes if storages module is disabled 3 years ago
Christophe Bliard 8e242e95aa
disable storages module by default through feature_storages_module_active setting 3 years ago
Eric Schubert d1a738ca6a
[bugfix] add spec for projects without storages module 3 years ago
Wieland Lindenthal 8cfec8458c
[#40833] On deletion of user set all file-links, storages and projects_storages to DeletedUser 3 years ago
Christophe Bliard cd4d2c1be1
add permission tests on storages/admin/projects_storages path 3 years ago
Eric Schubert fa150d44e1
[bugfix] Added additional visibility check for file links 3 years ago
Christophe Bliard 9441fa907c
perform deletion of associated FileLinks on ProjectStorage deletion in DeleteService instead of model callback 3 years ago
Christophe Bliard f4808d6b64
ensure in CreateContract that file link is created by current user 3 years ago
Christophe Bliard 3d366c3f82
refactor: factorize common code 3 years ago
Christophe Bliard 880180488e
refactor: remove dead code 3 years ago
Christophe Bliard f07f79389b
when POSTing file links, duplicated file link payload results in only one file link record creation 3 years ago
Christophe Bliard dbbbd5b759
when POSTing file links, prevent any FileLink creation if one of them is invalid 3 years ago
Christophe Bliard b19681fa12
validate FileLink attributes on creation 3 years ago
Christophe Bliard 29f3353d54
Ensure storage creator cannot be updated 3 years ago
Christophe Bliard afad92cd6f
check that creator is current user only on creation 3 years ago
Christophe Bliard b0641a6b30
remove trailing slashes of storage host upon creation 3 years ago
Christophe Bliard e3b7d4b64c
differentiate between storage errors 'is blank' and 'does not exist' 3 years ago
Christophe Bliard 0e99279bd5
limit creation of file_links to 20 at once 3 years ago
Christophe Bliard daed5e1bee
admins and storage admins can see all storages 3 years ago
Christophe Bliard 8814088c9d
add checks on _embedded/elements when creating file links through api 3 years ago
Frank Bergmann 915c36f3a1
Add validations on Storage origin_id and container_type 3 years ago
Christophe Bliard d0726d7fca
fix grammar typo 3 years ago
Christophe Bliard 9e968c4752
use helper instead of a service to get open url for file_links 3 years ago
Christophe Bliard 4e5c01cf41
refactor 3 years ago
Christophe Bliard 7bf80461fd
add errors when nextcloud host is not returning valid json response 3 years ago
Christophe Bliard dafca0605c
remove dead code 3 years ago
Christophe Bliard ef65adb1ab
fix test broken by 65b6d4a 3 years ago
Christophe Bliard 146652d276
Storage host is not allowed to have more than 255 characters 3 years ago
Christophe Bliard 8b6b19538a
improve validation error messages of Storages::Storage 3 years ago
Christophe Bliard 0bb1bde152
set creator of ProjectStorage in SetAttributesService 3 years ago
Christophe Bliard 4ef505e622
refactor to remove useless assignements 3 years ago
Christophe Bliard 9bc93a9168
set default attributes of Storage in Storages::Storage::SetAttributesService 3 years ago
Christophe Bliard c5028bc686
use self_link helper 3 years ago
Christophe Bliard 435c7855e3
writeable properties for representers are not required within our stack 3 years ago
Christophe Bliard b8559502c0
remove ruby magic comment for utf-8 3 years ago
Christophe Bliard f6088bac1e
handle connection errors when checking storage host validity 3 years ago
Christophe Bliard f6721bf7fa
set copyright date to 2022 3 years ago
Christophe Bliard ba156354b9
Validate storage url only if changed and use short timeouts 3 years ago
Christophe Bliard 821abec3a2
fix failing test + minor changes 3 years ago
Eric Schubert 42a84102dc
added error case of project not linked to storage 3 years ago
Christophe Bliard b3257c642e
fix test: add manage_file_links permission 3 years ago
Frank Bergmann 9fa891a755
Cleanup/completion of contracts specs for storages module (#10279) 3 years ago
Christophe Bliard 19c1c0dc49
fix some Todos 3 years ago
Christophe Bliard ac9b57b109
fix test: wrong require_relative path 3 years ago
Christophe Bliard f2b8dcb003
fix tests: file_link api endpoint is not nested in work_packages anymore 3 years ago
Frank Bergmann c5fa8a003d
Add services and contracts for ProjectStorage (#10249) 3 years ago
Eric Schubert f82f355c03
[#40228] migrated some file links endpoint 3 years ago
Eric Schubert 6f4a2d1085
[#40228] fixed scope of get all file links of wp 3 years ago