mirror of
https://github.com/nextcloud/server.git
synced 2026-06-13 18:50:47 -04:00
Merge pull request #60580 from nextcloud/backport/60547/stable27
Some checks failed
Cypress / init (push) Has been cancelled
Lint php / php-lint (push) Has been cancelled
Node tests / versions (push) Has been cancelled
Node / node (push) Has been cancelled
Psalm static code analysis / static-code-analysis (push) Has been cancelled
Psalm static code analysis / static-code-analysis-security (push) Has been cancelled
Psalm static code analysis / static-code-analysis-ocp (push) Has been cancelled
Cypress / runner 1 (push) Has been cancelled
Cypress / runner 2 (push) Has been cancelled
Cypress / runner component (push) Has been cancelled
Cypress / cypress-summary (push) Has been cancelled
Lint php / php-lint-summary (push) Has been cancelled
Node tests / test (push) Has been cancelled
Node tests / jsunit (push) Has been cancelled
Node tests / handlebars (push) Has been cancelled
Some checks failed
Cypress / init (push) Has been cancelled
Lint php / php-lint (push) Has been cancelled
Node tests / versions (push) Has been cancelled
Node / node (push) Has been cancelled
Psalm static code analysis / static-code-analysis (push) Has been cancelled
Psalm static code analysis / static-code-analysis-security (push) Has been cancelled
Psalm static code analysis / static-code-analysis-ocp (push) Has been cancelled
Cypress / runner 1 (push) Has been cancelled
Cypress / runner 2 (push) Has been cancelled
Cypress / runner component (push) Has been cancelled
Cypress / cypress-summary (push) Has been cancelled
Lint php / php-lint-summary (push) Has been cancelled
Node tests / test (push) Has been cancelled
Node tests / jsunit (push) Has been cancelled
Node tests / handlebars (push) Has been cancelled
[stable27] fix: don't tell the remote their token is lower
This commit is contained in:
commit
f998ff0276
2 changed files with 3 additions and 4 deletions
|
|
@ -126,7 +126,7 @@ class OCSAuthAPIController extends OCSController {
|
|||
'remote server (' . $url . ') presented lower token. We will initiate the exchange of the shared secret.',
|
||||
['app' => 'federation']
|
||||
);
|
||||
throw new OCSForbiddenException();
|
||||
return new DataResponse();
|
||||
}
|
||||
|
||||
$this->jobList->add(
|
||||
|
|
|
|||
|
|
@ -125,9 +125,9 @@ class OCSAuthAPIControllerTest extends TestCase {
|
|||
|
||||
try {
|
||||
$this->ocsAuthApi->requestSharedSecret($url, $token);
|
||||
$this->assertTrue($ok);
|
||||
$this->assertTrue($isTrustedServer);
|
||||
} catch (OCSForbiddenException $e) {
|
||||
$this->assertFalse($ok);
|
||||
$this->assertFalse($isTrustedServer);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -183,7 +183,6 @@ class OCSAuthAPIControllerTest extends TestCase {
|
|||
|
||||
try {
|
||||
$result = $ocsAuthApi->getSharedSecret($url, $token);
|
||||
$this->assertTrue($ok);
|
||||
$data = $result->getData();
|
||||
$this->assertSame('secret', $data['sharedSecret']);
|
||||
} catch (OCSForbiddenException $e) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue