]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: nfs: skip empty (non-POSIX) path segments 27180/head
authorMatt Benjamin <mbenjamin@redhat.com>
Thu, 14 Mar 2019 17:58:17 +0000 (13:58 -0400)
committerPrashant D <pdhange@redhat.com>
Tue, 26 Mar 2019 02:19:17 +0000 (22:19 -0400)
commit7895d9777e9965157de06def90ae48772bab3970
tree1406b4db34092c32c1f08a95bca8526af9a95e4e
parenta4aeb9d5c2c951054c47ad643caf751cdeaea3a4
rgw: nfs: skip empty (non-POSIX) path segments

Such a path could be created through S3 upload,
e.g., s3://my_files//data/file.pdf.

Previously we asserted for this case, but it's harmless--such a
path segment should just be ignored.

Fixes: http://tracker.ceph.com/issues/38744
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
(cherry picked from commit a53e6c1d5b785a2a46007292041d0a8cb552e3e6)

Conflicts:
src/rgw/rgw_file.h : Resolved in operator()
src/rgw/rgw_file.h