Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-13078

Unable to use getIssuesFromFilter via Perl SOAP

    XMLWordPrintable

Details

    • Support Request
    • Resolution: Handled by Support
    • Medium
    • None
    • 3.7.4
    • None
    • None
    • Client: linux/perl 5.8
      Server: linux, 1.5.0_06 JDK

    Description

      I have had no luck simply listing issues from a filter using Perl. I have been able to do other things with Perl/SOAP so it seems to me this is a bug in JIRA.

      The error I get is "org.xml.sax.SAXException: Bad types (int -> class java.lang.String)".

      Here is the code to reproduce in perl:

      #!/usr/bin/perl

      $jiraurl="http://jira.ps";

      ($user,$pass)=@ARGV;

      use SOAP::Lite;
      use Data::Dumper;

      ($user,$pass,$filterid)=@ARGV;

      $soap = SOAP::Lite->proxy("$jiraurl/rpc/soap/jirasoapservice-v2?wsdl") or die $!;
      $auth = $soap->login($user,$pass)->result();

      $result = $soap->getIssuesFromFilter($auth, $filterid);

      print join ', ',
      $result->faultcode,
      $result->faultstring;
      print "\n";

      $filters = $soap->getSavedFilters($auth)->result();
      for $filter (@$filters) {
      print $filter->

      {"name"}

      . ":'" . $filter->

      {"id"}

      . "'\n";
      }

      Output is:

      $ ./jiratest.pl [user] [pass] 10080
      soapenv:Server.userException, org.xml.sax.SAXException: Bad types (int -> class java.lang.String)
      Dealer 4.2:'10048'
      MDS 4.2:'10049'
      RecentActivity:'10080'

      $ ./jiratest.pl [user] [pass]
      soapenv:Server.userException, java.lang.NumberFormatException: null
      Dealer 4.2:'10048'
      MDS 4.2:'10049'
      RecentActivity:'10080'

      If I change my code to use a bare integer argument to the method I get the same error.

      The perl has the "getSavedFilters" code to show that Perl/SOAP is working, and that the 10080 code is a valid code.

      Thanks,
      Stuart

      Attachments

        Activity

          People

            yuenchi.lian Yuen-Chi Lian [Atlassian]
            b30a591184b0 S Popejoy
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: