LFS plugin broken on Gerrit 3.13 — IncompatibleClassChangeError (Project.NameKey)

106 views
Skip to first unread message

Valerii Zherebtsov

unread,
Oct 30, 2025, 5:46:38 AMOct 30
to Repo and Gerrit Discussion

Description:

LFS plugin fails on Gerrit 3.13 with a runtime error caused by an internal API change in com.google.gerrit.entities.Project.NameKey.
The plugin throws IncompatibleClassChangeError when accessing any LFS endpoint (e.g. /lfs~lfs:config-project).


Steps to Reproduce:

  1. Deploy Gerrit 3.13.

  2. Install the current LFS plugin (plugins/lfs built from upstream).

  3. Access any LFS REST endpoint such as:

    GET /projects/<project>/lfs~lfs:config-project
  4. Observe Gerrit logs.


Expected Result:

LFS plugin should load normally and allow project LFS configuration requests without error.


Actual Result:

The following error appears in the Gerrit logs:

java.lang.IncompatibleClassChangeError: Found interface com.google.gerrit.entities.Project$NameKey, but class was expected at com.googlesource.gerrit.plugins.lfs.LfsProjectsConfig.getForProject(LfsProjectsConfig.java:75)

Additional Information:

  • The issue occurs because Project.NameKey was refactored from a class to an interface in Gerrit 3.13.

  • Updating the plugin code to use Project.nameKey(...) and resource.getNameKey() resolves the issue locally.

  • Requesting creation of a stable-3.13 branch or an official rebuild of the LFS plugin for Gerrit 3.13.

Luca Milanesio

unread,
Oct 30, 2025, 10:59:30 AMOct 30
to Repo and Gerrit Discussion, Luca Milanesio
Hi Valerii,

Thanks for your report, this isn’t a ticketing system or an enterprise support channel, but a mailing list where people are helping each other.
Can you please report this issue in the Gerrit Code Review issue tracker at [1]?

From the additional information, I see you’ve fixed the issue already.
You can simply create a change for review on [2].

HTH

Luca.


--
--
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/638b848e-1e9d-4545-99df-0ceedaf0fe80n%40googlegroups.com.

cdesai

unread,
Nov 15, 2025, 7:46:16 AM (13 days ago) Nov 15
to Repo and Gerrit Discussion
Fixed with a plugin rebuild, as noted in https://issues.gerritcodereview.com/issues/456225708

However, be sure to re-download the latest version, the plugin manager doesn't pick up the update as noted in #3 above.
Reply all
Reply to author
Forward
0 new messages