You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Internal server error on GET /api/v1/project when portfolio ACL is enabled and excludeInactive parameter is omitted or false #2583
Requesting the /api/v1/project endpoint without any query parameters, or with their respective values being false, while portfolio access control is enabled, causes internal server errors. Inspecting the logs reveals:
javax.jdo.JDOUserException: Method/Identifier expected at character 1 in "&& ( accessTeams.contains(:team0) )"
at org.datanucleus.api.jdo.JDOAdapter.getJDOExceptionForNucleusException(JDOAdapter.java:698)
at org.datanucleus.api.jdo.JDOQuery.executeInternal(JDOQuery.java:456)
at org.datanucleus.api.jdo.JDOQuery.executeWithMap(JDOQuery.java:331)
at alpine.persistence.AbstractAlpineQueryManager.getCount(AbstractAlpineQueryManager.java:397)
at alpine.persistence.AbstractAlpineQueryManager.execute(AbstractAlpineQueryManager.java:238)
at org.dependencytrack.persistence.ProjectQueryManager.getProjects(ProjectQueryManager.java:119)
at org.dependencytrack.persistence.QueryManager.getProjects(QueryManager.java:338)
at org.dependencytrack.resources.v1.ProjectResource.getProjects(ProjectResource.java:95)
...
The issue appears to be a missing non-empty check in the preprocessACLs method:
Activity
Fix invalid query filter assembly
Fix invalid query filter assembly
tomkuipers commentedon Mar 13, 2023
Any updates about an upcoming release containing this specific fix? Our pipelines fail because of this issue when using mvn plugin https://github.com/pmckeown/dependency-track-maven-plugin
Squashed commit of the following:
Squashed commit of the following:
Squashed commit of the following:
github-actions commentedon Apr 15, 2023
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Fix invalid query filter assembly