Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pull request #947 breaks HTTPS push/pull to "master" when logged in as Admin #1751

Closed
2 of 7 tasks
wyattoday opened this issue May 18, 2017 · 4 comments · Fixed by #1753
Closed
2 of 7 tasks

Pull request #947 breaks HTTPS push/pull to "master" when logged in as Admin #1751

wyattoday opened this issue May 18, 2017 · 4 comments · Fixed by #1753
Labels
Milestone

Comments

@wyattoday
Copy link

wyattoday commented May 18, 2017

  • Gitea version (or commit ref): fd6034a
  • Git version: 2.13
  • Operating system: Ubuntu 16.04
  • 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:

Description

This commit break pushing and pulling on "master" branch when using HTTPS and logged in as an "admin" account: fd6034a

Here's the pull request in question: #947

Rolling back to the prior commit of gittea fixes the problem.

There's likely a logic error where Admin / creator accounts aren't being read in correctly (or their permissions aren't being read in correctly).

Screenshots

If this issue involves the Web Interface, please include a screenshot

@wyattoday wyattoday changed the title Pull request #947 breaks HTTPS push/pull request on Admin account Pull request #947 breaks HTTPS push/pull to "master" when logged in as Admin May 18, 2017
@lunny
Copy link
Member

lunny commented May 19, 2017

Hi, It seems only system admin has the permission problem?

@lunny
Copy link
Member

lunny commented May 19, 2017

@wyattoday please help to confirm #1753 resolve this issue.

@wyattoday
Copy link
Author

I'll try with a regular user account tomorrow morning (Eastern Time) and report back.

@wyattoday
Copy link
Author

wyattoday commented May 19, 2017

The proposed fix still breaks things (or leaves things broken). For example, as an admin user, when cloning an existing repository, I get an empty directory:

git.exe clone --progress -v "https://example.com/git/repository_name.git" "C:\Users\USERNAME\Documents\repository_name"

Cloning into 'C:\Users\USERNAME\Documents\repository_name'...
warning: You appear to have cloned an empty repository.

Success (641 ms @ 5/19/2017 8:08:51 AM)

Other things are broken as well (pulling still broken, haven't tried pushing yet).

Rolling back to before fd6034a fixes things for me.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants