committed by
Jörn Friedrich Dreyer
parent
2ddc7f7399
commit
5b49432d2d
@@ -0,0 +1,10 @@
|
||||
Bugfix: Thumbnails for `/dav/xxx?preview=1` requests
|
||||
|
||||
We've added the thumbnail rendering for `/dav/xxx?preview=1` requests, which was previously not supported because of missing routes. It now returns the same thumbnails as for
|
||||
`/remote.php/dav/xxx?preview=1`.
|
||||
|
||||
We've also ensured that `/remote.php/webdav/xxx?preview=1` and `/webdav/xxx?preview=1` will be
|
||||
routed to the correct service and always return a 404 Not Found, because Thumbnails are currently
|
||||
not implemented for that route.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/3567
|
||||
@@ -5,10 +5,7 @@ import (
|
||||
"encoding/xml"
|
||||
"io"
|
||||
"net/http"
|
||||
<<<<<<< HEAD
|
||||
=======
|
||||
"net/url"
|
||||
>>>>>>> 60f1081e8 (implement thumbnails also for webdav and non remote.php routes)
|
||||
"path"
|
||||
"path/filepath"
|
||||
"strings"
|
||||
@@ -18,27 +15,19 @@ import (
|
||||
rpcv1beta1 "github.com/cs3org/go-cs3apis/cs3/rpc/v1beta1"
|
||||
"github.com/cs3org/reva/v2/pkg/rgrpc/todo/pool"
|
||||
"github.com/cs3org/reva/v2/pkg/storage/utils/templates"
|
||||
"github.com/go-chi/chi/v5"
|
||||
"github.com/go-chi/render"
|
||||
merrors "go-micro.dev/v4/errors"
|
||||
"google.golang.org/grpc/metadata"
|
||||
|
||||
"github.com/owncloud/ocis/v2/extensions/webdav/pkg/config"
|
||||
"github.com/owncloud/ocis/v2/extensions/webdav/pkg/constants"
|
||||
"github.com/owncloud/ocis/v2/extensions/webdav/pkg/dav/requests"
|
||||
"github.com/owncloud/ocis/v2/ocis-pkg/log"
|
||||
"github.com/owncloud/ocis/v2/ocis-pkg/service/grpc"
|
||||
|
||||
"github.com/go-chi/chi/v5"
|
||||
<<<<<<< HEAD
|
||||
"github.com/owncloud/ocis/v2/extensions/webdav/pkg/config"
|
||||
"github.com/owncloud/ocis/v2/extensions/webdav/pkg/dav/requests"
|
||||
thumbnailsmsg "github.com/owncloud/ocis/v2/protogen/gen/ocis/messages/thumbnails/v0"
|
||||
searchsvc "github.com/owncloud/ocis/v2/protogen/gen/ocis/services/search/v0"
|
||||
thumbnailssvc "github.com/owncloud/ocis/v2/protogen/gen/ocis/services/thumbnails/v0"
|
||||
=======
|
||||
"github.com/owncloud/ocis/extensions/webdav/pkg/config"
|
||||
"github.com/owncloud/ocis/extensions/webdav/pkg/constants"
|
||||
"github.com/owncloud/ocis/extensions/webdav/pkg/dav/requests"
|
||||
thumbnailsmsg "github.com/owncloud/ocis/protogen/gen/ocis/messages/thumbnails/v0"
|
||||
thumbnailssvc "github.com/owncloud/ocis/protogen/gen/ocis/services/thumbnails/v0"
|
||||
>>>>>>> 60f1081e8 (implement thumbnails also for webdav and non remote.php routes)
|
||||
)
|
||||
|
||||
const (
|
||||
@@ -114,7 +103,7 @@ func NewService(opts ...Option) (Service, error) {
|
||||
r.Get("/remote.php/webdav/*", http.NotFound)
|
||||
r.Get("/webdav/*", http.NotFound)
|
||||
})
|
||||
|
||||
|
||||
// r.MethodFunc("REPORT", "/remote.php/dav/files/{id}/*", svc.Search)
|
||||
|
||||
// This is a workaround for the go-chi concurrent map read write issue.
|
||||
|
||||
Reference in New Issue
Block a user