Re: SVN::GetRootAndHead

Daniel Sahlberg via TortoiseSVN-dev <[email protected]> Sun, 28 Apr 2024 11:48:03 -0700 (PDT)
Newsgroups gmane.comp.version-control.subversion.tortoisesvn.devel
Message-ID <[email protected]>
------=_Part_219474_277361390.1714330083460
Content-Type: multipart/alternative; 
	boundary="----=_Part_219475_1331068616.1714330083460"

------=_Part_219475_1331068616.1714330083460
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

So. That didn't turn out well at all=20
(https://groups.google.com/g/tortoisesvn/c/IJuG6WvHTds). I've successfully=
=20
reproduced the error.

Some quick debugging indicate that svn_client_open_ra_session2() now barf=
=20
if the user doesn't have read access to the repository root. I've=20
reproduced this using VisualSVN Server (it has an "implicit list folder=20
permissions for parents of readable paths" that has to be disabled). I=20
didn't dig all the way down to the server but I'm quite sure the server is=
=20
returning a 403 on the root but a valid return code on the actual=20
subdirectory.

I'm a bit at loss what to do here since we send the URL when establishing=
=20
the ra session. If the URL doesn't exist anymore, we get an error. If we=20
send in the root, we get another error. Any ideas?

Kind regards,
Daniel

s=C3=B6ndag 10 mars 2024 kl. 09:16:48 UTC+1 skrev Daniel Sahlberg:

> Thanks! Committed in r29682
>
> l=C3=B6rdag 9 mars 2024 kl. 21:11:08 UTC+1 skrev Stefan:
>
>> no objections from me.
>> The revision for the repo root is the same as for the path, but of cours=
e=20
>> works for non-existing paths as well since the root is never deleted.
>>
>>

--=20
You received this message because you are subscribed to the Google Groups "=
TortoiseSVN-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/=
tortoisesvn-dev/493f39bf-e45c-4c61-87f6-dd692a0174a5n%40googlegroups.com.

------=_Part_219475_1331068616.1714330083460
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

So. That didn't turn out well at all (https://groups.google.com/g/tortoises=
vn/c/IJuG6WvHTds). I've successfully reproduced the error.<div><br /></div>=
<div>Some quick debugging indicate that svn_client_open_ra_session2() now b=
arf if the user doesn't have read access to the repository root. I've repro=
duced this using VisualSVN Server (it has an "implicit list folder permissi=
ons for parents of readable paths" that has to be disabled). I didn't dig a=
ll the way down to the server but I'm quite sure the server is returning a =
403 on the root but a valid return code on the actual subdirectory.</div><d=
iv><br /></div><div>I'm a bit at loss what to do here since we send the URL=
 when establishing the ra session. If the URL doesn't exist anymore, we get=
 an error. If we send in the root, we get another error. Any ideas?</div><d=
iv><br /></div><div>Kind regards,</div><div>Daniel<br /><br /></div><div cl=
ass=3D"gmail_quote"><div dir=3D"auto" class=3D"gmail_attr">s=C3=B6ndag 10 m=
ars 2024 kl. 09:16:48 UTC+1 skrev Daniel Sahlberg:<br/></div><blockquote cl=
ass=3D"gmail_quote" style=3D"margin: 0 0 0 0.8ex; border-left: 1px solid rg=
b(204, 204, 204); padding-left: 1ex;">Thanks! Committed in r29682<br><br><d=
iv class=3D"gmail_quote"><div dir=3D"auto" class=3D"gmail_attr">l=C3=B6rdag=
 9 mars 2024 kl. 21:11:08 UTC+1 skrev Stefan:<br></div><blockquote class=3D=
"gmail_quote" style=3D"margin:0 0 0 0.8ex;border-left:1px solid rgb(204,204=
,204);padding-left:1ex">no objections from me.<div>The revision for the rep=
o root is the same as for the path, but of course works for non-existing pa=
ths as well since the root is never deleted.</div><div><br></div></blockquo=
te></div></blockquote></div>

<p></p>

-- <br />
You received this message because you are subscribed to the Google Groups &=
quot;TortoiseSVN-dev&quot; group.<br />
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to <a href=3D"mailto:[email protected]">tor=
[email protected]</a>.<br />
To view this discussion on the web visit <a href=3D"https://groups.google.c=
om/d/msgid/tortoisesvn-dev/493f39bf-e45c-4c61-87f6-dd692a0174a5n%40googlegr=
oups.com?utm_medium=3Demail&utm_source=3Dfooter">https://groups.google.com/=
d/msgid/tortoisesvn-dev/493f39bf-e45c-4c61-87f6-dd692a0174a5n%40googlegroup=
s.com</a>.<br />

------=_Part_219475_1331068616.1714330083460--

------=_Part_219474_277361390.1714330083460--