Project

General

Profile

Bug #18992

rgw_file: "exact match" invalid for directories, in RGWLibFS::stat_leaf()

Added by Matt Benjamin 6 months ago. Updated 17 days ago.

Status:
Resolved
Priority:
High
Assignee:
Target version:
-
Start date:
02/20/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

rgw_file: invalid use of RGWFileHandle::FLAG_EXACT_MATCH

The change which introduced this flag also caused it to be
given as the flags argument to RGWLibFS::stat_leaf() when called
from rgw_lookup().

This was incorrect: in particular, when a directory is known only
as a common prefix of other objects, the AWS namespace mapping
convention requires lookup("foo") to match a non-materialized
instance of "foo/" (case 2 in RGWLibFS::stat_leaf's stat loop).


Related issues

Copied to rgw - Backport #19165: jewel: rgw_file: "exact match" invalid for directories, in RGWLibFS::stat_leaf() Resolved
Copied to rgw - Backport #19166: kraken: rgw_file: "exact match" invalid for directories, in RGWLibFS::stat_leaf() Resolved

History

#1 Updated by Matt Benjamin 6 months ago

  • Status changed from In Progress to Pending Backport

#2 Updated by Matt Benjamin 6 months ago

  • Backport changed from jewel to jewel kraken

#3 Updated by Nathan Cutler 6 months ago

  • Copied to Backport #19165: jewel: rgw_file: "exact match" invalid for directories, in RGWLibFS::stat_leaf() added

#4 Updated by Nathan Cutler 6 months ago

  • Copied to Backport #19166: kraken: rgw_file: "exact match" invalid for directories, in RGWLibFS::stat_leaf() added

#5 Updated by Nathan Cutler 17 days ago

  • Status changed from Pending Backport to Resolved

Also available in: Atom PDF