Commit graph

21328 commits

Author SHA1 Message Date
Julien Veyssier
aa9fa95bd8
encrypt oauth2 client secrets
Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
2023-06-14 17:31:11 +02:00
Nextcloud bot
d79a4fb7a5
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2023-06-14 00:18:17 +00:00
Arthur Schiwon
6379223ec9
Merge pull request #38253 from nextcloud/backport/37865/stable25
[stable25] add command to summarize space usage
2023-06-13 12:07:46 +02:00
Nextcloud bot
436a76366b
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2023-06-13 00:18:30 +00:00
Nextcloud bot
8b4f6c90f8
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2023-06-12 00:18:19 +00:00
Nextcloud bot
5bf9d4a124
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2023-06-11 00:34:51 +00:00
Nextcloud bot
73fc016c7a
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2023-06-08 00:19:16 +00:00
Julien Veyssier
3188f68fb5
drop the oauth2_clients trusted column, delete unsupported clients and their access tokens, shorten oauth2 client names
Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
2023-06-07 10:33:04 +02:00
Simon L
2cb6b4315b
Merge pull request #38480 from nextcloud/backport/38440/stable25
[stable25] fix: Catch Deadlock properly as execute throws Doctrine exceptions not our wrapped ones
2023-06-06 16:24:11 +02:00
Nextcloud bot
8d24c61736
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2023-06-06 00:18:00 +00:00
Nextcloud bot
c1b64f936f
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2023-06-05 00:17:50 +00:00
Nextcloud bot
90a338a120
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2023-06-03 00:18:10 +00:00
Daniel Kesselberg
0c0dba69d1 fix: catch errors in id3parser library
We use a forked version of getID3 to read embedded images from mp3 files to use them as previews.

If the library is unable to extract a image or fails on something different we should handle it properly.

Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
2023-05-30 13:45:50 +00:00
Nextcloud bot
c402b31832
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2023-05-30 00:17:53 +00:00
Nextcloud bot
c7cfa1f06b
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2023-05-28 00:17:49 +00:00
Nextcloud bot
a75cf03e02
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2023-05-27 00:18:23 +00:00
Julius Härtl
b339ef5131 fix: execute throws docrine exceptions not our wrapped ones
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2023-05-26 07:46:25 +00:00
Nextcloud bot
ff22d7f927
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2023-05-26 00:18:27 +00:00
Robin Appelman
670bd08af0
add option to list all files instead of limiting
Signed-off-by: Robin Appelman <robin@icewind.nl>
2023-05-25 13:34:16 +02:00
Nextcloud bot
9b483ac136
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2023-05-24 00:18:06 +00:00
Nextcloud bot
0bed5817ac
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2023-05-22 00:18:00 +00:00
Nextcloud bot
030cc104af
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2023-05-21 00:17:23 +00:00
Nextcloud bot
debb74382d
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2023-05-20 00:17:28 +00:00
Nextcloud bot
7d1c6d46ee
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2023-05-18 00:18:05 +00:00
Arthur Schiwon
cf2b8e9866
Merge pull request #38309 from nextcloud/backport/37961/stable25
[stable25] SystemTags endpoint to return tags used by a user with meta data
2023-05-17 18:58:59 +02:00
Arthur Schiwon
4f4231275c
Merge pull request #38090 from nextcloud/backport/35092/stable25
[stable25] Check return value and improve error handling on certificate manager
2023-05-17 18:58:27 +02:00
Git'Fellow
4941f32d5c
Merge pull request #38132 from nextcloud/backport/36895/stable25
[stable25] Fix json_decode expecting a string
2023-05-17 13:24:17 +02:00
Arthur Schiwon
66b8c94cfb
Merge pull request #37850 from nextcloud/backport/37834/stable25
[stable25] Fix TypeError in Profiler
2023-05-17 13:15:04 +02:00
Arthur Schiwon
b4f562bc2f
Merge pull request #37702 from nextcloud/backport/37617/stable25
[stable25] handle not being able to write file for notify self-test
2023-05-17 13:10:22 +02:00
Arthur Schiwon
2368546883
fix: PHP 7.4 compat
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2023-05-16 13:12:10 +02:00
Arthur Schiwon
0612ad250e
refactor: remove where specification from SELECT getter
- search constraints are now fully in control of
  SystemTagsInFilesDetector::detectAssignedSystemTagsIn(), avoids
  duplication of a WHERE statement

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2023-05-16 12:59:10 +02:00
Arthur Schiwon
1e5de8aff4
refactor: remove SystemTag logic from Folder into QuerySearchHelper
- adds OC\SystemTag\SystemTagsInFilesDetector where the search logic is
  moved to

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2023-05-16 12:59:04 +02:00
Arthur Schiwon
de008e1109
feat: specify media type via url path: systemtags-current/$mediaType
- only the media part of the mime type can be search, but not the full
  mime type. It can be added, should it become necessary.
