Joas Schilling
0a428f080c
fix(external): Get storage before update it
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2023-10-26 06:59:24 +02:00
Maxence Lange
75f2ffd304
getStorage before remove
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2023-07-13 10:58:07 -01:00
Robin Appelman
7d0c652f6e
check the username when doing external storage session auth
...
Signed-off-by: Robin Appelman <robin@icewind.nl>
2023-05-15 17:06:38 +02:00
Vincent Petry
87b49b7e72
Enable SSL by default in ext storage configs
...
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2023-01-17 11:25:53 +01:00
Vincent Petry
0925ded46e
Extend ext storage params to contain default value
...
Extend the external storage configuration parameters definition to allow
to specify a default value
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2023-01-17 11:25:44 +01:00
blizzz
f2b1bd1aa9
Revert "[stable23] Ext storage configs default value support + enable SSL by default"
2023-01-17 10:32:37 +01:00
Vincent Petry
f8265d8562
Enable SSL by default in ext storage configs
...
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2023-01-16 17:26:57 +01:00
Vincent Petry
6fc54ba54c
Extend ext storage params to contain default value
...
Extend the external storage configuration parameters definition to allow
to specify a default value
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2023-01-16 17:26:48 +01:00
Côme Chilliet
7514a33f4f
Make sure to not pass null to DateTime::createFromFormat
...
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2022-11-14 18:48:34 +00:00
Matthieu Gallien
46167121fc
handle AccessDenied error when checking if external s3 support versions
...
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
2022-07-28 10:27:55 +00:00
Louis Chemineau
48477ba33a
Use stored user for PasswordUpdatedEvent
...
When handling PasswordUpdatedEvent event, we are calling getLoginName which does not exists.
This PR adds a condition to use the previously stored user when handling PasswordUpdatedEvent.
Signed-off-by: Louis Chemineau <louis@chmn.me>
2022-06-22 10:27:39 +00:00
Erik van Velzen
4d33494173
AmazonS3: allow not implemented versioning
...
In case the S3 implementation does not implement versioning, set it to
false. Versioning was introduced in Nexcloud in commit
09ffac5e6d
This is needed for compatibility with the Storj gateway.
Signed-off-by: Erik van Velzen <erik@evanv.nl>
2022-04-12 16:07:07 +02:00
John Molakvoæ
0717c2f85c
Prevent reading key on SFTP stat bool
...
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2022-03-11 15:06:45 +00:00
Vincent Petry
99d16d9e47
Add option to disallow creation of local storages
...
Introduce a new config option to prevent web UI admins to create
or edit external storages of type "local".
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2022-03-07 16:09:57 +00:00
Joas Schilling
954d4e18d1
Use the new option to signaling insensitivity
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2022-02-22 10:59:21 +00:00
Louis Chemineau
91e49958bb
Fix php:cs
...
Signed-off-by: Louis Chemineau <louis@chmn.me>
2022-01-26 10:48:50 +00:00
Carl Schwan
fc3b256dda
Fix accessing undefined offsets
...
Move this to inside the else clause of the count($matches)
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-01-22 08:58:20 +00:00
Robin Appelman
48f6d0f2f6
update to release smb lib
...
Signed-off-by: Robin Appelman <robin@icewind.nl>
2022-01-20 19:18:25 +00:00
Arthur Schiwon
efad8ab4e3
do not use deprecated query() method
...
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2022-01-20 19:18:23 +00:00
Arthur Schiwon
8245c81584
add changes from Sebastian/dassIT and move default_realm to backend
...
- Sebastian added the switch depending on the preg_match result and with it
the fall back to login credentials
- I turned default_realm to a backend option (was previously suggested as
system config key)
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2022-01-20 19:18:22 +00:00
Arthur Schiwon
dddab717bf
add KerberosApacheAuth support to files_external
...
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2022-01-20 19:18:21 +00:00
Anderson Luiz Alves
f71593e3d5
files_external SMB: throw InvalidArgument when user is not set
...
Signed-off-by: Anderson Luiz Alves <alacn1@gmail.com>
2022-01-14 15:16:18 +00:00
Julius Härtl
b7d007547a
Add migration to move over existing storage ids
...
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2021-11-09 14:34:05 +01:00
Julius Härtl
4e57146617
Use unique combination of hostname/bucket/key for external storages
...
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2021-11-04 11:34:13 +01:00
Julius Härtl
9356124700
Merge pull request #29021 from nextcloud/work/smb/additional-logging
2021-10-25 13:25:04 +02:00
Robin Appelman
a1ca901e58
cache versioning enabled status
...
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-10-19 15:03:22 +02:00
Robin Appelman
eb6e6e3a85
minor directory detect improvements
...
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-10-19 14:58:40 +02:00
Robin Appelman
247e12da96
always set Key field in headObject
...
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-10-15 16:43:50 +02:00
Robin Appelman
4bd08af2ad
more reliable hasUpdated for s3
...
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-10-15 16:02:57 +02:00
Robin Appelman
34637697e1
remove old migration method
...
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-10-15 15:35:19 +02:00
Robin Appelman
d3bd0b5a1b
optimize filetype for s3 directories a bit
...
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-10-15 15:35:16 +02:00
Robin Appelman
294af4275c
more reliable directory copy
...
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-10-15 15:35:09 +02:00
Robin Appelman
5e3c8b3af2
doesDirectoryExist fixes
...
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-10-15 15:35:06 +02:00
Robin Appelman
09ffac5e6d
s3 external storage listing rework
...
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-10-15 15:35:02 +02:00
Robin Appelman
fadeae8c8a
Merge pull request #29185 from nextcloud/revert-29165-bug/noid/s3-delete-folder-versions
...
Revert "Delete S3 versions in rmdir"
2021-10-15 13:30:51 +00:00
John Molakvoæ
739b67031b
Merge pull request #27194 from nextcloud/new-ftp
2021-10-14 10:29:24 +02:00
Vincent Petry
d02936bfb3
Revert "Delete S3 versions in rmdir"
2021-10-12 17:06:02 +02:00
Vincent Petry
09ab7a40fe
Delete S3 versions in rmdir
...
When deleting a complete folder in a bucket that has versioning enabled,
also make sure to delete all associated versions and delete markers
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2021-10-11 13:45:02 +02:00
Robin Appelman
a3f1d10f4d
ftp ci improvements
...
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-10-07 18:47:13 +02:00
Robin Appelman
7d582cb489
update copyright header
...
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-10-07 17:36:17 +02:00
Robin Appelman
6b80ae9d44
teardown
...
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-10-07 17:19:36 +02:00
Robin Appelman
ccb24416ac
add new ftp backend
...
this uses the raw `ftp_` functions instead of the stream wrapper
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-10-07 17:19:23 +02:00
Carl Schwan
365f5e425f
Add additional logging on SMB failure to read folder content
...
Currently we discard the error comming from the SMB library and create a
new exception for nextcloud. This patch makes sure that the
access/permission exception from the SMB library are logged correctly.
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2021-10-01 17:54:27 +02:00
Louis Chemineau
735fd94cc0
Fix folder size contained in S3 buckets
...
If 'filesystem_check_changes' was set to never, the cached size was alway set to -1 (Pending) on every access
Signed-off-by: Louis Chemineau <louis@chmn.me>
2021-08-19 15:03:46 +02:00
Julius Härtl
8a14f64ac2
Delete object to cleanup leftover of paths when removing directories
...
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2021-08-13 16:34:48 +00:00
Richard Steinmetz
2e53cf4c1f
Gracefully handle smb acls for users without a domain
...
Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
2021-08-13 09:43:50 +02:00
Arthur Schiwon
47a8d0d5e0
fix app disdplay name
...
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2021-06-16 15:19:28 +02:00
Robin Appelman
94f0c10ec6
fix some types
...
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-06-16 13:56:26 +02:00
Robin Appelman
381aaeb0cc
move logic from contstructor to boot method
...
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-06-16 13:56:25 +02:00
Robin Appelman
2bb78da813
move user/group deleted listeners to new event listener service
...
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-06-16 13:56:25 +02:00