Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding repair step to fix missing etags - fixes #12172 #13278

Merged
merged 1 commit into from
Jan 13, 2015

Conversation

DeepDiver1975
Copy link
Member

fixes #12172

@dragotin @PVince81 @icewind1991

From the pure sync algorithm pov it is sufficient to fill the etag with any random string which is not empty.

@DeepDiver1975 DeepDiver1975 added this to the 8.0-current milestone Jan 12, 2015
@@ -79,7 +80,8 @@ public static function getRepairSteps() {
new RepairMimeTypes(),
new RepairLegacyStorages(\OC::$server->getConfig(), \OC_DB::getConnection()),
new RepairConfig(),
new AssetCache()
new AssetCache(),
new FillETags(\OC_DB::getConnection())
Copy link
Contributor

Choose a reason for hiding this comment

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

add trailing , so the next repair step does not requrie changing two lines again?

@ghost
Copy link

ghost commented Jan 12, 2015

Refer to this link for build results (access rights to CI server needed):
https://ci.owncloud.org//job/pull-request-analyser-ng-simple/6407/
👍 Test PASSed. 👍

@icewind1991
Copy link
Contributor

Looks good 👍

class FillETags extends BasicEmitter implements \OC\RepairStep {

/** @var \OCP\IConfig */
protected $config;
Copy link
Member

Choose a reason for hiding this comment

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

Uneeded?

@DeepDiver1975
Copy link
Member Author

refs #12502

@ghost
Copy link

ghost commented Jan 12, 2015

Refer to this link for build results (access rights to CI server needed):
https://ci.owncloud.org//job/pull-request-analyser-ng-simple/6488/
👍 Test PASSed. 👍

@scrutinizer-notifier
Copy link

The inspection completed: 8 new issues, 4 updated code elements

@MorrisJobke
Copy link
Contributor

Works as intended. I deleted some etags and run the repair step 👍

MorrisJobke added a commit that referenced this pull request Jan 13, 2015
Adding repair step to fix missing etags - fixes #12172
@MorrisJobke MorrisJobke merged commit 3b2f335 into master Jan 13, 2015
@MorrisJobke MorrisJobke deleted the repair-step-missing-etags branch January 13, 2015 07:38
@lock lock bot locked as resolved and limited conversation to collaborators Aug 14, 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.

Deal with files without ETag in filecache
6 participants