Project

General

Profile

Bug #19059

rgw_file: restore (corrected) fix for dir "partial match" (return of FLAG_EXACT_MATCH)

Added by Matt Benjamin 2 months ago. Updated 2 months ago.

Status:
Pending Backport
Priority:
Normal
Assignee:
Target version:
-
Start date:
02/23/2017
Due date:
% Done:

0%

Source:
Tags:
Backport:
jewel
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Release:
Needs Doc:
No

Description

Allow callers of rgw_lookup() on objects attested in an rgw_readdir() callback the ability to bypass exact match in RGWLibFS::stat_leaf() case 2, but restore exact match enforcement for general lookups.

This preserves required common_prefix namespace behavior, but prevents clients from eerily permitting things like "cd sara0" via partial name match on "sara01." With the original common_prefix name fix and namespace invalidates, this behavior was "somewhat harmless," in that creating objects in the non-existent directory had the effect of creating it. Still, nobody expects "cd" to create directories, do they?


Related issues

Copied to Backport #19152: jewel: rgw_file: restore (corrected) fix for dir "partial match" (return of FLAG_EXACT_MATCH) Resolved

History

#1 Updated by Matt Benjamin 2 months ago

  • Status changed from In Progress to Pending Backport

#2 Updated by Nathan Cutler about 2 months ago

  • Copied to Backport #19152: jewel: rgw_file: restore (corrected) fix for dir "partial match" (return of FLAG_EXACT_MATCH) added

Also available in: Atom PDF