|
@ -266,7 +266,12 @@ func (fs *FilerServer) saveMetaData(ctx context.Context, r *http.Request, fileNa |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if dbErr := fs.filer.CreateEntry(ctx, entry, false, false, nil, skipCheckParentDirEntry(r), so.MaxFileNameLength); dbErr != nil { |
|
|
|
|
|
|
|
|
dbErr := fs.filer.CreateEntry(ctx, entry, false, false, nil, skipCheckParentDirEntry(r), so.MaxFileNameLength) |
|
|
|
|
|
// In test_bucket_listv2_delimiter_basic, the valid object key is the parent folder
|
|
|
|
|
|
if dbErr != nil && strings.HasSuffix(dbErr.Error(), " is a file") && r.Header.Get(s3_constants.AmzIdentityId) != "" { |
|
|
|
|
|
dbErr = fs.filer.CreateEntry(ctx, entry, false, false, nil, true, so.MaxFileNameLength) |
|
|
|
|
|
} |
|
|
|
|
|
if dbErr != nil { |
|
|
replyerr = dbErr |
|
|
replyerr = dbErr |
|
|
filerResult.Error = dbErr.Error() |
|
|
filerResult.Error = dbErr.Error() |
|
|
glog.V(0).Infof("failing to write %s to filer server : %v", path, dbErr) |
|
|
glog.V(0).Infof("failing to write %s to filer server : %v", path, dbErr) |
|
|