Skip to content

[Bug] 创建带versions结尾的图名,会报鉴权失败错误 #2176

@zhangzhuoBYS

Description

@zhangzhuoBYS

Bug Type (问题类型)

other exception / error (其他异常报错)

Before submit

  • 我已经确认现有的 IssuesFAQ 中没有相同 / 重复问题 (I have confirmed and searched that there are no similar problems in the historical issue and documents)

Environment (环境信息)

  • Server Version: 0.12.0(Apache Release Version)

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

经过源码分析发现,在 hugegraph-api/src/main/java/org/apache/hugegraph/api/filter/AuthenticationFilter.java当中设置的WHITE_API_LIST
进行过滤时是使用的path.endsWith(whiteApi)方法,这会导致以versions结尾的请求都会被过滤,抛出鉴权错误

图片

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

No response

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

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions