storage: ErrObjectNotExist in NewRangeReader for "./" prefixed objects #7236
Labels
api: storage
Issues related to the Cloud Storage API.
priority: p2
Moderately-important priority. Fix may not be included in next release.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Client
Storage
Environment
MacOS
Go Environment
$ go version
Code
NOTE
in the following examples, bothgs://bucket/object1.mcap
andgs://bucket/./object1.mcap
objects exist (and are copies of one another).Compare to:
Expected behavior
Running the same script for both existing objects, they should behave the same. The "./" object prefix shouldn't cause unexpected issues.
Actual behavior
handle.Attrs(ctx)
— this prints the same for both./object1.mcap
andobject1.mcap
handle.NewRangeReader(ctx, 0, -1)
works forobject1.mcap
only, and displays an error for./object1.mcap
:Additional context
NOTE
thatx/object1.mcap
or other paths will work as well, the only exception so far being the./
prefix. Objects with "./" prefix should be legitimate.The text was updated successfully, but these errors were encountered: