Skip to content

fix app provider new file action and improve app provider error codes #2210

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Dec 9, 2021
6 changes: 4 additions & 2 deletions internal/http/services/appprovider/appprovider.go
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,10 @@ func (s *svc) handleNew(w http.ResponseWriter, r *http.Request) {
}

fileRef := &provider.Reference{
ResourceId: parentContainer.Info.Id,
Path: utils.MakeRelativePath(filename),
Path: path.Join(parentContainer.Info.Path, utils.MakeRelativePath(filename)),
// TODO: switch to a relative reference as soon as all storage providers support this
// ResourceId: parentContainer.Info.Id,
// Path: utils.MakeRelativePath(filename),
}

statFileReq := &provider.StatRequest{
Expand Down