Skip to content

Commit 734e1ce

Browse files
committed
fix is_deleted bug
1 parent 20569f9 commit 734e1ce

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ From neo4j:5.12.0
22

33
LABEL maintainer="yxxx <yxwuman@gmail.com>"
44

5-
COPY target/bytecodedl-pathfinder-1.0.0.jar /var/lib/neo4j/plugins
5+
COPY target/bytecodedl-pathfinder-1.0.1.jar /var/lib/neo4j/plugins
66

77
ENV NEO4J_AUTH=neo4j/bytecodedl \
88
NEO4J_dbms_security_procedures_unrestricted=bytecodedl.*

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,4 @@
3535
-[releases](https://github.com/BytecodeDL/bytecodedl-pathfinder-neo4j-procedure/releases/)下载最新的jar, 然后放到neo4j的`/var/lib/neo4j/plugins`目录
3636
- 然后在`/var/lib/neo4j/conf/neo4j.conf`增加一行`dbms.security.procedures.unrestricted=bytecodedl.*`
3737
- docker
38-
- `docker pull wuxxxxx/neo4j-server:5.12.0-bytecodedl-pathfinder-1.0.0`
38+
- `docker pull wuxxxxx/neo4j-server:5.12.0-bytecodedl-pathfinder-1.0.1`

src/main/java/com/bytecodedl/pathfinder/FindAnyOnePath.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ public List<Relationship> getFirstMultiDispatch(Path path, String callProperty){
9595
}
9696
Object property = relationship.getProperty(callProperty);
9797
List<Relationship> relationships = startNode.getRelationships(relationship.getType()).stream().filter(
98-
relation ->relation.hasProperty(callProperty) && relation.getProperty(callProperty).equals(property) && !Objects.equals(relation.getProperty("is_deleted", 0), 0)
98+
relation ->relation.hasProperty(callProperty) && relation.getProperty(callProperty).equals(property) && Objects.equals(relation.getProperty("is_deleted", 0), 0)
9999
).collect(Collectors.toList());
100100

101101
if (relationships.size() > 1){

src/test/resources/call_graph.cypher

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ CREATE (S1:Sink1 {method:'sink1'})
1212
CREATE (A)-[:Call {insn:'insnAB'}]->(B),
1313
(A)-[:Call {insn:'insnAC'}]->(C0),
1414
(A)-[:Call {insn:'insnAC'}]->(C1),
15-
(A)-[:Call {insn:'insnAC'}]->(C2),
15+
(A)-[:Call {insn:'insnAC', is_deleted:1}]->(C2),
1616
(C0)-[:Call {insn:'insnC0D'}]->(D),
1717
(C1)-[:Call {insn:'insnC1S'}]->(S),
1818
(C2)-[:Call {insn:'insnC2S'}]->(S),

0 commit comments

Comments
 (0)