Skip to content

toString id clashes with parameters of type Long (SDN 7.1.3/7.1.4) #2872

Closed
@sobczynskipio

Description

@sobczynskipio

Hi, seems like I've found one bug which really blocks stepping of SDN in my project (springboot 3.1.3 -> 3.1.4):

There's been a change between SDN 7.1.3 and 7.1.4 which made method name derived queries return empty results for entities marked as containsPossibleCircles in Neo4jTemplate.

In Neo4jTemplate class, there's a TemplateSupport.convertToLongIdOrStringElementId(nodeIds) invocation which makes query params of type Long always NOT match with entity nodeIds. See screenshot attached. SDN logic somehow get's there only for entities for which containsPossibleCircles is set to true in Neo4jTemplate. My entities don't really contain circles in relationships but this probably does not matter. Repository methods like findAll or findById always give empty results for those cause SDN compares stringified ids with Long params. It works in SDN 7.1.3 and is broken in 7.1.4 and later

Regards !

SDN-ids-issue

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions