What are "p"-style Gerrit HTTPS URLs

300 views
Skip to first unread message

Sebastian Schuberth

unread,
Jan 30, 2018, 3:30:59 PM1/30/18
to Repo and Gerrit Discussion
Hi,

I recently saw for the first time a supposed-to-be Gerrit clone URL in the form

https://gerrit.server.com/p/parent/project.git

While cloning from such a URL works in our Gerrit instance, I wasn't aware of this style until now. I though (authenticated) HTTPS URLs are in the form

https://gerrit.server.com/a/parent/project

Note the "a" instead of "p", and the omitted ".git" suffix. That's also the "http" URL style our Gerrit instance shows on each project's "General" tab.

Is the "p"-style URL documented somewhere? What's its purpose?

Thanks,
Sebastian

Matthias Sohn

unread,
Jan 31, 2018, 6:10:52 PM1/31/18
to Sebastian Schuberth, Repo and Gerrit Discussion
before the patch [1] the p/ style URLs were mandatory for http URLs for the GitServlet
to distinguish them from the URLs used for GWT UI and REST API.


-Matthias

Sebastian Schuberth

unread,
Feb 1, 2018, 11:37:31 AM2/1/18
to Matthias Sohn, Repo and Gerrit Discussion
On Thu, Feb 1, 2018 at 12:10 AM, Matthias Sohn <matthi...@gmail.com> wrote:

> before the patch [1] the p/ style URLs were mandatory for http URLs for the
> GitServlet
> to distinguish them from the URLs used for GWT UI and REST API.

Ok, thanks, but are they *documented* somewhere? I just wonder how
users of Gerrit find out about /p/ URLs if they are ot documented, and
they are also not what Gerrit offers to copy to the clipboard in the
project settings.

--
Sebastian Schuberth

Matthias Sohn

unread,
Feb 1, 2018, 11:42:44 AM2/1/18
to Sebastian Schuberth, Repo and Gerrit Discussion
I don't get why this should be documented if it's not needed.
Check your gerrit.config, maybe you have configured that in gerrit.canonicalWebUrl ?

-Matthias

Sebastian Schuberth

unread,
Feb 1, 2018, 11:54:52 AM2/1/18
to Matthias Sohn, Repo and Gerrit Discussion
On Thu, Feb 1, 2018 at 5:42 PM, Matthias Sohn <matthi...@gmail.com> wrote:

> I don't get why this should be documented if it's not needed.
> Check your gerrit.config, maybe you have configured that in
> gerrit.canonicalWebUrl ?

Because I see Gerrit users using /p/ style URLs with their local Git
client to clone repos from Gerrit. In my tries to encourage them to
use SSH instead (and also not /a/ style HTTPS URLs) it would help if I
could refer to either a) documentation that states that /p/ style URLs
are deprecated, or b) have some official answer on this mailing list
that /p/ style URLs are undocumented and thus are discouraged to be
used :-)

--
Sebastian Schuberth

David Pursehouse

unread,
Feb 1, 2018, 6:31:02 PM2/1/18
to Sebastian Schuberth, Matthias Sohn, Repo and Gerrit Discussion
I only found one instance of /p/ being used in the documentation, and I'm removing that in [1].

You can probably use this mail thread as the official answer that /p/ urls are no longer used :)



 

--
Sebastian Schuberth

--
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en

---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Sebastian Schuberth

unread,
Feb 2, 2018, 2:52:02 AM2/2/18
to David Pursehouse, Matthias Sohn, Repo and Gerrit Discussion
On Fri, Feb 2, 2018 at 12:30 AM, David Pursehouse
<david.pu...@gmail.com> wrote:

> I only found one instance of /p/ being used in the documentation, and I'm
> removing that in [1].
>
> You can probably use this mail thread as the official answer that /p/ urls
> are no longer used :)

Thanks ;-)

Regards,
Sebastian
Reply all
Reply to author
Forward
0 new messages