<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Task query REST method not allowed error - bug? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/task-query-rest-method-not-allowed-error-bug/m-p/131120#M92122</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It could be I'm missing something, but can't find what. I'm trying to query tasks via REST but I'm getting the following error: &lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;{"errorMessage":"Method Not Allowed","statusCode":405}&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The uri I'm using is: host/service/repository/tasks?sort=id&amp;amp;start=1&amp;amp;size=5&amp;amp;order=asc&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The JSON request object looks like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;taskSearch: {"assignee":null,"createTime":null,"delegationState":null,"description":null,"dueDate":null,"execution":null,"id":null,"name":null,"owner":null,"parentTask":null,"priority":null,"processDefinition":null,"processInstance":null,"taskDefinitionKey":null,"url":null,"variables":null,"nameLike":"iv","unassigned":null,"candidateUser":null,"candidateGroup":null,"involvedUser":null,"taskDefinitionKeyLike":null,"processInstanceId":null,"processInstanceBusinessKey":null,"createdBefore":null,"createdAfter":null,"dueBefore":null,"dueAfter":null,"excludeSubTasks":null,"active":null,"includeTaskLocalVariables":null,"includeProcessVariables":null}&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and I'm using POST method as indicated in the userguide (saw that in code as well).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can anyone tell me if I missed something or there is some kind of bug in the task query rest service?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Ivan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 29 Jun 2013 10:07:53 GMT</pubDate>
    <dc:creator>augustus</dc:creator>
    <dc:date>2013-06-29T10:07:53Z</dc:date>
    <item>
      <title>Task query REST method not allowed error - bug?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/task-query-rest-method-not-allowed-error-bug/m-p/131120#M92122</link>
      <description>It could be I'm missing something, but can't find what. I'm trying to query tasks via REST but I'm getting the following error: {"errorMessage":"Method Not Allowed","statusCode":405}‍The uri I'm using is: host/service/repository/tasks?sort=id&amp;amp;start=1&amp;amp;size=5&amp;amp;order=ascThe JSON request obje</description>
      <pubDate>Sat, 29 Jun 2013 10:07:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/task-query-rest-method-not-allowed-error-bug/m-p/131120#M92122</guid>
      <dc:creator>augustus</dc:creator>
      <dc:date>2013-06-29T10:07:53Z</dc:date>
    </item>
    <item>
      <title>Re: Task query REST method not allowed error - bug?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/task-query-rest-method-not-allowed-error-bug/m-p/131121#M92123</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;That's an error in the docs, thanks for spotting that. Use the POST query/tasks instead with the JSON-body, like the query/executions and query/process-instances.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Extract from org.activiti.rest.application.RestServicesInit class, contains all paths for rest-services:&lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;router.attach("/query/tasks", TaskQueryResource.class);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; router.attach("/query/process-instances", ProcessInstanceQueryResource.class);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; router.attach("/query/executions", ExecutionQueryResource.class);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; router.attach("/query/historic-process-instances", HistoricProcessInstanceQueryResource.class);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; router.attach("/query/historic-task-instances", HistoricTaskInstanceQueryResource.class);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; router.attach("/query/historic-activity-instances", HistoricActivityInstanceQueryResource.class);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; router.attach("/query/historic-variable-instances", HistoricVariableInstanceQueryResource.class);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; router.attach("/query/historic-detail", HistoricDetailQueryResource.class);&lt;/CODE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Jul 2013 08:51:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/task-query-rest-method-not-allowed-error-bug/m-p/131121#M92123</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2013-07-01T08:51:00Z</dc:date>
    </item>
    <item>
      <title>Re: Task query REST method not allowed error - bug?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/task-query-rest-method-not-allowed-error-bug/m-p/131122#M92124</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks, found few more errors in the docs. I'll post them to a new post once I'm done.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jul 2013 19:12:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/task-query-rest-method-not-allowed-error-bug/m-p/131122#M92124</guid>
      <dc:creator>augustus</dc:creator>
      <dc:date>2013-07-03T19:12:54Z</dc:date>
    </item>
    <item>
      <title>Re: Task query REST method not allowed error - bug?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/task-query-rest-method-not-allowed-error-bug/m-p/131123#M92125</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Great… You can also create them as a pull-request or patch-file &lt;img id="smileywink" class="emoticon emoticon-smileywink" src="https://connect.hyland.com/i/smilies/16x16_smiley-wink.png" alt="Smiley Wink" title="Smiley Wink" /&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jul 2013 08:17:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/task-query-rest-method-not-allowed-error-bug/m-p/131123#M92125</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2013-07-04T08:17:42Z</dc:date>
    </item>
  </channel>
</rss>

