Gitea: ?go-get=1 not working if REQUIRE_SIGNIN_VIEW = true

Created on 18 Aug 2017  路  7Comments  路  Source: go-gitea/gitea

  • Gitea version (or commit ref): 1.1.3
  • Operating system: Ubuntu server 16.04
  • Database (use [x]):

    • [ ] PostgreSQL

    • [ ] MySQL

    • [ ] MSSQL

    • [x] SQLite

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

    • [ ] Yes (provide example URL)

    • [x] No, I can't change the app.ini settings

    • [ ] Not relevant

Description

?go-get=1 not working on repo url, if REQUIRE_SIGNIN_VIEW = true in app.ini, because redirected to login page

kinquestion

Most helpful comment

I'm closing issue than. It will be fixed with 1.2.0 release

All 7 comments

What would you expect to happen ?
Doesn't the ?go-get=1 response count as view ?

I have my login/password stored in a ~/.netrc, which let me go get my.gitea.com/private/repo <- PRIVATE REPO.

The problem is that, if REQUIRE_SIGNIN_VIEW = true is enabled, the behavior described above doesn't work anymore.

I'm not 100% sure about the meaning of the REQUIRE_SIGNIN_VIEW option, but I think it should not make go get private/repo stop working...

Is it the same issue as this one : https://github.com/gogits/gogs/issues/1878 ?

It looks like this was fixed in Gogs with this commit:
https://github.com/gogits/gogs/commit/e33c714073cc65f814bacf604a84cd2741951afa

Do you feel like opening a pull-requests porting it here ?
Best if it includes an automated test

I think @bkcsoft fixed this in gitea master also

I think this is fixed with #2010

Yeah it's fixed in #2010, though hasn't been backported to 1.1.x

I'm closing issue than. It will be fixed with 1.2.0 release

Was this page helpful?
0 / 5 - 0 ratings

Related issues

BNolet picture BNolet  路  3Comments

BRMateus2 picture BRMateus2  路  3Comments

kifirkin picture kifirkin  路  3Comments

jorise7 picture jorise7  路  3Comments

ghost picture ghost  路  3Comments