Skip to content
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

Public sharing broken on master #15913

Closed
LukasReschke opened this issue Apr 28, 2015 · 4 comments · Fixed by #15915
Closed

Public sharing broken on master #15913

LukasReschke opened this issue Apr 28, 2015 · 4 comments · Fixed by #15915

Comments

@LukasReschke
Copy link
Member

@icewind1991 While fixing the namespace in https://github.com/owncloud/core/blob/557b4a2cb0ae0367e5facb1e4be136de07ab8cff/apps/files_sharing/appinfo/application.php you broke public sharing in core completely, please take a look at

core/core/routes.php

Lines 111 to 126 in 557b4a2

$this->create('files_sharing.sharecontroller.showShare', '/s/{token}')->action(function($urlParams) {
$app = new \OCA\Files_Sharing\Application($urlParams);
$app->dispatch('ShareController', 'showShare');
});
$this->create('files_sharing.sharecontroller.authenticate', '/s/{token}/authenticate')->post()->action(function($urlParams) {
$app = new \OCA\Files_Sharing\Application($urlParams);
$app->dispatch('ShareController', 'authenticate');
});
$this->create('files_sharing.sharecontroller.showAuthenticate', '/s/{token}/authenticate')->get()->action(function($urlParams) {
$app = new \OCA\Files_Sharing\Application($urlParams);
$app->dispatch('ShareController', 'showAuthenticate');
});
$this->create('files_sharing.sharecontroller.downloadShare', '/s/{token}/download')->get()->action(function($urlParams) {
$app = new \OCA\Files_Sharing\Application($urlParams);
$app->dispatch('ShareController', 'downloadShare');
});

Regression by the ETag PR from #14764

@LukasReschke
Copy link
Member Author

Wondering if Scrutinizer should have catched that, waiting for analysis as per #14764 (comment)

@DeepDiver1975 Anything we can do to catch such stuff on Jenkins?

LukasReschke added a commit that referenced this issue Apr 28, 2015
Fixes public sharing as reported on #15913
@LukasReschke
Copy link
Member Author

PR is at #15915

@DeepDiver1975
Copy link
Member

@DeepDiver1975 Anything we can do to catch such stuff on Jenkins?

unit tests

@LukasReschke
Copy link
Member Author

unit tests

Of the routing file? – Long way to go 🙈

mmattel pushed a commit to mmattel/core that referenced this issue May 22, 2015
Fixes public sharing as reported on owncloud#15913
@lock lock bot locked as resolved and limited conversation to collaborators Aug 12, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants