Skip to content

Commit

Permalink
fix relative reference handling in storageprovider.CreateContainer
Browse files Browse the repository at this point in the history
  • Loading branch information
David Christofas committed Jun 22, 2021
1 parent cd317b3 commit a80e3f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/grpc/services/storageprovider/storageprovider.go
Original file line number Diff line number Diff line change
Expand Up @@ -498,8 +498,8 @@ func (s *service) CreateContainer(ctx context.Context, req *provider.CreateConta
var name string
switch {
case utils.IsRelativeReference(req.Ref):
req.Ref.Path = path.Dir(req.Ref.Path)
name = path.Base(req.Ref.Path)
req.Ref.Path, name = path.Split(req.Ref.Path)
parentRef = req.Ref
case utils.IsAbsoluteReference(req.Ref):
ref, err := s.unwrap(ctx, req.Ref)
if err != nil {
Expand Down

0 comments on commit a80e3f0

Please sign in to comment.