Skip to content

Commit

Permalink
spx-backend: keep non-Kodo objects unchanged for /util/fileurls
Browse files Browse the repository at this point in the history
  • Loading branch information
aofei committed May 14, 2024
1 parent c3876a5 commit 282296a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions spx-backend/internal/controller/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -551,9 +551,8 @@ func (ctrl *Controller) MakeFileURLs(ctx context.Context, params *MakeFileURLsPa
}
for _, object := range params.Objects {
if !strings.HasPrefix(object, ctrl.kodo.baseUrl) {
err := fmt.Errorf("unrecognized object key: %s", object)
logger.Printf("%v", err)
return nil, err
fileURLs.ObjectURLs[object] = object // not a Kodo object
continue
}
u, err := url.Parse(object)
if err != nil {
Expand Down

0 comments on commit 282296a

Please sign in to comment.