Skip to content

Instantly share code, notes, and snippets.

@alistairncoles
Created January 10, 2017 18:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alistairncoles/251ff8337f38b0522020dc6d833db228 to your computer and use it in GitHub Desktop.
Save alistairncoles/251ff8337f38b0522020dc6d833db228 to your computer and use it in GitHub Desktop.
diff --git a/swift/common/middleware/symlink.py b/swift/common/middleware/symlink.py
index 200b9ec..ef1d20f 100644
--- a/swift/common/middleware/symlink.py
+++ b/swift/common/middleware/symlink.py
@@ -284,6 +284,7 @@ class SymlinkContext(WSGIContext):
Handle object requests
"""
if req.method in ('GET', 'HEAD'):
+ self.logger.info('ANC %s %s %s' % (req.path, req.path_info, req.params))
if config_true_value(req.params.get('symlink')):
resp = self.handle_get_head_symlink(req)
else:
diff --git a/test/functional/test_symlink.py b/test/functional/test_symlink.py
index 71dc388..94ecbc7 100755
--- a/test/functional/test_symlink.py
+++ b/test/functional/test_symlink.py
@@ -460,11 +460,11 @@ class TestSymlink(unittest2.TestCase):
# copy symlink itself
def put_copy_from_symlink(url, token, parsed, conn):
conn.request('PUT',
- '%s/%s/%s?symlink=true' % (parsed.path,
+ '%s/%s/%s' % (parsed.path,
self.env.link_cont, link2),
'',
{'X-Auth-Token': token,
- 'X-Copy-From': copy_src})
+ 'X-Copy-From': copy_src+'?symlink=true'})
return check_response(conn)
resp = retry(put_copy_from_symlink)
resp.read()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment