Skip to content

Version creation causing warning in log when not enough quota #29246

Closed

Description

@PVince81

Steps

  1. Set cron to be run on system cron (important to not have versions cleanup happening randomly during page reloads)
  2. Set the user's quota to "3 KB"
  3. Upload a 2.5 KB file "test.txt"
  4. Upload another file with 0 KB but overwrite "test.txt". This will trigger the code to create a version for the old "test.txt", but will not complain about not enough storage since 0 KB would fit.

Expected result

No version created, but also no warning in log.

Actual result

No version created, warning in log:

{"reqId":"pq1ez4JG4447fSp9OIcT","level":3,"time":"2017-10-13T14:10:50+00:00","remoteAddr":"127.0.0.1","user":"user1","app":"PHP","method":"PUT","url":"\/owncloud\/remote.php\/dav\/files\/user1\/bacon.txt","message":"Undefined index: size at \/srv\/www\/htdocs\/owncloud\/lib\/private\/Files\/View.php#1296"}

Version

ownCloud 10.0.3.

Activity

  1. added this to the backlog milestone on Oct 13, 2017
  2. ownclouders commented on Jan 26, 2018

    @ownclouders
    Contributor

    Hey, this issue has been closed because the label status/STALE is set and there were no updates for 7 days. Feel free to reopen this issue if you deem it appropriate.

    (This is an automated comment from GitMate.io.)

  3. ownclouders commented on Mar 6, 2018

    @ownclouders
    Contributor

    Hey, this issue has been closed because the label status/STALE is set and there were no updates for 7 days. Feel free to reopen this issue if you deem it appropriate.

    (This is an automated comment from GitMate.io.)

  4. lock commented on Jul 31, 2019

    @lock

    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.

  5. locked as resolved and limited conversation to collaborators on Jul 31, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions