This is an automated email from the ASF dual-hosted git repository. spmallette pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/tinkerpop.git
commit 5538770599a979212b56e2dcb77308a60ff656a4 Author: Stephen Mallette <[email protected]> AuthorDate: Wed Jun 2 08:29:43 2021 -0400 TINKERPOP-2565 Fixed bug with vertexLabelKey validation in GraphMLWriter CTR --- CHANGELOG.asciidoc | 1 + .../apache/tinkerpop/gremlin/structure/io/graphml/GraphMLWriter.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.asciidoc b/CHANGELOG.asciidoc index 46fdeb1..42170ce 100644 --- a/CHANGELOG.asciidoc +++ b/CHANGELOG.asciidoc @@ -23,6 +23,7 @@ image::https://raw.githubusercontent.com/apache/tinkerpop/master/docs/static/ima [[release-3-4-12]] === TinkerPop 3.4.12 (Release Date: NOT OFFICIALLY RELEASED YET) +* Fixed bug in the `vertexLabelKey` validation for `GraphMLWriter` which was inadvertently validating the `edgeLabelKey`. [[release-3-4-11]] === TinkerPop 3.4.11 (Release Date: May 3, 2021) diff --git a/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/io/graphml/GraphMLWriter.java b/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/io/graphml/GraphMLWriter.java index 3991e4e..8cca6fa 100644 --- a/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/io/graphml/GraphMLWriter.java +++ b/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/io/graphml/GraphMLWriter.java @@ -173,7 +173,7 @@ public final class GraphMLWriter implements GraphWriter { if (identifiedEdgeKeyTypes.containsKey(this.edgeLabelKey)) throw new IllegalStateException(String.format("The edgeLabelKey value of[%s] conflicts with the name of an existing property key to be included in the GraphML", this.edgeLabelKey)); - if (identifiedEdgeKeyTypes.containsKey(this.edgeLabelKey)) + if (identifiedVertexKeyTypes.containsKey(this.vertexLabelKey)) throw new IllegalStateException(String.format("The vertexLabelKey value of[%s] conflicts with the name of an existing property key to be included in the GraphML", this.vertexLabelKey)); identifiedEdgeKeyTypes.put(this.edgeLabelKey, GraphMLTokens.STRING);
