Defect #9784

strange behaviour if accessing rest api when not logged in

Added by Terence Mill almost 11 years ago.

Status:NewStart date:
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:REST API
Target version:-
Resolution: Affected version:1.2.1

Description

*Precondition:
  • Authentication required is on
  • Enable REST web service is on
  • Al projects are not public

First test
call url http://server.m.redmine.org/issues.xml
Html pop up for authentification with username/password entry field raises. I enter valid data but dialog pops up again and again ..
As i hit Escape i get following

This page contains the following errors:

error on line 1 at column 1: Extra content at the end of the document
Below is a rendering of the page up to the first error.

Second Test:

Call url http://server.m.redmine.org/issues.xml&key=0874f14ff4da91700ba558ed81fc0405f672c13c return white blank site.

Third Test
Log into http://server.m.redmine.org and do again the First Test
Returns following:

<issues limit="25" type="array" offset="0" total_count="1">
<issue>
<id>1</id>
<project name="test" id="1"/>
<tracker name="Fehler" id="1"/>
<status name="Neu" id="1"/>
<priority name="Normal" id="4"/>
<author name="Redmine Admin" id="2"/>
<subject>test</subject>
<description>test</description>
<start_date>2011-12-13</start_date>
<due_date/>
<done_ratio>0</done_ratio>
<estimated_hours/>
<created_on>2011-12-13T01:21:30+01:00</created_on>
<updated_on>2011-12-13T01:21:48+01:00</updated_on>
</issue>
</issues>

Also available in: Atom PDF