Skip to content

[stable9] Add repair step for updater issues - #24134

Merged
DeepDiver1975 merged 1 commit into
stable9from
fix-problems-caused-by-updater
Apr 21, 2016
Merged

DeepDiver1975 merged 1 commit into
stable9from
fix-problems-caused-by-updater

Conversation

@LukasReschke

@LukasReschke LukasReschke commented Apr 20, 2016 •

Copy link
Copy Markdown
Contributor

The updater as shipped with ownCloud =< 9.0.1 has several bugs leading to a not properly executed update. For example the third-party changes are not copied.

This pull request:

  1. Ships the third-party files changed since ownCloud 9.0.1 in the resources folder. On update the files are replaced. (3rdparty folder not overwritten on update updater#316)
  2. Adds updater/* and _oc_upgrade/* as an exemption to the code integrity checker since the updater is updating in the wrong order. (getExtractionBaseDir should be deleted before code signature is verified updater#318)

Most of this code are actually the missed files. This is what is included in resources/.

@DeepDiver1975 @karlitschek @VicDeo Please review.
@karlitschek Please approve.

I'd recommend to get this in as soon as possible so we can have some proper testing on this including also the daily channel.

Fixes #23997
Fixes #23857

The updater as shipped with ownCloud =< 9.0.1 has several bugs leading to a not properly executed update. For example the third-party changes are not copied.

This pull request:

1. Ships the third-party files changed since ownCloud 9.0.1 in the resources folder. On update the files are replaced. (owncloud/updater#316)
2. Adds updater/* and _oc_upgrade/* as an exemption to the code integrity checker since the updater is updating in the wrong order. (owncloud/updater#318)
@LukasReschke LukasReschke added this to the 9.0.2-current-maintenance milestone Apr 20, 2016
@mention-bot

Copy link
Copy Markdown

By analyzing the blame information on this pull request, we identified @PVince81, @DeepDiver1975 and @nickvergessen to be potential reviewers

@LukasReschke

LukasReschke commented Apr 20, 2016 •

Copy link
Copy Markdown
Contributor Author

@karlitschek

Copy link
Copy Markdown
Contributor

not tested but looks ok. As discussed. 👍 We need some full testing for that somehow.

@PVince81

Copy link
Copy Markdown
Contributor

@LukasReschke I guess we don't need a master PR and this PR is to cleanup the mess that was done by the updater between 9.0.1 and 9.0.2 ?

@PVince81

Copy link
Copy Markdown
Contributor

Are there any steps to reproduce for QA to test this ?

@VicDeo would be good if you could help to quickly review and test this so we can get it merged for tomorrow's daily.

CC @owncloud/qa

@VicDeo

VicDeo commented Apr 21, 2016 •

Copy link
Copy Markdown
Contributor

According to @DeepDiver1975 updater should be able to update itself separately from core update (not implemented yet)
so updater/* should not be checked with core but separately (and against a separate signatures.json).

@LukasReschke

LukasReschke commented Apr 21, 2016 •

Copy link
Copy Markdown
Contributor Author

According to @DeepDiver1975 updater should be able to update itself separately from core update (not implemented yet)
so updater/* should not be checked with core.

The PR adds this. HOWEVER, I'm not willed to add this to master as well until this has actually been implemented in the updater as well.

@LukasReschke

LukasReschke commented Apr 21, 2016 •

Copy link
Copy Markdown
Contributor Author

@LukasReschke I guess we don't need a master PR and this PR is to cleanup the mess that was done by the updater between 9.0.1 and 9.0.2 ?

Correct, and 9.0.0 to 9.0.2.

Are there any steps to reproduce for QA to test this ?

That's kinda hard to test reliably, the easiest way would be to get this into the stable9 branch and test to update from 9.0.0 to 9.0-daily once this has been merged. Another way would be to modify the code to download a build with this changes included.

So I'd say there is no real way to test this except waiting for being this in daily. I mean I surely can post the ways that I tested this locally here but it will involve modifying 5 files in ownCloud and is not really a representative real life test 😢

So probably not worth it to 100% retest what I already tested. I seriously see only the daily branch as valid testing approach.

@VicDeo

VicDeo commented Apr 21, 2016

Copy link
Copy Markdown
Contributor

@LukasReschke Looks good, I was about to start testing in a hard way.
👍

@PVince81

Copy link
Copy Markdown
Contributor

@LukasReschke @VicDeo Ok then, once this is on daily, what are the steps to reproduce the issue and run the fix ?

@nickvergessen

Copy link
Copy Markdown
Contributor

@PVince81
Install 9.0.0
Update to 9.0.1
Run code checker => ❌

Install 9.0.0
Update to daily
Run code checker ✅

@PVince81

Copy link
Copy Markdown
Contributor

@nickvergessen thanks, did you get that @owncloud/qa ? 😄

Merging then

@PVince81

Copy link
Copy Markdown
Contributor

Button grayed out 😦

@DeepDiver1975 can you merge this ?

@DeepDiver1975
DeepDiver1975 merged commit 80993b2 into stable9 Apr 21, 2016
@DeepDiver1975
DeepDiver1975 deleted the fix-problems-caused-by-updater branch April 21, 2016 10:55
@VicDeo

VicDeo commented Apr 22, 2016

Copy link
Copy Markdown
Contributor

Tested
Updating 9.0 to ownCloud 9.0.1 (daily) Build:2016-04-22T03:03:05+00:00 6365851
sudo -u www-data php occ integr:check-core
passed with no errors

@lock

lock Bot commented Aug 6, 2019

Copy link
Copy Markdown

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock Bot locked as resolved and limited conversation to collaborators Aug 6, 2019
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.

7 participants