开发者

SVN error"access to '/svn/myservice/!svn/act/d99e498e-9a8d-374c-a3e4-fde21198bfa2' forbidden"

开发者 https://www.devze.com 2023-03-04 04:01 出处:网络
I cannot commit but I can update. When I attempt to commit I get the following error: access to \'/svn/myservice/!svn/act/d99e498e-9a8d-374c-a3e4-fde21198bfa开发者_如何学JAVA2\'

I cannot commit but I can update.

When I attempt to commit I get the following error:

access to '/svn/myservice/!svn/act/d99e498e-9a8d-374c-a3e4-fde21198bfa开发者_如何学JAVA2' forbidden

I'm using Windows 7 64bit.


This happens when you check out a repository and the casing in the repository path that you typed does not match the actual repository path. When the casing does not match you're able to check out the repo but you get that error when you commit.

However, it can also occur when the name of your SVN account is entered with the wrong capitalization when making the commit (e.g., "Username: Joe" instead of "Username: joe").


I had the same problem.

I solved it on my Windows XP by

  • Clearing the authentication data that Tortoise had saved. Then,
  • Re-tried the commit

Tortoise, then, asked me for my login credentials. After re-inserting my username and password, the commit worked.

How do you clear the authentication data that Tortoise had saved?

Quote:

  • On the PC go to Tortoise SVN > Settings > Saved Data > Authentication Data
  • Click [Clear]

That will clear the stored information, and you will be prompted for it the next time it's needed.


In some case, the error "access to '/svn/myservice/!svn/act/d99e498e-9a8d-374c-a3e4-fde21198bfa2' forbidden"

should be caused by the letter case of url, for example, as the following Repo directory: E:\SVNRepo\MyService

if you get the SVN with url: http://..../svn/myservice , you can checkout/update, but the commit should cause the "forbidden" error.

Relocate local work folder to "http://..../svn/MyService" , every thing should be OK.


it can also happen with, when you checkout with a user, that does not have write permissions. With the cli provide --username with a user that has write permissions.


Update is a READ / PULL, Commit is a WRITE / PUSH.

I was using Linux with Apache and come to find out it was with the Repo breakdown in file used for the AuthzSVNAccessFile /x/x/x/x/users-access-file

FILE CONTENTS of /x/x/x/x/users-access-file

[groups]
DEV =  user1,user2

[/]
* = r

[blah_blah:/]
@DEV = rw

My problem was I 1st had this: [blah_blah], when I changed it to [blah_blah:/] That fixed MY problem. Simple Typo, causes Huge headaches tracking it down.


Check the "write" permissions in that folder

I was working with GitHub and it wouldn't work until I checked the repository permissions again and noticed I've "READ" access.


My repository gave this error with: !svn/act/{guid}' forbidden", im using windows 7 64bit too.

It turned out to be that 'syntax check' was set to yes. so changed it to no and all worked fine.

now, what does syntax check do I wonder?

nothing to do with the case of the url though, tried that first!


In my case I was using the url like "https://exampleIP.com/svn/myrepo/" while searching on Internet I found that svn commit is case sensitive, so enter the exact url as it is defined. I was entering "MyRepo" as "myrepo" that was the issue, now I committed the code successfully.


Try to commit with user name:

svn commit --username your_user_name

Or with repo url:

svn commit --username your_user_name https://your_repo_url
0

精彩评论

暂无评论...
验证码 换一张
取 消