Skip to content

Respect 'writable' appdir flag on update#35072

Merged
PVince81 merged 1 commit into
masterfrom
fix-35031
Apr 25, 2019
Merged

Respect 'writable' appdir flag on update#35072
PVince81 merged 1 commit into
masterfrom
fix-35031

Conversation

@VicDeo

@VicDeo VicDeo commented Apr 22, 2019

Copy link
Copy Markdown
Contributor

Description

Related Issue

Motivation and Context

Fix App is updated inside the directory that is marked as not writable.

How Has This Been Tested?

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)

@VicDeo VicDeo added 3 - To Review backport-request p2-high Escalation, on top of current planning, release blocker labels Apr 22, 2019
@VicDeo VicDeo added this to the development milestone Apr 22, 2019
@VicDeo VicDeo self-assigned this Apr 22, 2019
@VicDeo
VicDeo requested a review from PVince81 April 22, 2019 12:14
@codecov

codecov Bot commented Apr 22, 2019

Copy link
Copy Markdown

Codecov Report

Merging #35072 into master will increase coverage by 0.01%.
The diff coverage is 91.66%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master   #35072      +/-   ##
============================================
+ Coverage     65.37%   65.38%   +0.01%     
- Complexity    18626    18631       +5     
============================================
  Files          1215     1215              
  Lines         70532    70540       +8     
  Branches       1295     1295              
============================================
+ Hits          46112    46125      +13     
+ Misses        24046    24041       -5     
  Partials        374      374
Flag Coverage Δ Complexity Δ
#javascript 52.85% <ø> (ø) 0 <ø> (ø) ⬇️
#phpunit 66.83% <91.66%> (+0.01%) 18631 <0> (+5) ⬆️
Impacted Files Coverage Δ Complexity Δ
lib/private/legacy/app.php 66.27% <100%> (+1.37%) 166 <0> (+5) ⬆️
lib/private/Installer.php 48.18% <66.66%> (ø) 83 <0> (ø) ⬇️
lib/private/AllConfig.php 95.89% <0%> (+1.36%) 43% <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 b884aac...dd436d4. Read the comment docs.

Comment thread lib/private/legacy/app.php
@PVince81

Copy link
Copy Markdown
Contributor

@VicDeo please fix CI failure due to coding standard

@VicDeo

VicDeo commented Apr 23, 2019

Copy link
Copy Markdown
Contributor Author

@PVince81 updated

@PVince81 PVince81 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.

👍

@owncloud owncloud deleted a comment from codecov Bot Apr 24, 2019
@VicDeo
VicDeo force-pushed the fix-35031 branch 2 times, most recently from 0205666 to 1a9c3d2 Compare April 24, 2019 10:19
@owncloud owncloud deleted a comment from codecov Bot Apr 24, 2019
@VicDeo

VicDeo commented Apr 24, 2019

Copy link
Copy Markdown
Contributor Author

@PVince81 the fix was unreliable, some (not all) phpunit jobs were failing so I moved
\OC::$server->getAppManager()->clearAppsCache();
towards the beginning of OC_App::updateApp additionally

@PVince81 PVince81 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.

👍 ok, looks fine

@PVince81
PVince81 merged commit 1aa3ce6 into master Apr 25, 2019
@delete-merged-branch
delete-merged-branch Bot deleted the fix-35031 branch April 25, 2019 08:08
@PVince81

Copy link
Copy Markdown
Contributor

@VicDeo please backport to release-10.2.0

@VicDeo

VicDeo commented Apr 25, 2019

Copy link
Copy Markdown
Contributor Author

release-10.2.0: #35097

@phil-davis

Copy link
Copy Markdown
Contributor

Backport happened to release-10.2.0 and the release branch has been merged into stable10 so backport is done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4 - To release p2-high Escalation, on top of current planning, release blocker

Projects

None yet

Development

Successfully merging this pull request may close these issues.

App manager not respecting writable flag when folder writable on disk

3 participants