Skip to content

Closing a PR fails (404 web page) if external issue tracker enabled, or no issue tracker enabled #2447

Closed
@smckown

Description

@smckown
  • Gitea version (or commit ref): 1.2.0-rc1 (binary install)
  • Git version: 2.11.0
  • Operating system: Ubuntu Linux 16.04 amd64
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:
2017/09/01 11:47:16 [...ules/context/repo.go:527 func1()] [E] CheckUnit: You are not allowed to visit this repository unit: 2

Description

  • Start with a repository that is configured for no issue tracker, or an external issue tracker
  • Create a PR
  • Press the Close button on the PR page
  • Result: 404 web page, and log message shown above
  • PR is not removed

The problem does not appear if the builtin issue tracker is enabled. In fact, to close the PR I can:

  • Change to the builtin issue tracker
  • Go close the PR
  • Return to original issue settings (either no issue tracker, or external issue tracker)

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions