You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hugegraph.apache.org by GitBox <gi...@apache.org> on 2022/10/30 14:25:10 UTC

[GitHub] [incubator-hugegraph] imbajin commented on a diff in pull request #1996: fix: User-controlled data in numeric cast [#1987]

imbajin commented on code in PR #1996:
URL: https://github.com/apache/incubator-hugegraph/pull/1996#discussion_r1008873652


##########
hugegraph-api/src/main/java/com/baidu/hugegraph/api/traversers/AdamicAdarAPI.java:
##########
@@ -67,7 +67,7 @@ public String get(@Context GraphManager manager,
                       @QueryParam("max_degree")
                       @DefaultValue(DEFAULT_MAX_DEGREE) long maxDegree,
                       @QueryParam("limit")
-                      @DefaultValue(DEFAULT_ELEMENTS_LIMIT) long limit) {
+                      @DefaultValue(DEFAULT_ELEMENTS_LIMIT) int limit) {

Review Comment:
   yes,I also found this problem~ 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@hugegraph.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org