incubator-hugegraph
incubator-hugegraph copied to clipboard
[Bug] 创建带`versions`结尾的图名,会报鉴权失败错误
Bug Type (问题类型)
other exception / error (其他异常报错)
Before submit
- [X] 我已经确认现有的 Issues 与 FAQ 中没有相同 / 重复问题 (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