On Tuesday, May 24, 2016 14:22 David Pursehouse <
david.pu...@gmail.com> wrote:
> On Tue, May 24, 2016 at 8:35 PM Butler, Stephen <
Stephen...@hamburgsud.com> wrote:
> > From: David Pursehouse [mailto:
david.pu...@gmail.com]
> > > Sent: Tuesday, May 24, 2016 3:22
> > > To: Butler, Stephen; Repo and Gerrit Discussion
> > > Subject: Re: 2.12.2: REST API for tags sometimes returns an empty list
> > >
> > > On Tue, May 24, 2016 at 9:30 AM Steve Butler <
stephen...@hamburgsud.com> wrote:
> > > > Hi,
> > > >
> > > > Has anyone else seen this behavior?
> > > >
> > > > On two different Gerrit servers, both running 2.12.2, we often get wrong answers for a simple "give me TagInfo JSON for all tags in project" request.
> > > >
> > > You could also try to call the "Get Tag" REST API for one of the tags that are not shown:
> > >
> > > curl --digest --netrc '
https://gerrit.example.com/gerrit/a/projects/Foo%2FBar/tags/my-missing-tag'
> >
> > Listing individual tags (via 'GET /projects/{project-name}/tags/{tag-id}') is working fine, as is the Gerrit UI's "Tags" view. So the underlying data seems to be sound.
> >
> > >
> > > Also, are you seeing anything in the error logs server side?
> >
> > There were no new entries in the server error_log file. The /tags/ API without parameters seems to use parameter values cached from an earlier request.
>
> Sounds like a bug. Just out of interest, do you see the same kind of behaviour with the /branches/ API? The reason I ask is because the tags API implementation was based largely on the /branches/ API so it's possible they both suffer the same problem. (although if that's the case I'm surprised it hasn't been reported before).
>