Skip to content

Do not register JS share plugin if core sharing API is disabled - #17343

Merged
MorrisJobke merged 1 commit into
masterfrom
share-disablepluginwhennocoreshare
Jul 2, 2015
Merged

MorrisJobke merged 1 commit into
masterfrom
share-disablepluginwhennocoreshare

Conversation

@PVince81

@PVince81 PVince81 commented Jul 2, 2015

Copy link
Copy Markdown
Contributor

Fixes #15186

To test: disable sharing API in the admin page, but leave the files_sharing app enabled.

Please review @MorrisJobke @nickvergessen @icewind1991 @schiesbn

@PVince81 PVince81 added this to the 8.2-next milestone Jul 2, 2015
@scrutinizer-notifier

Copy link
Copy Markdown

A new inspection was created.

@MorrisJobke

Copy link
Copy Markdown
Contributor

Works and fixes the issue 👍

@icewind1991

Copy link
Copy Markdown
Contributor

Looks good 👍

@schiessle

Copy link
Copy Markdown
Contributor

This way the script still get loaded in the sense that we send it to the client, we just make sure that it doesn't get executed. Wouldn't it make more sense to already block it server-side: https://github.com/owncloud/core/blob/master/apps/files_sharing/appinfo/app.php#L57 ? Probably we could skip everything which is done in the app.php if sharing in core is disabled.

@PVince81

PVince81 commented Jul 2, 2015

Copy link
Copy Markdown
Contributor Author

Yes, but I didn't want to look deeper... because in theory we could just disable the whole app if that checkbox is disabled.

This PR is just a quickfix, probably not worth spending more time on it.

@ghost

ghost commented Jul 2, 2015

Copy link
Copy Markdown

🚀 Test PASSed.🚀
chuck

MorrisJobke added a commit that referenced this pull request Jul 2, 2015
…share

Do not register JS share plugin if core sharing API is disabled
@MorrisJobke
MorrisJobke merged commit 99f9f7c into master Jul 2, 2015
@MorrisJobke
MorrisJobke deleted the share-disablepluginwhennocoreshare branch July 2, 2015 15:26
@schiessle

Copy link
Copy Markdown
Contributor

This is a 8.2 pr so no reason to rush. I would have preferred a better fix, we already have enough quick-fixes in our code.... anyway.

@DeepDiver1975

Copy link
Copy Markdown
Contributor

This is a 8.2 pr so no reason to rush. I would have preferred a better fix,

@schiesbn feel free to revert

@PVince81

Copy link
Copy Markdown
Contributor Author

@karlitschek can we backport this to 8.1 ? It seems many people have observed this, see #19433 (comment)

@karlitschek

Copy link
Copy Markdown
Contributor

@PVince81 Backport makes sense. Thanks. 👍

@PVince81

Copy link
Copy Markdown
Contributor Author

stable8.1 #19439

@lock lock Bot locked as resolved and limited conversation to collaborators Aug 10, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Disable sharing API breaks the web UI

7 participants