Skip to content

Conversation

@backportbot
Copy link

@backportbot backportbot bot commented Apr 18, 2024

Backport of #44838

Warning, This backport's changes differ from the original and might be incomplete ⚠️

Todo

  • Review and resolve any conflicts
  • Amend HEAD commit to remove the line stating to skip CI

Learn more about backports at https://docs.nextcloud.com/server/stable/go.php?to=developer-backports.

@backportbot backportbot bot requested review from Altahrim, artonge and nfebe April 18, 2024 01:28
@backportbot backportbot bot added 3. to review Waiting for reviews feature: sharing labels Apr 18, 2024
@backportbot backportbot bot added this to the Nextcloud 27.1.9 milestone Apr 18, 2024
nfebe added 2 commits April 18, 2024 10:54
`expireDate` can be set once and used anywhere needed, the current implementation,

duplicates this behavior which leads to `parseDate` receiving an a date object it

parsed and returend earlier in the createShare method.

Signed-off-by: fenn-cs <[email protected]>
@nfebe nfebe force-pushed the backport/44838/stable27 branch from 1319b22 to c902c22 Compare April 18, 2024 09:55
@nfebe nfebe marked this pull request as ready for review April 18, 2024 09:55
IPreview $previewManager,
private IDateTimeZone $dateTimeZone,
private LoggerInterface $logger,
?string $userId = null

Check failure

Code scanning / Psalm

DuplicateParam

Duplicate param $userId in docblock for OCA\Files_Sharing\Controller\ShareAPIController::__construct
$expireDate = $this->parseDate($expireDate);
$share->setExpirationDate($expireDate);
} catch (\Exception $e) {
throw new OCSNotFoundException($this->l->t('Invalid date, date format must be YYYY-MM-DD'));

Check failure

Code scanning / Psalm

UndefinedThisPropertyFetch

Instance property OCA\Files_Sharing\Controller\ShareAPIController::$l is not defined
Copy link
Contributor

@nfebe nfebe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some update needs need to made as the backport is not totally graceful

@solracsf solracsf added 2. developing Work in progress and removed 3. to review Waiting for reviews labels Apr 18, 2024
@Altahrim Altahrim mentioned this pull request Apr 18, 2024
4 tasks
Copy link
Member

@nickvergessen nickvergessen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

//Expire date
if ($expireDate !== '') {
try {
$expireDate = $this->parseDate($expireDate);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs #44916 otherwise it breaks opencloudmesh, deck and talk

@nfebe
Copy link
Contributor

nfebe commented Apr 20, 2024

Would backport #44912 [Same original PR but from stable28]

@nfebe nfebe closed this Apr 20, 2024
@skjnldsv skjnldsv deleted the backport/44838/stable27 branch December 19, 2024 18:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants