X Tutup
Skip to content

[10.2.0] Backport of The public link edit template was outside public upload check#35238

Merged
PVince81 merged 1 commit intorelease-10.2.0from
fix-public-link-view-issue-release-10.2.0
May 15, 2019
Merged

[10.2.0] Backport of The public link edit template was outside public upload check#35238
PVince81 merged 1 commit intorelease-10.2.0from
fix-public-link-view-issue-release-10.2.0

Conversation

@sharidas
Copy link
Contributor

The public link edit template was outside public upload check.
And hence for creating the public link for files the full
permission option was shown. This change tries to address
the issue.

Signed-off-by: Sujith H sharidasan@owncloud.com

Description

The Download / View / Edit option was outside the check for variable publicUploadPossible in the template. And this caused the issue for files. When user tries to create the public links for files the Download / View / Edit option is visible. But when user clicks it only view permission is available for the public link created. So in this change set the Download / View / Edit option is added inside the publicUploadPossible check and hence the consistency is brought back for creating public links for files.

Related Issue

Motivation and Context

The Download / View / Edit option was moved out of the publicUploadPossible check in the template. Hence there caused inconistency when the public links for files created.

How Has This Been Tested?

  • For folder when the public link is created here is the screenshot
    folder
  • For file when the public link is created here is the screenshot
    file

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Database schema changes (next release will require increase of minor version instead of patch)
  • 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:

Open tasks:

  • Backport (if applicable set "backport-request" label and remove when the backport was done)

@sharidas sharidas added this to the development milestone May 15, 2019
@sharidas sharidas self-assigned this May 15, 2019
… upload check

The public link edit template was outside public upload check.
And hence for creating the public link for files the full
permission option was shown. This change tries to address
the issue.

Signed-off-by: Sujith H <sharidasan@owncloud.com>
@sharidas sharidas force-pushed the fix-public-link-view-issue-release-10.2.0 branch from 39d4749 to 4cbc7f4 Compare May 15, 2019 13:21
@sharidas sharidas changed the title [10.2.0] The public link edit template was outside public upload check [10.2.0] Backport of The public link edit template was outside public upload check May 15, 2019
@sharidas sharidas requested a review from PVince81 May 15, 2019 13:22
@sharidas
Copy link
Contributor Author

Original PR #35226

@codecov
Copy link

codecov bot commented May 15, 2019

Codecov Report

Merging #35238 into release-10.2.0 will increase coverage by <.01%.
The diff coverage is n/a.

Impacted file tree graph

@@                 Coverage Diff                  @@
##             release-10.2.0   #35238      +/-   ##
====================================================
+ Coverage             64.39%   64.39%   +<.01%     
  Complexity            20051    20051              
====================================================
  Files                  1285     1285              
  Lines                 76846    76846              
  Branches               1308     1308              
====================================================
+ Hits                  49484    49485       +1     
+ Misses                26978    26977       -1     
  Partials                384      384
Flag Coverage Δ Complexity Δ
#javascript 53.66% <ø> (ø) 0 <ø> (ø) ⬇️
#phpunit 65.53% <ø> (ø) 20051 <ø> (ø) ⬇️
Impacted Files Coverage Δ Complexity Δ
core/js/sharedialoglinkshareview.js 83.46% <ø> (ø) 0 <0> (ø) ⬇️
lib/private/Server.php 86.66% <0%> (+0.11%) 253% <0%> (ø) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update eb18d9c...4cbc7f4. Read the comment docs.

2 similar comments
@codecov
Copy link

codecov bot commented May 15, 2019

Codecov Report

Merging #35238 into release-10.2.0 will increase coverage by <.01%.
The diff coverage is n/a.

Impacted file tree graph

@@                 Coverage Diff                  @@
##             release-10.2.0   #35238      +/-   ##
====================================================
+ Coverage             64.39%   64.39%   +<.01%     
  Complexity            20051    20051              
====================================================
  Files                  1285     1285              
  Lines                 76846    76846              
  Branches               1308     1308              
====================================================
+ Hits                  49484    49485       +1     
+ Misses                26978    26977       -1     
  Partials                384      384
Flag Coverage Δ Complexity Δ
#javascript 53.66% <ø> (ø) 0 <ø> (ø) ⬇️
#phpunit 65.53% <ø> (ø) 20051 <ø> (ø) ⬇️
Impacted Files Coverage Δ Complexity Δ
core/js/sharedialoglinkshareview.js 83.46% <ø> (ø) 0 <0> (ø) ⬇️
lib/private/Server.php 86.66% <0%> (+0.11%) 253% <0%> (ø) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update eb18d9c...4cbc7f4. Read the comment docs.

@codecov
Copy link

codecov bot commented May 15, 2019

Codecov Report

Merging #35238 into release-10.2.0 will increase coverage by <.01%.
The diff coverage is n/a.

Impacted file tree graph

@@                 Coverage Diff                  @@
##             release-10.2.0   #35238      +/-   ##
====================================================
+ Coverage             64.39%   64.39%   +<.01%     
  Complexity            20051    20051              
====================================================
  Files                  1285     1285              
  Lines                 76846    76846              
  Branches               1308     1308              
====================================================
+ Hits                  49484    49485       +1     
+ Misses                26978    26977       -1     
  Partials                384      384
Flag Coverage Δ Complexity Δ
#javascript 53.66% <ø> (ø) 0 <ø> (ø) ⬇️
#phpunit 65.53% <ø> (ø) 20051 <ø> (ø) ⬇️
Impacted Files Coverage Δ Complexity Δ
core/js/sharedialoglinkshareview.js 83.46% <ø> (ø) 0 <0> (ø) ⬇️
lib/private/Server.php 86.66% <0%> (+0.11%) 253% <0%> (ø) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update eb18d9c...4cbc7f4. Read the comment docs.

@PVince81 PVince81 modified the milestones: development, QA May 15, 2019
Copy link
Contributor

@PVince81 PVince81 left a comment

Choose a reason for hiding this comment

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

👍

@PVince81 PVince81 merged commit d4c88d5 into release-10.2.0 May 15, 2019
@delete-merged-branch delete-merged-branch bot deleted the fix-public-link-view-issue-release-10.2.0 branch May 15, 2019 15:19
@lock lock bot locked as resolved and limited conversation to collaborators May 20, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

X Tutup