Skip to content

Can not create files via webdav anymore #16959

Closed

Description

@nickvergessen

Failing smashbox test: test_basicSync.py, ...

Description of the minimal failing version:

  1. Create directory for the sync client
  2. Run sync (will pull the welcome.txt)
  3. Create file TEST_FILE_MODIFIED_NONE.dat with str_repeat('0', 1000)
  4. Run sync (should upload the file)
  5. Check that the file exists

Expected

Step 5 returns true

Actual

Step 4 creates the following log entry:

{
    "reqId": "e84pKwfa343OfvplLhWm",
    "remoteAddr": "127.0.0.1",
    "app": "webdav",
    "message": {
        "Exception": {
            "Message": "HTTP/1.1 423 \"TEST_FILE_MODIFIED_NONE.dat\" is locked",
            "Code": 0,
            "Trace": {
                "#0": [
                    "/home/nickv/ownCloud/Smashbox/master/lib/private/connector/sabre/directory.php(111): OC\Connector\Sabre\File->put(Resource id #23)",
                    null
                ],
                "#1": [
                    "/home/nickv/ownCloud/Smashbox/master/3rdparty/sabre/dav/lib/DAV/Server.php(1053): OC\Connector\Sabre\Directory->createFile('TEST_FILE_MODIF...', Resource id #23)",
                    null
                ],
                "#2": [
                    "/home/nickv/ownCloud/Smashbox/master/3rdparty/sabre/dav/lib/DAV/CorePlugin.php(513): Sabre\DAV\Server->createFile('TEST_FILE_MODIF...', Resource id #23, NULL)",
                    null
                ],
                "#3": [
                    "[internal function]: Sabre\DAV\CorePlugin->httpPut(Object(Sabre\HTTP\Request), Object(Sabre\HTTP\Response))",
                    null
                ],
                "#4": [
                    "/home/nickv/ownCloud/Smashbox/master/3rdparty/sabre/event/lib/EventEmitterTrait.php(105): call_user_func_array(Array, Array)",
                    null
                ],
                "#5": [
                    "/home/nickv/ownCloud/Smashbox/master/3rdparty/sabre/dav/lib/DAV/Server.php(469): Sabre\Event\EventEmitter->emit('method:PUT', Array)",
                    null
                ],
                "#6": [
                    "/home/nickv/ownCloud/Smashbox/master/3rdparty/sabre/dav/lib/DAV/Server.php(254): Sabre\DAV\Server->invokeMethod(Object(Sabre\HTTP\Request), Object(Sabre\HTTP\Response))",
                    null
                ],
                "#7": [
                    "/home/nickv/ownCloud/Smashbox/master/apps/files/appinfo/remote.php(83):",
                    "Sabre\DAV\Server->exec()"
                ],
                "#8": [
                    "/home/nickv/ownCloud/Smashbox/master/remote.php(84):",
                    "require_once('/home/nickv/own...')"
                ],
                "#9": [
                    "{main}",
                    null
                ]
            },
            "File": "/home/nickv/ownCloud/Smashbox/master/lib/private/connector/sabre/file.php",
            "Line": 198
        }
    },
    "level": 4,
    "time": "2015-06-16T10:57:09+00:00"
}

@icewind1991 @DeepDiver1975 this most of the tests to fail

Activity

  1. added this to the milestone on Jun 16, 2015
  2. DeepDiver1975 commented on Jun 16, 2015

    @DeepDiver1975
    Contributor

    @icewind1991 can you please have a look? THX

  3. nickvergessen commented on Jun 16, 2015

    @nickvergessen
    ContributorAuthor

    I added logs on locking actions and found related:

    {"reqId":"RoKxN49iT4ThvXLyGXoA","remoteAddr":"127.0.0.1","app":"no app in context","message":"locking file \/TEST_FILE_MODIFIED_NONE.dat~1","level":3,"time":"2015-06-16T11:20:07+00:00"}
    {"reqId":"RoKxN49iT4ThvXLyGXoA","remoteAddr":"127.0.0.1","app":"no app in context","message":"locking path \/TEST_FILE_MODIFIED_NONE.dat~1","level":3,"time":"2015-06-16T11:20:07+00:00"}
    {"reqId":"RoKxN49iT4ThvXLyGXoA","remoteAddr":"127.0.0.1","app":"no app in context","message":"locking path \/~1","level":3,"time":"2015-06-16T11:20:07+00:00"}
    {"reqId":"RoKxN49iT4ThvXLyGXoA","remoteAddr":"127.0.0.1","app":"no app in context","message":"changing lock path \/\/TEST_FILE_MODIFIED_NONE.dat~2","level":3,"time":"2015-06-16T11:20:07+00:00"}
    

    Which brought me to #16955 which fixes the issue.

  4. nickvergessen commented on Jun 17, 2015

    @nickvergessen
    ContributorAuthor

    #16955 as been merged, so closing (forgot to add to auto-close)

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions