-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Allow additional Sabre plugins in publicwebdav.php #35621
Conversation
@julien-nc indeed this is long overdue 😄 |
2a982e3
to
22e02ef
Compare
22e02ef
to
c0703ed
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good 👍
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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::addPlugin
event is not dispatched inpublicwebdav.php
?