Christoph Wurst
c1d4f8161b
Migrate internal classes to the OCP db col types
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
3 vuotta sitten
Joas Schilling
d5df033ede
Create primary keys on all tables and add a command to create the afterwards
Signed-off-by: Joas Schilling <coding@schilljs.com>
3 vuotta sitten
Joas Schilling
ecbb066dec
Make sure columns with an empty default are nullable for Oracle
Signed-off-by: Joas Schilling <coding@schilljs.com>
3 vuotta sitten
Christoph Wurst
2a054e6c04
Update the license headers for Nextcloud 20
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
3 vuotta sitten
Daniel Kesselberg
87dd760a89
Replace TYPE with TYPES
As TYPE::* is deprecated.
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
4 vuotta sitten
Christoph Wurst
caff1023ea
Format control structures, classes, methods and function
To continue this formatting madness, here's a tiny patch that adds
unified formatting for control structures like if and loops as well as
classes, their methods and anonymous functions. This basically forces
the constructs to start on the same line. This is not exactly what PSR2
wants, but I think we can have a few exceptions with "our" style. The
starting of braces on the same line is pracrically standard for our
code.
This also removes and empty lines from method/function bodies at the
beginning and end.
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
4 vuotta sitten
Christoph Wurst
5bf3d1bb38
Update license headers
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
4 vuotta sitten
Roeland Jago Douma
68748d4f85
Some php-cs fixes
* Order the imports
* No leading slash on imports
* Empty line before namespace
* One line per import
* Empty after imports
* Emmpty line at bottom of file
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
4 vuotta sitten
Joas Schilling
411350540d
Also cache the resource type because it is part of the identifier
Signed-off-by: Joas Schilling <coding@schilljs.com>
5 vuotta sitten
Joas Schilling
43c8d0c9c2
Add default value, because null does not trigger unique-key
Signed-off-by: Joas Schilling <coding@schilljs.com>
5 vuotta sitten
Joas Schilling
ece471de36
Start implementing access cache
Signed-off-by: Joas Schilling <coding@schilljs.com>
5 vuotta sitten
Joas Schilling
702dcfb728
Make names mandatory
Signed-off-by: Joas Schilling <coding@schilljs.com>
5 vuotta sitten
Joas Schilling
69b530a442
Basic implementation of resource and collection handling
Signed-off-by: Joas Schilling <coding@schilljs.com>
5 vuotta sitten
Roeland Jago Douma
81f37401f9
Add db column to store hide download state
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
5 vuotta sitten
Roeland Jago Douma
efef053960
Add column to DB to store expired passwords
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
5 vuotta sitten
Christoph Wurst
82748a482e
Fix backup codes column length to fix Argon2 hash values
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
5 vuotta sitten
Daniel Calviño Sánchez
49fd17ff14
Add "password_by_talk" column to "share" table in the database
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
6 vuotta sitten
Bjoern Schiessle
7bdedfba48
explicitely mention that the note column can be null
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
6 vuotta sitten
Bjoern Schiessle
94c7052482
allow 'note' to be null
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
6 vuotta sitten
Bjoern Schiessle
a93f2a648b
allow to add a personal note to a share
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
6 vuotta sitten
Bjoern Schiessle
4c8f3d6d77
add cloud federation api app
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
6 vuotta sitten
Bjoern Schiessle
5cfe20675d
start implementing federated sharing 2.0
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
6 vuotta sitten
Bjoern Schiessle
cbacca4202
move capabilities to share by mail app
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
7 vuotta sitten
Joas Schilling
5c2ec58440
Move ShareByMail activities to new API
Signed-off-by: Joas Schilling <coding@schilljs.com>
7 vuotta sitten
Bjoern Schiessle
25bcd71d02
add activity if a file was shared by mail
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
7 vuotta sitten
Bjoern Schiessle
86b362809b
always show correct place holder, mention share by mail only if the share provider is enabled
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
7 vuotta sitten
Morris Jobke
f56ae37e8f
Opening the trashbin causes errors in log for files without preview
* put a file without a generated preview in the trashbin
(e.g. a *.docx file)
* open the trashbin
* following errors will show up in the nextcloud.log:
- filesize(): stat failed for ...
- fopen(...): failed to open stream: No such file or directory at ...
- fread() expects parameter 1 to be resource, boolean given at ...
- fclose() expects parameter 1 to be resource, boolean given at ...
- imagecreatefromstring(): Empty string or invalid image at ...
This is because the preview code tries to load an SVG image, which
is obviously only text.
The fix simply handles this before the loading happens and the web UI
keeps showing the default mimetype icon.
7 vuotta sitten
Morris Jobke
2f42a3fc31
Add workflowengine
8 vuotta sitten
Joas Schilling
ba87db3fcc
Fix others
8 vuotta sitten
Roeland Jago Douma
ea47974a08
Add OCSMiddleware to catch OCS exceptions
* OCSException
* OCSBadRequestException
* OCSForbiddenException
* OCSNotFoundException
8 vuotta sitten
Bjoern Schiessle
86f12cc3e7
listen to trash bin and group manager hooks
8 vuotta sitten
Lukas Reschke
aa831252b3
Add basic audit component to logger
Logs already:
- Share events
- Authentication events
- User management events
- File action events
8 vuotta sitten
Sam Tuke
8b01286a5d
Merged branch 'master'
11 vuotta sitten
Frank Karlitschek
72e9a2ce57
moved to apps repository
12 vuotta sitten
jfd
dc3bec6211
OC_Share no longer exists. remove hooks that would trigger require_once / autoloading failures, so i can at least upload files
12 vuotta sitten
Bart Visscher
2d581c675f
Audit: Log sharing actions
12 vuotta sitten
Bart Visscher
1e12db35ee
Audit: Add user login/logout logging
12 vuotta sitten
Bart Visscher
640ba1828f
Start of audit app
Audit the filesystem action
12 vuotta sitten