Skip to content
This repository was archived by the owner on Dec 28, 2025. It is now read-only.

[Bug] hit white-screen when id value is same but id type are number and string (fe throws exception) #341

@imbajin

Description

@imbajin

Bug Type (问题类型)

dashboard render (前端渲染问题)

Before submit

Environment (环境信息)

  • Server Version: v0.12
  • Hubble Version: v1.6
  • Data Size: 100 vertices, 100 edges

Expected & Actual behavior (期望与实际表现)

当出现顶点 id 同时有数字和字符串, 且数字 id 的值和字符串id 转数字值相同时,hubble 可能认为二者相同, 从而出现重复 id 报错(如下图)

37615fae444b7c54a9d41951a974f85a

此时前端对应出现白屏, 且抛出异常, 后端没有异常日志:
005f318651cca3bb3fa099106dc7c6db

具体代码:
90a9579b160fb0d899b56687f7eea5c7

Vertex/Edge example (问题点 / 边数据举例)

No response

Schema [VertexLabel, EdgeLabel, IndexLabel] (元数据结构)

// 直接 hubble 内执行下列语句就能导入复现点边
graph.schema().propertyKey('name').asText().ifNotExist().create();graph.schema().vertexLabel('folk').properties('name').useCustomizeNumberId().create();graph.schema().edgeLabel('next').sourceLabel('folk').targetLabel('folk').properties('name').create(); g.addV('folk').property(id,1).property('name','A').as('a').addV('folk').property(id,2).property('name','B').as('b').addV('folk').property(id,3).property('name','C').as('c').addV('folk').property(id,4).property('name','D').as('d').addV('folk').property(id,5).property('name','E').as('e').addV('folk').property(id,6).property('name','F').as('f').addE('next').from('a').to('b').property('name','ab').addE('next').from('b').to('c').property('name','bc').addE('next').from('b').to('d').property('name','bd').addE('next').from('c').to('d').property('name','cd').addE('next').from('c').to('e').property('name','ce').addE('next').from('d').to('e').property('name','de').addE('next').from('e').to('f').property('name','ef').addE('next').from('f').to('d').property('name','fd');graph.schema().vertexLabel('str').properties('name').useCustomizeStringId().create();g.addV('str').property(id,"1").property('name','A');

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions