Hi,
I solved this by adding Read permission at `refs/*` to Project Owners.Now all tags are visible.I am not sure why it should be added and what is special about this specific tag that was hidden.
Thanks,AlonOn Wed, 27 Aug 2025 at 19:00, Alon Bar-Lev <alon....@gmail.com> wrote:Hi,I have a very strange issue with Gerrit and a specific user.For some reason a specific user cannot see a specific tag in a project.The tag is not visible for a specific user in Gerrit user interface nor in `git ls-remote` output.Other users can see the tag.We have no specific tag access settings, the tags are quite standard... see the following, the problematic tag is v1.1.2, the rest are visible.```git ls-remote | grep tags
d7aceeeb1b45396d48037ab5db07c55c24e28ce0 refs/tags/v1.0.0
c4a424ac7ae9301401bdd23a3b89f8cc9ab19a0c refs/tags/v1.0.1
f8d5a96e14d3ccf67310b262a64c9aadfe950f51 refs/tags/v1.1.0
4d8391da08d437a37a8021b31122d86cad5dda1d refs/tags/v1.1.1
70cb277cae6110a5b50833bf23717a2ad9680406 refs/tags/v1.1.2 <=====
```The tag was created via the web user interface.It is not an index issue as I did rebuild all indexes.It occured on 3.12.1 and also 3.12.2.We are using ssh protocol, but it seems unrelated as the web user interface and the git show the same result.Any clue how to debug this?Thanks,Alon
--
--
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.
To view this discussion visit https://groups.google.com/d/msgid/repo-discuss/CAOazyz0%2B2tbHDRr%2BbZAcaxqqYRz83Zo-aGmT%2B_W0f%2B5gTrW0rA%40mail.gmail.com.
On Wed, Aug 27, 2025 at 10:30 AM Alon Bar-Lev <alon....@gmail.com> wrote:Hi,I solved this by adding Read permission at `refs/*` to Project Owners.Now all tags are visible.I am not sure why it should be added and what is special about this specific tag that was hidden.Visibility on tags is determined by which branches are visible. So usually this scenario happens when these tags point to commits that are either 1) only on branches the user cannot see or 2) not on any branch (only reachable from the tag).
On Thu, 28 Aug 2025 at 00:14, Nasser Grainawi <nasser....@oss.qualcomm.com> wrote:On Wed, Aug 27, 2025 at 10:30 AM Alon Bar-Lev <alon....@gmail.com> wrote:Hi,I solved this by adding Read permission at `refs/*` to Project Owners.Now all tags are visible.I am not sure why it should be added and what is special about this specific tag that was hidden.Visibility on tags is determined by which branches are visible. So usually this scenario happens when these tags point to commits that are either 1) only on branches the user cannot see or 2) not on any branch (only reachable from the tag).Hello Nasser,Thank you for your response.I also thought that the problem is a tag that is not reachable from any head, but this is not the case.The user can see all the branches.The tag is in the history of a branch.
commit 0da744e6994a737945f036a996d3408172d3f265 (origin/stable-1.1)
commit 70cb277cae6110a5b50833bf23717a2ad9680406 (tag: v1.1.2)The interesting behavior is that I added Read permission at `refs/*` to Project Owners and it resolved this specific tag that is missing for this user.
We have no specific tag access settings, the tags are quite standard... see the following, the problematic tag is v1.1.2, the rest are visible.
The tag was created via the web user interface.
On Wed, Aug 27, 2025 at 3:30 PM Alon Bar-Lev <alon....@gmail.com> wrote:On Thu, 28 Aug 2025 at 00:14, Nasser Grainawi <nasser....@oss.qualcomm.com> wrote:On Wed, Aug 27, 2025 at 10:30 AM Alon Bar-Lev <alon....@gmail.com> wrote:Hi,I solved this by adding Read permission at `refs/*` to Project Owners.Now all tags are visible.I am not sure why it should be added and what is special about this specific tag that was hidden.Visibility on tags is determined by which branches are visible. So usually this scenario happens when these tags point to commits that are either 1) only on branches the user cannot see or 2) not on any branch (only reachable from the tag).Hello Nasser,Thank you for your response.I also thought that the problem is a tag that is not reachable from any head, but this is not the case.The user can see all the branches.The tag is in the history of a branch.Hmm. Might be a bug or some other issue. Anything in the error logs? You could try using the checkAccess REST API https://gerrit-review.googlesource.com/Documentation/rest-api-projects.html#check-access
From the docs [1]:
- if you push a lightweight tag without the access right 'Create Reference' for the reference name refs/tags/*
- if you push a tag with somebody else as tagger and you don’t have the 'Forge Committer' access right for the reference name refs/tags/*
=> Check if the tag was created by a user without the required permissions...
To view this discussion visit https://groups.google.com/d/msgid/repo-discuss/b0780168-13fc-4bb5-bacd-c16b802298b6n%40googlegroups.com.
Hello Nasser,Have you reviewed the log? Have any clue what happens?The two branch logs look identical but one fails.
On Thu, Sep 4, 2025 at 2:22 AM Alon Bar-Lev <alon....@gmail.com> wrote:Hello Nasser,Have you reviewed the log? Have any clue what happens?The two branch logs look identical but one fails.Sorry, I missed replying to your earlier email. I'm confused about the "lacks permission null" part of the response message. What did your REST API request look like?
{"status":200,"debug_logs":...}
{"message":"user 1000006 lacks permission null for refs/tags/v1.1.2 in project project1","status":403,"debug_logs":...}
On Thu, 4 Sept 2025 at 20:37, Nasser Grainawi <nasser....@oss.qualcomm.com> wrote:On Thu, Sep 4, 2025 at 2:22 AM Alon Bar-Lev <alon....@gmail.com> wrote:Hello Nasser,Have you reviewed the log? Have any clue what happens?The two branch logs look identical but one fails.Sorry, I missed replying to your earlier email. I'm confused about the "lacks permission null" part of the response message. What did your REST API request look like?Hi,Please notice that only the problematic tag produces this message.As this is GET I just use browser, login to gerrit, then put the following in the URL:With one of the good tags:{"status":200,"debug_logs":...}With the problematic tag:{"message":"user 1000006 lacks permission null for refs/tags/v1.1.2 in project project1","status":403,"debug_logs":...}The debug_logs are identical in both cases, I pasted it in the previous message.Should I perform the call differently?
Hi,Has anyone encountered an issue in which tags are partially visible to users and succeeded to solve this without allowing refs/*?
On Monday, December 29, 2025 at 11:05:03 PM UTC-8 Alon Bar-Lev wrote:Hi,Has anyone encountered an issue in which tags are partially visible to users and succeeded to solve this without allowing refs/*?I don't have a good answer, but I also have encountered this issue on Gerrit 3.11.1. My solution was to allow Read on refs/*. In my case, I could tell from ls-user-refs that the user could read the branch that contains the commit the tag points to, but still he could not see the tag. I posted about it on the Gerrit Discord on June 5, 2025: https://discord.com/channels/775374026587373568/775374026587373571/1380321249422737571
I have multiple examples of regular users who see only a subset of tags, I've provided all the information I could find and also the helper check.access API, which should be helpful for debugging.I could not find what is wrong in the configuration and what is the difference between the use cases, it seems that the simple tags are more subject to be hidden.Thanks,Alon
--
--
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.
To view this discussion visit https://groups.google.com/d/msgid/repo-discuss/e4bc9ae7-b126-45a0-836a-9612401ce59an%40googlegroups.com.
> On 6 Jan 2026, at 00:25, 'Kenyon Ralph' via Repo and Gerrit Discussion <repo-d...@googlegroups.com> wrote:
>
> On Monday, December 29, 2025 at 11:05:03 PM UTC-8 Alon Bar-Lev wrote:
> Hi,
>
> Has anyone encountered an issue in which tags are partially visible to users and succeeded to solve this without allowing refs/*?
>
> I don't have a good answer, but I also have encountered this issue on Gerrit 3.11.1. My solution was to allow Read on refs/*. In my case, I could tell from ls-user-refs that the user could read the branch that contains the commit the tag points to, but still he could not see the tag. I posted about it on the Gerrit Discord on June 5, 2025: https://discord.com/channels/775374026587373568/775374026587373571/1380321249422737571
The visibility of tags is a lot more complex than the visibility on any other refs.
Instead of just maching the ref name, it is also based on reachability by visible branches.
Have you tried creating a branch that points to the SHA1 of the tag and it is visible by the user?
If that shows the tags, then it means that you have a reachability issue.
HTH
Luca.
> I have multiple examples of regular users who see only a subset of tags, I've provided all the information I could find and also the helper check.access API, which should be helpful for debugging.
>
> I could not find what is wrong in the configuration and what is the difference between the use cases, it seems that the simple tags are more subject to be hidden.
> Thanks,
> Alon
>
> --
> --
> 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.
> To view this discussion visit https://groups.google.com/d/msgid/repo-discuss/e4bc9ae7-b126-45a0-836a-9612401ce59an%40googlegroups.com.
--
--
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.
To view this discussion visit https://groups.google.com/d/msgid/repo-discuss/B57225C9-C7CD-41F3-887D-79378ED644A1%40gmail.com.
On Tue, 6 Jan 2026 at 08:03, Luca Milanesio <luca.mi...@gmail.com> wrote:
> On 6 Jan 2026, at 00:25, 'Kenyon Ralph' via Repo and Gerrit Discussion <repo-d...@googlegroups.com> wrote:
>
> On Monday, December 29, 2025 at 11:05:03 PM UTC-8 Alon Bar-Lev wrote:
> Hi,
>
> Has anyone encountered an issue in which tags are partially visible to users and succeeded to solve this without allowing refs/*?
>
> I don't have a good answer, but I also have encountered this issue on Gerrit 3.11.1. My solution was to allow Read on refs/*. In my case, I could tell from ls-user-refs that the user could read the branch that contains the commit the tag points to, but still he could not see the tag. I posted about it on the Gerrit Discord on June 5, 2025: https://discord.com/channels/775374026587373568/775374026587373571/1380321249422737571
The visibility of tags is a lot more complex than the visibility on any other refs.
Instead of just maching the ref name, it is also based on reachability by visible branches.
Have you tried creating a branch that points to the SHA1 of the tag and it is visible by the user?
If that shows the tags, then it means that you have a reachability issue.
Hi Luca,Thank you for the suggestion, after creating a branch out of the tag v0.3.2 with name stable-alon, the user sees the tag.I do not understand the reachability issue.
On Tuesday, January 6, 2026 at 12:10:30 PM UTC+1 Alon Bar-Lev wrote:On Tue, 6 Jan 2026 at 08:03, Luca Milanesio <luca.mi...@gmail.com> wrote:
> On 6 Jan 2026, at 00:25, 'Kenyon Ralph' via Repo and Gerrit Discussion <repo-d...@googlegroups.com> wrote:
>
> On Monday, December 29, 2025 at 11:05:03 PM UTC-8 Alon Bar-Lev wrote:
> Hi,
>
> Has anyone encountered an issue in which tags are partially visible to users and succeeded to solve this without allowing refs/*?
>
> I don't have a good answer, but I also have encountered this issue on Gerrit 3.11.1. My solution was to allow Read on refs/*. In my case, I could tell from ls-user-refs that the user could read the branch that contains the commit the tag points to, but still he could not see the tag. I posted about it on the Gerrit Discord on June 5, 2025: https://discord.com/channels/775374026587373568/775374026587373571/1380321249422737571
The visibility of tags is a lot more complex than the visibility on any other refs.
Instead of just maching the ref name, it is also based on reachability by visible branches.
Have you tried creating a branch that points to the SHA1 of the tag and it is visible by the user?
If that shows the tags, then it means that you have a reachability issue.
Hi Luca,Thank you for the suggestion, after creating a branch out of the tag v0.3.2 with name stable-alon, the user sees the tag.I do not understand the reachability issue.To me this smells like a reachability bug for lightweight tags. It could also be an issue with the git_tags cache. or a combination of the two.
(we don't allow lightweight tags on our instance because they tend to lead into corner-cases, and also lacks the traceability of annotated tags)I would guess that the reason the stable-alon branch make the tag visible is because it references the same commit as the v0.3.2 tag.
You could try to delete stable-alon and create a new branch to a child commit of 78bdd2742169d2b281bd7cd0455f4301d580c767.My guess is that the tag stops being visible.If the tag remains visible it could be that the tag is still in the git_tags cache because your stable-alon branch worked around the visibility bug and added it to the cache.
To view this discussion visit https://groups.google.com/d/msgid/repo-discuss/CAOazyz0cXNFHWUjH7d2Jb%2BEhW-PvtrC8%3DTv%3DXFwLQmx6KzuY8A%40mail.gmail.com.
On Wednesday, January 7, 2026 at 9:11:49 AM UTC+1 Sven Selberg wrote:On Tuesday, January 6, 2026 at 12:10:30 PM UTC+1 Alon Bar-Lev wrote:On Tue, 6 Jan 2026 at 08:03, Luca Milanesio <luca.mi...@gmail.com> wrote:
> On 6 Jan 2026, at 00:25, 'Kenyon Ralph' via Repo and Gerrit Discussion <repo-d...@googlegroups.com> wrote:
>
> On Monday, December 29, 2025 at 11:05:03 PM UTC-8 Alon Bar-Lev wrote:
> Hi,
>
> Has anyone encountered an issue in which tags are partially visible to users and succeeded to solve this without allowing refs/*?
>
> I don't have a good answer, but I also have encountered this issue on Gerrit 3.11.1. My solution was to allow Read on refs/*. In my case, I could tell from ls-user-refs that the user could read the branch that contains the commit the tag points to, but still he could not see the tag. I posted about it on the Gerrit Discord on June 5, 2025: https://discord.com/channels/775374026587373568/775374026587373571/1380321249422737571
The visibility of tags is a lot more complex than the visibility on any other refs.
Instead of just maching the ref name, it is also based on reachability by visible branches.
Have you tried creating a branch that points to the SHA1 of the tag and it is visible by the user?
If that shows the tags, then it means that you have a reachability issue.
Hi Luca,Thank you for the suggestion, after creating a branch out of the tag v0.3.2 with name stable-alon, the user sees the tag.I do not understand the reachability issue.To me this smells like a reachability bug for lightweight tags. It could also be an issue with the git_tags cache. or a combination of the two.
(we don't allow lightweight tags on our instance because they tend to lead into corner-cases, and also lacks the traceability of annotated tags)I would guess that the reason the stable-alon branch make the tag visible is because it references the same commit as the v0.3.2 tag.
You could try to delete stable-alon and create a new branch to a child commit of 78bdd2742169d2b281bd7cd0455f4301d580c767.My guess is that the tag stops being visible.If the tag remains visible it could be that the tag is still in the git_tags cache because your stable-alon branch worked around the visibility bug and added it to the cache.I.e. If it remains visible after you moved the stable-alon branch you could try to clear the git_tags cache (perhaps not viable depending on how large your Gerrit instance is or whether you can replicate the situation in a staging environment).
To view this discussion visit https://groups.google.com/d/msgid/repo-discuss/1699b631-9e2c-43b6-adf0-742baff687ban%40googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/repo-discuss/7EA6261D-9A08-40D1-8735-6A060912F270%40gmail.com.
To view this discussion visit https://groups.google.com/d/msgid/repo-discuss/CAFcKa%3D9S6pxHTxjC_%2BEZB%3DBULPCTj3nEzvHQgA7Kis%3D5NiHaZA%40mail.gmail.com.