Bug #3365
closedBroken metadata (duplicated as CSV)
0%
Description
I am having a problem running MediaWiki with rados+rgw. The code has worked fine with Swift for months (and in production). The error I'm seeing is that I'll PUT and object with one key/value metadata pair, called Sha1base36. I expect that when I HEAD the object via PHP CloudFiles (granted we forked our code there a bit) I'll get back the following metadata:
["Sha1base36"]=> "r2baidcig82irc3n9xfozku4mgo8b96"
If at least 2 files, what I am actually getting is:
["sha1base36"]=>
string(262) "r2baidcig82irc3n9xfozku4mgo8b96, r2baidcig82irc3n9xfozku4mgo8b96, r2baidcig82irc3n9xfozku4mgo8b96, r2baidcig82irc3n9xfozku4mgo8b96, r2baidcig82irc3n9xfozku4mgo8b96, r2baidcig82irc3n9xfozku4mgo8b96, r2baidcig82irc3n9xfozku4mgo8b96, r2baidcig82irc3n9xfozku4mgo8b96"
The case is wrong (Swift always makes the first char of the key capitalized) and I have know idea why the value got duplicated many times into a CSV. I think maybe there is some capitilization normalization issue going on here? I'm still trying to rule out bugs purely on the client end though. I ran the same code with MediaWiki using Swift and didn't run into this.
Note that I am using BTRFS if that helps.