Verified
Status Update
Comments
sz...@gmail.com <sz...@gmail.com> #2
For the record – I am also impacted, but it seems that this only happens with this specific repository.
```
[sdatko@polluks ~]$ LC_ALL=en_US.UTF-8 git clone "https://gerrithub.io/redhat-openstack/infrared "
Cloning into 'infrared'...
error: RPC failed; HTTP 500 curl 22 The requested URL returned error: 500
fatal: expected 'packfile'
```
For other repos, it works as expected.
```
[sdatko@polluks ~]$ LC_ALL=en_US.UTF-8 git clone "https://gerrithub.io/cue-lang/cue "
Cloning into 'cue'...
remote: Counting objects: 5961, done
remote: Finding sources: 100% (5838/5838)
^C
```
```
[sdatko@polluks ~]$ LC_ALL=en_US.UTF-8 git clone "
Cloning into 'infrared'...
error: RPC failed; HTTP 500 curl 22 The requested URL returned error: 500
fatal: expected 'packfile'
```
For other repos, it works as expected.
```
[sdatko@polluks ~]$ LC_ALL=en_US.UTF-8 git clone "
Cloning into 'cue'...
remote: Counting objects: 5961, done
remote: Finding sources: 100% (5838/5838)
^C
```
lu...@gmail.com <lu...@gmail.com> #3
I have identified the culprit => git clone
operation.
I have reverted the change in production and uploaded a fix. In the meantime gerrithub.io is back to the previous version and the clone is working again.
ap...@google.com <ap...@google.com> #5
Project: gerrit
Branch: stable-3.8
commit f34b770a62f2e0d753c00bcaac79fc89fd35c8d4
Author: Luca Milanesio <luca.milanesio@gmail.com>
Date: Mon May 06 08:50:34 2024
Fix NPE upon Git clone
The Change.getServerid() is flagged as @Nullable and therefore
could lead to a NPE when performing a permission check upon
Gerrit clone.
Bug: Issue 338826950
Release-Notes: Fix NPE during git clone
Change-Id: I23dcc53d8098f6da2fc7e9743586468577d1d677
M java/com/google/gerrit/server/git/ChangesByProjectCacheImpl.java
https://gerrit-review.googlesource.com/424581
Branch: stable-3.8
commit f34b770a62f2e0d753c00bcaac79fc89fd35c8d4
Author: Luca Milanesio <luca.milanesio@gmail.com>
Date: Mon May 06 08:50:34 2024
Fix NPE upon Git clone
The Change.getServerid() is flagged as @Nullable and therefore
could lead to a NPE when performing a permission check upon
Gerrit clone.
Bug:
Release-Notes: Fix NPE during git clone
Change-Id: I23dcc53d8098f6da2fc7e9743586468577d1d677
M java/com/google/gerrit/server/git/ChangesByProjectCacheImpl.java
lu...@gmail.com <lu...@gmail.com> #6
GerritHub.io has been reverted, the fix merged onto stable-3.8 and now the merge-ups to master are in-progress.
ap...@google.com <ap...@google.com> #7
Project: gerrit
Branch: stable-3.8
commit 91746d58a44f41c91169da0f0b8f2f795f7bd36d
Author: Luca Milanesio <luca.milanesio@gmail.com>
Date: Mon May 06 08:50:34 2024
Fix NPE upon Git clone
The Change.getServerid() is flagged as @Nullable and therefore
could lead to a NPE when performing a permission check upon
Gerrit clone.
Bug: Issue 338826950
Release-Notes: Fix NPE during git clone
Change-Id: I7d9978ceb8397c9dde5a41fa92af93bce54bf1d9
M java/com/google/gerrit/server/git/ChangesByProjectCacheImpl.java
https://gerrit-review.googlesource.com/424797
Branch: stable-3.8
commit 91746d58a44f41c91169da0f0b8f2f795f7bd36d
Author: Luca Milanesio <luca.milanesio@gmail.com>
Date: Mon May 06 08:50:34 2024
Fix NPE upon Git clone
The Change.getServerid() is flagged as @Nullable and therefore
could lead to a NPE when performing a permission check upon
Gerrit clone.
Bug:
Release-Notes: Fix NPE during git clone
Change-Id: I7d9978ceb8397c9dde5a41fa92af93bce54bf1d9
M java/com/google/gerrit/server/git/ChangesByProjectCacheImpl.java
Description
** If you are interested in activating a new Support contract, use the
** This is for bugs in Gerrit sites hosted at *.
GerritHub/GitHub username: jirimacku
GerritHub/GitHub projects names: redhat-openstack/infrared
Full URL exhibiting the problem:
Expected behavior: Cloning succeeds
Observed behavior:
$ git clone "ssh://
Cloning into 'infrared'...
fatal: remote error: internal server error
Timestamp when the error occurred (include timezone):
Has this worked before? If yes, when? Yes, always
If applicable: screenshot of erroneous UI element: N/A
If applicable: JavaScript console log (chrome: F12 > Console): N/A
If applicable: Browser (name, version, operating system) N/A
If using git command-line: output of "which git && git --version"
$ which git && git --version
/usr/bin/git
git version 2.44.0