Skip to content

Commit 206558b

Browse files
Merge branch 'master' into share-type-sciencemesh
Signed-off-by: Michiel de Jong <michiel@unhosted.org>
2 parents 220227f + 75e8636 commit 206558b

1,848 files changed

Lines changed: 6582 additions & 6530 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.drone.yml

Lines changed: 77 additions & 87 deletions
Large diffs are not rendered by default.

.eslintrc.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,15 @@ module.exports = {
88
oc_userconfig: true,
99
dayNames: true,
1010
firstDay: true,
11+
'cypress/globals': true,
1112
},
12-
extends: ['@nextcloud'],
13+
plugins: [
14+
'cypress',
15+
],
16+
extends: [
17+
'@nextcloud',
18+
'plugin:cypress/recommended',
19+
],
1320
rules: {
1421
'no-tabs': 'warn',
1522
// TODO: make sure we fix this as this is bad vue coding style.

.github/workflows/performance.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
blueprint: tests/blueprints/basic.toml
4242
ref: ${{ github.event.pull_request.head.ref }}
4343
- name: Run before measurements
44-
uses: nextcloud/profiler@fa03a1e6864fcb63fb92b8940fa72f5191baffbe
44+
uses: nextcloud/profiler@1e66a9de5f76a01e9d1db4f0153bcc1cbf989b3d
4545
with:
4646
run: |
4747
curl -s -X PROPFIND -u test:test http://localhost:8080/remote.php/dav/files/test
@@ -50,6 +50,7 @@ jobs:
5050
curl -s -u test:test -T README.md http://localhost:8080/remote.php/dav/files/test/new_file.txt
5151
curl -s -u test:test -X DELETE http://localhost:8080/remote.php/dav/files/test/new_file.txt
5252
output: before.json
53+
profiler-branch: master
5354

5455
- name: Apply PR
5556
run: |
@@ -62,7 +63,7 @@ jobs:
6263
6364
- name: Run after measurements
6465
id: compare
65-
uses: nextcloud/profiler@fa03a1e6864fcb63fb92b8940fa72f5191baffbe
66+
uses: nextcloud/profiler@1e66a9de5f76a01e9d1db4f0153bcc1cbf989b3d
6667
with:
6768
run: |
6869
curl -s -X PROPFIND -u test:test http://localhost:8080/remote.php/dav/files/test
@@ -71,6 +72,7 @@ jobs:
7172
curl -s -u test:test -T README.md http://localhost:8080/remote.php/dav/files/test/new_file.txt
7273
curl -s -u test:test -X DELETE http://localhost:8080/remote.php/dav/files/test/new_file.txt
7374
output: after.json
75+
profiler-branch: master
7476
compare-with: before.json
7577

7678
- name: Upload profiles

.github/workflows/psalm-github.yml

Lines changed: 0 additions & 71 deletions
This file was deleted.

.github/workflows/smb-kerberos.yml

Lines changed: 4 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,7 @@ jobs:
1414
smb-kerberos-tests:
1515
runs-on: ubuntu-latest
1616

17-
strategy:
18-
fail-fast: false
19-
matrix:
20-
php-versions: ['8.0', '8.1']
21-
22-
name: php${{ matrix.php-versions }}-${{ matrix.ftpd }}
17+
name: kerberos
2318

2419
steps:
2520
- name: Checkout server
@@ -58,21 +53,12 @@ jobs:
5853
chmod 0777 cookies
5954
6055
DC_IP=$(docker inspect dc --format '{{.NetworkSettings.IPAddress}}')
56+
echo "SAML login"
6157
docker run --rm --name client -v $PWD/cookies:/cookies -v /tmp/shared:/shared --dns $DC_IP --hostname client.domain.test icewind1991/samba-krb-test-client \
62-
curl -c /cookies/jar -s --negotiate -u testuser@DOMAIN.TEST: --delegation always http://httpd.domain.test/index.php/apps/user_saml/saml/login
58+
curl -c /cookies/jar --negotiate -u testuser@DOMAIN.TEST: --delegation always http://httpd.domain.test/index.php/apps/user_saml/saml/login
59+
echo "Check we are logged in"
6360
CONTENT=$(docker run --rm --name client -v $PWD/cookies:/cookies -v /tmp/shared:/shared --dns $DC_IP --hostname client.domain.test icewind1991/samba-krb-test-client \
6461
curl -b /cookies/jar -s --negotiate -u testuser@DOMAIN.TEST: --delegation always http://httpd.domain.test/remote.php/webdav/smb/test.txt)
6562
echo $CONTENT
6663
CONTENT=$(echo $CONTENT | tr -d '[:space:]')
6764
[[ $CONTENT == "testfile" ]]
68-
69-
70-
smb-kerberos-summary:
71-
runs-on: ubuntu-latest
72-
needs: smb-kerberos-tests
73-
74-
if: always()
75-
76-
steps:
77-
- name: Summary status
78-
run: if ${{ needs.smb-kerberos-tests.result != 'success' }}; then exit 1; fi

.github/workflows/static-code-analysis.yml

Lines changed: 39 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,45 @@ jobs:
2626
run: composer i
2727

2828
- name: Psalm
29-
run: composer run psalm -- --monochrome --no-progress --output-format=github --update-baseline || ( git diff -- . ':!lib/composer' && exit 1 )
29+
run: composer run psalm -- --monochrome --no-progress --output-format=github --update-baseline --report=results.sarif
3030

31-
- name: Check diff
31+
- name: Show potential changes in Psalm baseline
32+
if: always()
3233
run: git diff -- . ':!lib/composer'
3334

34-
- name: Show potential changes in Psalm baseline
35-
run: |
36-
bash -c "[[ ! \"`git status --porcelain build/psalm-baseline.xml`\" ]] || ( echo 'Uncommited changes in Psalm baseline' && git status && git diff build/psalm-baseline.xml)"
35+
- name: Upload Analysis results to GitHub
36+
if: always()
37+
uses: github/codeql-action/upload-sarif@v2
38+
with:
39+
sarif_file: results.sarif
40+
41+
static-code-analysis-security:
42+
runs-on: ubuntu-latest
43+
44+
steps:
45+
- name: Checkout code
46+
uses: actions/checkout@v3
47+
with:
48+
submodules: true
49+
50+
- name: Set up php
51+
uses: shivammathur/setup-php@master
52+
with:
53+
php-version: '8.0'
54+
extensions: ctype,curl,dom,fileinfo,gd,intl,json,mbstring,openssl,pdo_sqlite,posix,sqlite,xml,zip
55+
coverage: none
56+
57+
- name: Composer install
58+
run: composer i
59+
60+
- name: Psalm taint analysis
61+
run: composer run psalm -- --monochrome --no-progress --output-format=github --report=results.sarif --taint-analysis
62+
63+
- name: Upload Security Analysis results to GitHub
64+
if: always()
65+
uses: github/codeql-action/upload-sarif@v2
66+
with:
67+
sarif_file: results.sarif
3768

3869
static-code-analysis-ocp:
3970
runs-on: ubuntu-latest
@@ -57,11 +88,8 @@ jobs:
5788
run: composer i
5889

5990
- name: Psalm
60-
run: composer run psalm -- -c psalm-ocp.xml --monochrome --no-progress --output-format=github --update-baseline || ( git diff -- . ':!lib/composer' && exit 1 )
61-
62-
- name: Check diff
63-
run: git diff -- . ':!lib/composer'
91+
run: composer run psalm -- -c psalm-ocp.xml --monochrome --no-progress --output-format=github --update-baseline
6492

6593
- name: Show potential changes in Psalm baseline
66-
run: |
67-
bash -c "[[ ! \"`git status --porcelain build/psalm-baseline-ocp.xml`\" ]] || ( echo 'Uncommited changes in Psalm baseline' && git status && git diff build/psalm-baseline.xml)"
94+
if: always()
95+
run: git diff -- . ':!lib/composer'

3rdparty

Submodule 3rdparty updated 110 files

apps/admin_audit/l10n/pt_PT.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
OC.L10N.register(
22
"admin_audit",
33
{
4-
"Auditing / Logging" : "Auditoria / registo",
5-
"Provides logging abilities for Nextcloud such as logging file accesses or otherwise sensitive actions." : "Fornece a funcionalidade de registo ao Nextcloud como o registo de acesso a ficheiros ou acções sensíveis."
4+
"Auditing / Logging" : "Auditorias / Registos",
5+
"Provides logging abilities for Nextcloud such as logging file accesses or otherwise sensitive actions." : "Fornece funcionalidades de registo para o Nextcloud como registar acessos a ficheiros ou demais ações sensíveis. "
66
},
77
"nplurals=3; plural=(n == 0 || n == 1) ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;");

apps/admin_audit/l10n/pt_PT.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{ "translations": {
2-
"Auditing / Logging" : "Auditoria / registo",
3-
"Provides logging abilities for Nextcloud such as logging file accesses or otherwise sensitive actions." : "Fornece a funcionalidade de registo ao Nextcloud como o registo de acesso a ficheiros ou acções sensíveis."
2+
"Auditing / Logging" : "Auditorias / Registos",
3+
"Provides logging abilities for Nextcloud such as logging file accesses or otherwise sensitive actions." : "Fornece funcionalidades de registo para o Nextcloud como registar acessos a ficheiros ou demais ações sensíveis. "
44
},"pluralForm" :"nplurals=3; plural=(n == 0 || n == 1) ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;"
55
}

apps/dav/l10n/en_GB.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ OC.L10N.register(
8181
"Time:" : "Time:",
8282
"Location:" : "Location:",
8383
"Link:" : "Link:",
84-
"Organizer:" : "Organizer:",
84+
"Organizer:" : "Organiser:",
8585
"Attendees:" : "Attendees:",
8686
"Accept" : "Accept",
8787
"Decline" : "Decline",
@@ -172,12 +172,12 @@ OC.L10N.register(
172172
"Send notifications for events" : "Send notifications for events",
173173
"Notifications are sent via background jobs, so these must occur often enough." : "Notifications are sent via background jobs, so these must occur often enough.",
174174
"Send reminder notifications to calendar sharees as well" : "Send reminder notifications to calendar sharees as well",
175-
"Reminders are always sent to organizers and attendees." : "Reminders are always sent to organizers and attendees.",
175+
"Reminders are always sent to organizers and attendees." : "Reminders are always sent to organisers and attendees.",
176176
"Enable notifications for events via push" : "Enable notifications for events via push",
177177
"Also install the {calendarappstoreopen}Calendar app{linkclose}, or {calendardocopen}connect your desktop & mobile for syncing ↗{linkclose}." : "Also install the {calendarappstoreopen}Calendar app{linkclose}, or {calendardocopen}connect your desktop & mobile for syncing ↗{linkclose}.",
178178
"Please make sure to properly set up {emailopen}the email server{linkclose}." : "Please make sure to properly set up {emailopen}the email server{linkclose}.",
179179
"There was an error updating your attendance status." : "There was an error updating your attendance status.",
180-
"Please contact the organizer directly." : "Please contact the organizer directly.",
180+
"Please contact the organizer directly." : "Please contact the organiser directly.",
181181
"Are you accepting the invitation?" : "Are you accepting the invitation?",
182182
"Tentative" : "Tentative",
183183
"Your attendance was updated successfully." : "Your attendance was updated successfully.",

0 commit comments

Comments
 (0)