Project

General

Profile

Bug #19059

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

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

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

0%

Source:
Tags:
Backport:
jewel,kraken
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 rgw - Backport #19152: jewel: rgw_file: restore (corrected) fix for dir "partial match" (return of FLAG_EXACT_MATCH) Resolved
Copied to rgw - Backport #20195: kraken: rgw_file: restore (corrected) fix for dir "partial match" (return of FLAG_EXACT_MATCH) Resolved

History

#1 Updated by Matt Benjamin 7 months ago

  • Status changed from In Progress to Pending Backport

#2 Updated by Nathan Cutler 7 months ago

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

#3 Updated by Nathan Cutler 4 months ago

  • Backport changed from jewel to jewel,kraken

#4 Updated by Nathan Cutler 4 months ago

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

#5 Updated by Nathan Cutler about 2 months ago

  • Status changed from Pending Backport to Resolved

Also available in: Atom PDF