Skip to content

"Unspecified share exception" instead of proper 404 page on unknown public share tokens #5346

Closed

Description

@MorrisJobke
  • open a public share page with a not available share token - like http://example.org/s/abcdef
  • expected: get a proper 404 page
  • actual: get a "Unspecified share exception"

bildschirmfoto 2017-06-12 um 11 18 12

Ideas when this came in?

@nextcloud/sharing @nickvergessen

Activity

  1. MorrisJobke commented on Jun 12, 2017

    @MorrisJobke
    MemberAuthor
  2. added this to the Nextcloud 12.0.1 milestone on Jun 12, 2017
  3. nickvergessen commented on Jun 13, 2017

    @nickvergessen
    Member

    Yeah

    throw new ShareNotFound();
    }
    try {
    $share = $this->createShare($data);
    } catch (InvalidShare $e) {
    throw new ShareNotFound();
    would need some dedicated message. Not sure why this was not done, but I guess there is no reason?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions