ftp push causes 403 when checkout without chmod

Asked by Laz-Roc

Hi,

Got new webspace and will move my repository there. The space is only accessible via FTP, so I tried to push as:

% bzr push --create-prefix ftp://login:<email address hidden>/project

This works fine. Now I want to checkout and get a 403 error:

% bzr checkout http://domain.com/project project
bzr: ERROR: Transport error: Server refuses to fulfill the request (403 Forbidden) for http://domain.com/project/.bzr/branch-format

I figured out it's a chmod issue and manually

% chmod -R 777 .bzr

cause all subfolders are rwx and files rw, retried to checkout, and voilà, bazaar does its job as I wanted it to.

Now, I have no clue if there's another way to achieve this without chmod, or being a bug, but I can't imagine this is the intended behavior.

thx
Michael

Question information

Language:
English Edit question
Status:
Solved
For:
Bazaar Edit question
Assignee:
No assignee Edit question
Solved by:
Joke de Buhr
Solved:
Last query:
Last reply:
Revision history for this message
Best Joke de Buhr (joke) said :
#1

Are you sure your webserver has read permissions on those files?
It seems your user and the webserver don't share the same group.

If they don't share the same group "chmod -R u=rwX,go=rX project" should be sufficient. You should not give write permissions to other users.

Take a look at the manpage. Just use
  man chmod
at your command line.

It's most likely not a bazaar bug.

Revision history for this message
Laz-Roc (lazeroc) said :
#2

Thanks Joke de Buhr, that solved my question.