Allow additional Sabre plugins in publicwebdav.php#35621
Conversation
|
@julien-nc indeed this is long overdue 😄 |
2a982e3 to
22e02ef
Compare
22e02ef to
c0703ed
Compare
PVince81
left a comment
There was a problem hiding this comment.
👍
please check if it's the correct event dispatcher version / the latest non-deprecated one, if applicable
|
@PVince81 Do you mean switching to more modern event management? |
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
|
@PVince81 Are you fine with backporting this to 25, 24 and 23? |
This comment was marked as resolved.
This comment was marked as resolved.
technically this would count as API addition, so not sure |
|
@PVince81 Are you fine with backporting this to 25, 24 and 23? I'd be fine with backporting since it is an addition and not breaking change, so I#d be okay with it |
Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
1d9b4bc to
2d860d2
Compare
|
/backport to stable25 |
|
Drone failure is not related. |
|
@PVince81 I agree with @AndyScherzinger, it does not break anything so it can be backported in 23 and 24.
I see this as a "fix" for an inconsistency between public and private WebDav endpoints. What do you think? |
|
@julien-nc ok, fine |
|
/backport to stable24 |
|
/backport to stable23 |
well well well |
|
Moreover autoloaders were not updated. Does this code even work? |
| */ | ||
| namespace OCP; | ||
|
|
||
| class SabrePublicPluginEvent extends SabrePluginEvent { |
There was a problem hiding this comment.
The naming rule was not followed: https://docs.nextcloud.com/server/18/developer_manual/app/events.html#naming-scheme
|
need manual backport + include #35789 |
It could be useful to have additional Sabre plugins in
publicwebdav.php. I just added something similar to https://github.com/nextcloud/server/blob/master/apps/dav/appinfo/v1/webdav.php#L80-L82Concrete use case: in the context of https://github.com/nextcloud/integration_openproject , we want to allow upload to a public share from a browser (from an OpenProject page actually). For that, we need a Sabre plugin to allow the origin website via the CORS headers.
Any strong reason why the
OCA\DAV\Connector\Sabre::addPluginevent is not dispatched inpublicwebdav.php?