Bug #4963

object PUT with x-move-from ignores X-Source-Version

Added by Stavros Sachtouris almost 7 years ago.

Status:New Start date:01/22/2014
Priority:Medium Due date:
Assignee:Sofia Papagiannaki % Done:

0%

Category:Pithos Spent time: -
Target version:-

Description

In kamaki terms, the error can be reproduced like this:

pithos.container = src_cnt
original_version = pithos.get_object_versioning(src_obj)[0][0]

pithos.container = dst_cnt
pithos.object_put(
    trg_obj,
    format=None,
    move_from='/%s/%s' % (src_cnt, src_obj),
    source_version=original_version,
    content_encoding='application/octet-stream',
    content_length=0,
    success=201)

The above PUT call raises a ClientError (404, not found)

Also available in: Atom PDF