zend-patterns / ZendServerSDK

Pure ZF2 CLI for zpk creation and webapi client.
BSD 3-Clause "New" or "Revised" License
22 stars 17 forks source link

Use of monitorCountIssuesListPredefinedFilter #55

Closed ericovasconcelos closed 9 years ago

ericovasconcelos commented 9 years ago

I've tried to use this method but everytime I get a response stating that the method is not available on the server.

object(stdClass)#460 (3) { ["zendServerAPIResponse"]=> string(34) "http://www.zend.com/server/api/1.2" ["requestData"]=> object(stdClass)#475 (2) { ["apiKeyName"]=> string(7) "Unknown" ["method"]=> string(7) "default" } ["errorData"]=> object(stdClass)#482 (2) { ["errorCode"]=> string(13) "unknownMethod" ["errorMessage"]=> string(91) "The requested action 'monitorCountIssuesListPredefinedFilter' does not exist on this server" } } {"result":null}

It seams it reverts to use of the version 1.2 of the API in which it doesn't exists. But I've tried to force the use of version 1.7 adding the ';version=1.7; to the headers (Content-type and Accept) but it still reverts to 1.2.

I might be doing something wrong on the versioning negotiation, or there is a bug the reverts to 1.2 on this method. I've tried it on versions 6.3 and 8 of Zend Server.

slaff commented 9 years ago

I can confirm the issue. Most probably the documentation (http://files.zend.com/help/Zend-Server/zend-server.htm#the_monitorcountissueslistpredefinedfilter_method.htm) is wrong.

ericovasconcelos commented 9 years ago

Hi Slaff, i've tried the new code and worked perfectly. Thanks.