Gitea: api request url for dependencies in issues is wrong

Created on 24 Oct 2018  路  4Comments  路  Source: go-gitea/gitea

  • Gitea version (or commit ref): 1.6.0-rc1
  • Git version: 2.17.1
  • Operating system: Ubuntu Server 18.04 x64
  • Database (use [x]):

    • [ ] PostgreSQL

    • [x] MySQL

    • [ ] MSSQL

    • [ ] SQLite

  • Can you reproduce the bug at https://try.gitea.io:

    • [ ] Yes (provide example URL)

    • [ ] No

    • [x] Not relevant

  • Log gist:

Description

I'm hosting gitea in a subfolder called /gitea/ via Apache (Reverse)Proxy.

Therefore my api base url is /gitea/api/v1. Now on searching issues with the provided input it queries /api/v1/repos/gitea/<user>/<repo>/issues?q=... - which of course 404s.

It should be /gitea/api/v1/repos/<user>/<repo>/issues?q=... instead.

kinbug

Most helpful comment

Yeah, maybe I forgot to pay attention to the base path, I'll look into this tomorrow.

All 4 comments

@kolaente made this feature possible AFAIK

Yeah, maybe I forgot to pay attention to the base path, I'll look into this tomorrow.

Simple workaround while this isn't resolved

In apache config:

Redirect /api/v1/repos/gitea/ /gitea/api/v1/repos/

PR is up: #5247

Was this page helpful?
0 / 5 - 0 ratings