[ 
https://issues.apache.org/jira/browse/CLOUDSTACK-1903?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13641507#comment-13641507
 ] 

ASF subversion and git services commented on CLOUDSTACK-1903:
-------------------------------------------------------------

Commit c8bfbfda31ce0c27e73050231e1d2ec47be6956b in branch refs/heads/master 
from [~pranav.sax...@citrix.com]
[ https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;h=c8bfbfd ]

CLOUDSTACK-1903:Delete event/alerts date parameter handling

                
> API:MS: deleteAlerts API responds with error even though required parameters 
> are specified
> ------------------------------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-1903
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-1903
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the 
> default.) 
>          Components: API, Management Server
>    Affects Versions: 4.2.0
>         Environment: Master # 171
>            Reporter: Parth Jagirdar
>            Assignee: Sanjay Tripathi
>         Attachments: screen 1.jpg, screen 2.jpg, Screen 3.jpg, Screen Shot 
> 2013-04-02 at 9.37.44 PM.png
>
>
> Error 431 is retuned by deleteEvents even though required parameters (Atleast 
> one) ID or Category Or Older than date.
> Refer to FS for more details.
> https://cwiki.apache.org/CLOUDSTACK/ability-to-delete-or-archive-events-and-alerts.html#AbilitytodeleteorarchiveEventsandAlerts-%257B%257DDeleteorArchiveAlerts%257B%257D
> From FS:
> In the above mentioned APIs, id, type and olderthan are optional parameters 
> but while calling the APIs atleast one of them is required.
> Refer to screen attached.
> Following is apilog.log::
> 2013-04-02 21:36:46,291 INFO  [cloud.api.ApiServer] (catalina-exec-5:null) 
> (userId=2 accountId=2 sessionId=0C73E2C61CD035A6DE0166028B4197EC) 
> 10.216.51.174 -- GET 
> command=listAlerts&response=json&sessionkey=EAGzdD1SnlPsoDLFQ9p8sN8Mk3U%3D&listAll=true&page=1&pagesize=20&_=1364963809516
>  200 { "listalertsresponse" : { "count":1 ,"alert" : [  
> {"id":"71fbf30d-74c0-4047-a22e-4049025f4012","type":13,"description":"No 
> usage server process running","sent":"2013-04-02T21:31:51-0700"} ] } }
> 2013-04-02 21:37:00,674 INFO  [cloud.api.ApiServer] (catalina-exec-17:null) 
> (userId=2 accountId=2 sessionId=0C73E2C61CD035A6DE0166028B4197EC) 
> 10.216.51.174 -- GET 
> command=deleteAlerts&response=json&sessionkey=EAGzdD1SnlPsoDLFQ9p8sN8Mk3U%3D&date=2013-04-10&_=1364963823793
>  431 either ids, type or olderthan must be specified
> 2013-04-02 21:37:00,909 INFO  [cloud.api.ApiServer] (catalina-exec-1:null) 
> (userId=2 accountId=2 sessionId=0C73E2C61CD035A6DE0166028B4197EC) 
> 10.216.51.174 -- GET 
> command=listAlerts&response=json&sessionkey=EAGzdD1SnlPsoDLFQ9p8sN8Mk3U%3D&listAll=true&page=1&pagesize=20&_=1364963824042
>  200 { "listalertsresponse" : { "count":1 ,"alert" : [  
> {"id":"71fbf30d-74c0-4047-a22e-4049025f4012","type":13,"description":"No 
> usage server process running","sent":"2013-04-02T21:31:51-0700"} ] } }

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to