[ 
https://issues.apache.org/jira/browse/TUBEMQ-518?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

xianle cao updated TUBEMQ-518:
------------------------------
    Description: 
appearance:

request url: 

[http://brokerIp:brokerWebPort/broker.htm?method=admin_query_group_offset&topicName=xxx&groupName=xxx&partitionId=0&requireRealOffset=true|http://brokerip:brokerWebPort/broker.htm?method=admin_query_group_offset&topicName=xxx&groupName=xxx&partitionId=0&requireRealOffset=true%27]

response json: 

{"result":false,"errCode":400,"errMsg":"Parameter partitionId value must <= -2"}

the reason for the error:

parameter passing error

solution:

On line 392 of the WebParameterUtils.java file,modify it to

checkIntValueNorms(fieldDef, paramValue, hasMinVal, minValue, hasMaxVal, 
maxValue, result);

  was:
appearance:

curl -X GET 
'[http://brokerIp:brokerWebPort/broker.htm?method=admin_query_group_offset&topicName=xxx&groupName=xxx&partitionId=0&requireRealOffset=true'|http://brokerip:brokerWebPort/broker.htm?method=admin_query_group_offset&topicName=xxx&groupName=xxx&partitionId=0&requireRealOffset=true%27]

response json: 

{"result":false,"errCode":400,"errMsg":"Parameter partitionId value must <= -2"}

the reason for the error:

parameter passing error

solution:

On line 392 of the WebParameterUtils.java file,modify it to 

checkIntValueNorms(fieldDef, paramValue, hasMinVal, minValue, hasMaxVal, 
maxValue, result);


> HTTP interface parameter passing error
> --------------------------------------
>
>                 Key: TUBEMQ-518
>                 URL: https://issues.apache.org/jira/browse/TUBEMQ-518
>             Project: Apache TubeMQ
>          Issue Type: Bug
>          Components: Server
>            Reporter: xianle cao
>            Priority: Major
>
> appearance:
> request url: 
> [http://brokerIp:brokerWebPort/broker.htm?method=admin_query_group_offset&topicName=xxx&groupName=xxx&partitionId=0&requireRealOffset=true|http://brokerip:brokerWebPort/broker.htm?method=admin_query_group_offset&topicName=xxx&groupName=xxx&partitionId=0&requireRealOffset=true%27]
> response json: 
> {"result":false,"errCode":400,"errMsg":"Parameter partitionId value must <= 
> -2"}
> the reason for the error:
> parameter passing error
> solution:
> On line 392 of the WebParameterUtils.java file,modify it to
> checkIntValueNorms(fieldDef, paramValue, hasMinVal, minValue, hasMaxVal, 
> maxValue, result);



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to