Fix conflation of URL and storage path
The path returned must of course be the external URL path, not the internal storage path.
This commit is contained in:
parent
0f2356f42d
commit
8c8d96c2bc
@ -214,8 +214,8 @@ func (b *filesystemBackend) PutAddressObject(ctx context.Context, path string, c
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return "", err
|
return "", err
|
||||||
}
|
}
|
||||||
path = filepath.Join(basePath, path)
|
internalPath := filepath.Join(basePath, path)
|
||||||
f, err := os.OpenFile(path, os.O_RDWR|os.O_CREATE, 0644)
|
f, err := os.OpenFile(internalPath, os.O_RDWR|os.O_CREATE, 0644)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return "", err
|
return "", err
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user