- thus fixes previously hardcoded selector for image/ types
- also fixes a return type hint
- adds a return type hint

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2023-05-16 12:58:47 +02:00
Arthur Schiwon
8ec4760645
PoC: SystemTags endpoint to return tags used by a user with meta data
Target case is photos app: when visiting the tags category, all systemtags
of the whole cloud are retrieved. In subequent steps the next tag is
requested until the browser view is filled with tag tiles (i.e. previews
are requested just as well).

With this approach, we incorpoate the dav search and look for user related
tags that are used by them, and already returns the statistics (number of
files tagged with the respective tag) as well as a file id for the purpose
to load the preview. This defaults to the file with the highest id.

Call:
curl -s -u 'user:password' \
  'https://my.nc.srv/remote.php/dav/systemtags-current' \
  -X PROPFIND -H 'Accept: text/plain' \
  -H 'Accept-Language: en-US,en;q=0.5'  -H 'Depth: 1' \
  -H 'Content-Type: text/plain;charset=UTF-8' \
  --data @/home/doe/request-systemtag-props.xml

With request-systemtag-props.xml:
<?xml version="1.0" encoding="UTF-8"?>
<d:propfind xmlns:d="DAV:">
        <d:prop xmlns:oc="http://owncloud.org/ns" xmlns:nc="http://nextcloud.org/ns">
                <oc:id/>
                <oc:display-name/>
                <oc:user-visible/>
                <oc:user-assignable/>
                <oc:can-assign/>
                <nc:files-assigned/>
                <nc:reference-fileid/>
        </d:prop>
</d:propfind>

Example output:
  …
  <d:response>
    <d:href>/master/remote.php/dav/systemtags/84</d:href>
    <d:propstat>
      <d:prop>
        <oc:id>84</oc:id>
        <oc:display-name>Computer</oc:display-name>
        <oc:user-visible>true</oc:user-visible>
        <oc:user-assignable>true</oc:user-assignable>
        <oc:can-assign>true</oc:can-assign>
        <nc:files-assigned>42</nc:files-assigned>
        <nc:reference-fileid>924022</nc:reference-fileid>
      </d:prop>
      <d:status>HTTP/1.1 200 OK</d:status>
    </d:propstat>
  </d:response>
  <d:response>
    <d:href>/remote.php/dav/systemtags/97</d:href>
    <d:propstat>
      <d:prop>
        <oc:id>97</oc:id>
        <oc:display-name>Bear</oc:display-name>
        <oc:user-visible>true</oc:user-visible>
        <oc:user-assignable>true</oc:user-assignable>
        <oc:can-assign>true</oc:can-assign>
        <nc:files-assigned>1</nc:files-assigned>
        <nc:reference-fileid>923422</nc:reference-fileid>
      </d:prop>
      <d:status>HTTP/1.1 200 OK</d:status>
    </d:propstat>
  </d:response>
  …

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2023-05-16 12:58:42 +02:00
Simon L
24a50a1cde
adjust patch
Signed-off-by: Simon L <szaimen@e.mail.de>

Signed-off-by: Simon L. <szaimen@e.mail.de>
2023-05-16 12:19:20 +02:00
jld3103
0735020a05 Clear generated avatar caches
Signed-off-by: jld3103 <jld3103yt@gmail.com>
2023-05-16 10:17:35 +00:00
jld3103
b8286d2ead Properly clear cached avatars
Signed-off-by: jld3103 <jld3103yt@gmail.com>
2023-05-16 10:17:34 +00:00
Joas Schilling
44d7dbb33d
Merge pull request #38276 from nextcloud/backport/38274/stable25
[stable25] fix(middleware): Also abort the request when reaching max delay in af…
2023-05-16 11:31:26 +02:00
Nextcloud bot
87da3fe7de
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2023-05-16 02:28:43 +00:00
Joas Schilling
1131e6fabd
fix(middleware): Also abort the request when reaching max delay in afterController
Signed-off-by: Joas Schilling <coding@schilljs.com>
2023-05-15 16:25:39 +02:00
Côme Chilliet
dee180409b
Merge pull request #38203 from nextcloud/backport/36893/stable25
[stable25] Make sure to never trigger files hooks on a null path
2023-05-15 11:26:33 +02:00
Julius Härtl
aa86a3d2b3
Merge pull request #38239 from nextcloud/backport/37709/stable25 2023-05-15 08:42:31 +02:00
Nextcloud bot
b697c8e54b
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2023-05-15 02:28:39 +00:00
Nextcloud bot
1ffa649a8d
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2023-05-14 02:27:54 +00:00
Julius Härtl
2788dfc4f2 fix: Check for wrapped retriable exceptions
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2023-05-13 22:23:05 +00:00
Nextcloud bot
0736d43501
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2023-05-13 02:28:14 +00:00
Arthur Schiwon
4c32edfcfa
Merge pull request #36618 from nextcloud/backport/36417
[stable25] Backport: Make the container fully fulfill PSR container interface
2023-05-12 16:32:01 +02:00
Nextcloud bot
f1d645a934
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2023-05-12 02:28:30 +00:00
Côme Chilliet
8faf854a03 Make sure to never trigger files hooks on a null path
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2023-05-11 14:43:04 +00:00
Ferdinand Thiessen
f833319614 Update autoloader
Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
2023-05-11 13:03:28 +02:00