-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(signed-request): trigger metadata insert with default value manually #49646
Changes from all commits
a6e8d41
ac47018
bf89735
abd24f9
b61a266
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
/** | ||
* SPDX-FileCopyrightText: 2018 Nextcloud GmbH and Nextcloud contributors | ||
* SPDX-License-Identifier: AGPL-3.0-or-later | ||
*/ | ||
|
||
namespace NCU\Federation; | ||
|
||
use OCP\Federation\ICloudFederationProvider; | ||
|
||
/** | ||
* Interface ICloudFederationProvider | ||
* | ||
* Enable apps to create their own cloud federation provider | ||
* | ||
* @experimental 31.0.0 | ||
*/ | ||
interface ISignedCloudFederationProvider extends ICloudFederationProvider { | ||
|
||
/** | ||
* returns federationId in direct relation (as recipient or as author) of a sharedSecret | ||
* the federationId must be the one at the remote end | ||
* | ||
* @param string $sharedSecret | ||
* @param array $payload | ||
* | ||
* @experimental 31.0.0 | ||
* @return string | ||
*/ | ||
public function getFederationIdFromSharedSecret(string $sharedSecret, array $payload): string; | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,7 +42,7 @@ | |
* @method void setAccount(string $account) | ||
* @method string getAccount() | ||
* @method void setMetadata(array $metadata) | ||
* @method array getMetadata() | ||
* @method ?array getMetadata() | ||
* @method void setCreation(int $creation) | ||
* @method int getCreation() | ||
* @method void setLastUpdated(int $creation) | ||
|
@@ -59,7 +59,7 @@ class Signatory extends Entity implements JsonSerializable { | |
protected string $account = ''; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Account is a nullable column which seems to cause issues on oracle: There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not blocking so talk tests can go green again, but this is probably something to follow up There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It was actually breaking Oracle as it turned out :D |
||
protected int $type = 9; | ||
protected int $status = 1; | ||
protected array $metadata = []; | ||
protected ?array $metadata = null; | ||
protected int $creation = 0; | ||
protected int $lastUpdated = 0; | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we're in the recipient side, this will return null as the share is in
share_external
and notshare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix incoming