Skip to content

Backport cli scanner to stable5 - #4317

Merged
DeepDiver1975 merged 5 commits into
stable5from
backport-cli-scanner-stable5
Aug 5, 2013
Merged

DeepDiver1975 merged 5 commits into
stable5from
backport-cli-scanner-stable5

Conversation

@DeepDiver1975

Copy link
Copy Markdown
Contributor

backport of #4285 to stable5

As already stated before within #4285 - this script is necessary for the script based upgrade testing I'm working on.

@icewind1991 @karlitschek @butonic @blizzz @bartv2 - THX

@blizzz

blizzz commented Aug 5, 2013

Copy link
Copy Markdown
Contributor

I see warnings in ownCloud.log:

{"app":"PHP","message":"Undefined index: mtime at \/home\/blizzz\/owncloud\/dev\/stable5\/lib\/files\/cache\/scanner.php#99","level":2,"time":"2013-08-05T10:25:38+00:00"}
{"app":"PHP","message":"Undefined index: mtime at \/home\/blizzz\/owncloud\/dev\/stable5\/lib\/files\/cache\/scanner.php#99","level":2,"time":"2013-08-05T10:25:38+00:00"}
{"app":"PHP","message":"Undefined index: mtime at \/home\/blizzz\/owncloud\/dev\/stable5\/lib\/files\/cache\/scanner.php#99","level":2,"time":"2013-08-05T10:25:38+00:00"}
{"app":"PHP","message":"Undefined index: mtime at \/home\/blizzz\/owncloud\/dev\/stable5\/lib\/files\/cache\/scanner.php#99","level":2,"time":"2013-08-05T10:25:38+00:00"}
{"app":"PHP","message":"Undefined index: mtime at \/home\/blizzz\/owncloud\/dev\/stable5\/lib\/files\/cache\/scanner.php#99","level":2,"time":"2013-08-05T10:25:38+00:00"}
{"app":"PHP","message":"Undefined index: mtime at \/home\/blizzz\/owncloud\/dev\/stable5\/lib\/files\/cache\/scanner.php#99","level":2,"time":"2013-08-05T10:25:39+00:00"}

One per user.

Also it seems that LDAP users are not scanned when running with "--all". (This also does not happen on master, checked this again).
This can be fixed by adding

\OC_App::loadApps('authentication');

before $users = OC_User::getUsers(); in apps/files/console/scan.php

@blizzz

blizzz commented Aug 5, 2013

Copy link
Copy Markdown
Contributor

P.S.: also the Warnings occur on master in owncloud.log

@DeepDiver1975

Copy link
Copy Markdown
Contributor Author

P.S.: also the Warnings occur on master in owncloud.log

I'll submit a separate pull request for this - THX

@ghost

ghost commented Aug 5, 2013

Copy link
Copy Markdown

@blizzz

blizzz commented Aug 5, 2013

Copy link
Copy Markdown
Contributor

Then 👍 from me

@karlitschek

Copy link
Copy Markdown
Contributor

👍

DeepDiver1975 added a commit that referenced this pull request Aug 5, 2013
@DeepDiver1975
DeepDiver1975 merged commit 6c8a0b2 into stable5 Aug 5, 2013
@DeepDiver1975
DeepDiver1975 deleted the backport-cli-scanner-stable5 branch August 5, 2013 21:30
@lock lock Bot locked as resolved and limited conversation to collaborators Aug 25, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants