Page MenuHomePhabricator

Chunked uploads returning continue instead of success
Closed, ResolvedPublic

Description

Author: M8R-udfkkf

Description:
When you upload the entire file in the first stash post, the upload status returned is 'Continue' instead of 'Success'

Also, if you post an empty chunk to a previously stashed file (that's fully uploaded), you get

{"servedby":"mw1142","error":{"code":"stashfailed","info":"Could not write to temporary file."}}

you should get a success.


Version: 1.21.x
Severity: normal

Details

Reference
bz44923

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 1:22 AM
bzimport added a project: MediaWiki-API.
bzimport set Reference to bz44923.

(In reply to comment #0)

When you upload the entire file in the first stash post
Also, if you post an empty chunk to a previously stashed file (that's fully
uploaded)

For both cases a small testcases is very welcome, so it's clear that everybody uses the same calls, parameters, values when trying to reproduce the problem.

M8R-udfkkf wrote:

Stash file in one post-Request

Attached:

M8R-udfkkf wrote:

Stash file in one post-Response

Attached:

M8R-udfkkf wrote:

Add nothing to fully stashed file-Request

Attached:

M8R-udfkkf wrote:

Add nothing to fully stashed file-Response

Attached:

Gerrit change 51066

anomie: Your patch was merged, can this bug report be closed as FIXED?