Uploaded image for project: 'CapeDwarf'
  1. CapeDwarf
  2. CAPEDWARF-240

Exception thrown on cron definition uses GET parameters

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 2.0.0.CR4
    • Fix Version/s: 2.0.0.CR5
    • Component/s: Cron
    • Labels:
      None
    • Environment:

      Arch Linux -
      CapeDwarf 2.0.0.CR4
      Java version: OpenJDK Runtime Environment (IcedTea 2.5.3) (Arch Linux build 7.u71_2.5.3-1-x86_64)
      OpenJDK 64-Bit Server VM (build 24.65-b04, mixed mode)

    • Steps to Reproduce:
      • Create a <cron> entry that contains a <url> expression like <url>/servlet/path?action=something</url>

      Description

      Exception is raised when a <cron> definition has GET parameters

      JobExecutionException: java.lang.IllegalArgumentException: Tasks with method POST must not contain a query string. Use parameters instead. [See nested exception: java.lang.IllegalArgumentException: Tasks with method POST must not contain a query string. Use parameters instead.

      Example cron definition:
      https://github.com/akvo/akvo-flow/blob/develop/GAE/war/WEB-INF/cron.xml

      Attached the full stack trace.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                alesj Ales Justin
                Reporter:
                iperdomo Iván Perdomo
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: