Skip to content

fix the bug when the expiration dates can't be removed from link perm… - #8413

Merged
rhafer merged 1 commit into
owncloud:masterfrom
2403905:issue-8405
Feb 9, 2024
Merged

rhafer merged 1 commit into
owncloud:masterfrom
2403905:issue-8405

Conversation

@2403905

@2403905 2403905 commented Feb 8, 2024 •

Copy link
Copy Markdown
Contributor

…issions

Description

Related Issue

Motivation and Context

How Has This Been Tested?

  • test environment:
  • test case 1:
  • test case 2:
  • ...

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Technical debt
  • Tests only (no source changes)

Checklist:

  • Code changes
  • Unit tests added
  • Acceptance tests added
  • Documentation ticket raised:

@sonarqubecloud

sonarqubecloud Bot commented Feb 9, 2024

Copy link
Copy Markdown

@@ -202,7 +202,7 @@ func (g Graph) libreGraphPermissionFromCS3PublicShare(createdLink *link.PublicSh
}

func parseAndFillUpTime(t *time.Time) *types.Timestamp {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@rhafer @fschade This should also apply to the normal sharing link expiration.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@micbar So we want to limit the granularity of share expiration to a day? Didn't know that. Shouldn't that be done in the CS3 shareprovider then?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@micbar needs discussion, the isZero check is valid and needed... but the rounding seems to be something we should talk about, the api allows setting not just the day but instead also allows to define the exact time ... so no rounding is needed, but we could be wrong, you have some minutes to talk about it?

@rhafer rhafer left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Regardless of the discussion about the granularity this fix is valid. So let's merge it an worry about the granularity in a separate issue.

@rhafer
rhafer merged commit fb5f29c into owncloud:master Feb 9, 2024
@micbar micbar mentioned this pull request Feb 26, 2024
67 of 71 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Sharing NG] Expiration dates can't removed from link permissions

4 participants