ChiliProject is not maintained anymore. Please be advised that there will be no more updates.

We do not recommend that you setup new ChiliProject instances and we urge all existing users to migrate their data to a maintained system, e.g. Redmine. We will provide a migration script later. In the meantime, you can use the instructions by Christian Daehn.

Git repositories are only shown when www-data is owner (Bug #1122)


Added by Kaspar Fischer at 2012-08-16 04:53 pm. Updated at 2012-08-16 05:32 pm.


Status:Closed Start date:2012-08-16
Priority:Normal Due date:
Assignee:- % Done:

0%

Category:-
Target version:-
Remote issue URL: Affected version:3.3.0

Description

Steps to reproduce:

1. Add a local, bare Git repository on the server running ChiliProject, say: /home/git/repositories/my.git.
2. chmod -R a+r /home/git/repositories/my.git
3. Create a new project and add a Git repository, with the path "/home/git/repositories/my.git".
4. View the repository.

Results:

You get a 404 with an error message like "The entry or revision was not found in the repository."

Expected results:

You would see the contents of the repo.

Fix:

If you change the owner of the repo using

chown -R www-data /home/git/repositories/my.git

you get the expected result. However, I cannot do this in my set up because of security reasons.

Shouldn't read permission be enough?


Associated revisions

Revision 4525a742
Added by Jean-Philippe Lang at 2008-04-30 10:51 am

Fixed: Home, Logout, Login links are absolute (#1122, #1145).

git-svn-id: http://redmine.rubyforge.org/svn/trunk@1384 e93f8b46-1217-0410-a6f0-8f06a7374b81

History

Updated by Holger Just at 2012-08-16 05:09 pm

For ChiliProject (or any process that is) to be able to change into a directory, you also need to grant it execute permissions on the directories (not the files). You can achieve that by using

chmod -R a+rX /home/git/repositories/my.git

(note the capital X)

With these permissions in place (and assuming the user can read and execute all directories above), ChiliProject should be able to read your repo.

Please try that again and report back.

  • Status changed from Open to Needs more information

Updated by Kaspar Fischer at 2012-08-16 05:32 pm

Dear Holger,

Thanks for the immediate reply and the detailed answer. You are completely right, it was the execute permission that was missing, how embarrassing!

I could have sworn I checked this.

I appreciate your help.

  • Status changed from Needs more information to Closed

Also available in: Atom PDF