Skip to content

Public sharing broken on master #15913

Closed

Description

@LukasReschke

@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

Activity

  1. added this to the milestone on Apr 28, 2015
  2. LukasReschke commented on Apr 28, 2015

    @LukasReschke
    ContributorAuthor

    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?

  3. added a commit that references this issue on Apr 28, 2015
  4. LukasReschke commented on Apr 28, 2015

    @LukasReschke
    ContributorAuthor

    PR is at #15915

  5. DeepDiver1975 commented on Apr 28, 2015

    @DeepDiver1975
    Contributor

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

    unit tests

  6. LukasReschke commented on Apr 28, 2015

    @LukasReschke
    ContributorAuthor

    unit tests

    Of the routing file? – Long way to go 🙈

  7. added a commit that references this issue on May 22, 2015
  8. locked as resolved and limited conversation to collaborators on Aug 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions