I accidentally forgot to define the filename at the end of a path and did something like:
with stor.open('swift://A/C/path/', 'w') as fp:
pass
with there already being objects with the prefix swift://A/C/path/.
This caused the HTTPS access page to not render, it served me the file instead.
stor.remove('swift://A/C/path/') removed the object and all was good.
@jtratner suggests that this should just not be allowed happen -- if a copy or write target ends with a trailing slash, the command should fail.
I accidentally forgot to define the filename at the end of a path and did something like:
with there already being objects with the prefix
swift://A/C/path/.This caused the HTTPS access page to not render, it served me the file instead.
stor.remove('swift://A/C/path/')removed the object and all was good.@jtratner suggests that this should just not be allowed happen -- if a copy or write target ends with a trailing slash, the command should fail.