[ https://issues.apache.org/jira/browse/OOZIE-1481?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13728305#comment-13728305 ]
Rohini Palaniswamy commented on OOZIE-1481: ------------------------------------------- V1JobServlet: int len = (lenStr != null) ? Integer.parseInt(lenStr) : 0; len = (len < 1) ? defaultLen : len; should be len < 0. But also need to change OozieCLI to not pass 0 by default. > Getting a coordinator job info with len=0 should return 0 actions > ----------------------------------------------------------------- > > Key: OOZIE-1481 > URL: https://issues.apache.org/jira/browse/OOZIE-1481 > Project: Oozie > Issue Type: Bug > Components: coordinator > Reporter: Robert Kanter > > If you fetch a URL such as: > {noformat} > http://localhost:11000/oozie/v1/job/0000002-130731172618471-oozie-oozi-C?len=1 > {noformat} > you'll get the job info for the coordinator job, and 1 of its actions. > If you only want to get the info for the coordinator job itself and don't > care about the actions, it seems logical that {{len=0}} should do this; > however, it seems to be ignored and gives you all actions instead. > {noformat} > http://localhost:11000/oozie/v1/job/0000002-130731172618471-oozie-oozi-C?len=0 > {noformat} > should return 0 actions. -- 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