Project

General

Profile

Actions

Defect #6327

closed

Error parsing svn output: #<REXML::ParseException: No close tag for /lists/list>

Added by Joonas Pulakka over 13 years ago. Updated about 13 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
SCM
Target version:
-
Start date:
2010-09-08
Due date:
% Done:

0%

Estimated time:
Resolution:
Affected version:

Description

  • Redmine: 1.0.1
  • Database version: MySQL 5.0
  • Ruby version: 1.8.7
  • Rails version: 2.3.5 (the one that came with Redmine in the vendor/ directory)
  • Subversion: 1.5.1

I'm trying to access repository using file:/// url (the repository is in the same server as Redmine). It doesn't work. redmine/log/production.log contains the following:

Shelling out: svn list --xml 'file:///var/svn/repository/'@HEAD --no-auth-cache --non-interactive
Error parsing svn output: #<REXML::ParseException: No close tag for /lists/list>
/usr/lib/ruby/1.8/rexml/parsers/treeparser.rb:28:in `parse'
/usr/lib/ruby/1.8/rexml/document.rb:228:in `build'
/usr/lib/ruby/1.8/rexml/document.rb:43:in `initialize'
etc...

When I run that exact svn command from shell as www-data user (as Redmine runs under Passenger), I get the following output, which seems perfectly valid:

poenttoe:/usr/local/lib/redmine-1.0.1$ svn list --xml 'file:///var/svn/repository/'@HEAD --no-auth-cache --non-interactive
<?xml version="1.0"?>
<lists>
<list
   path="file:///var/svn/repository">
<entry
   kind="dir">
<name>app</name>
<commit
   revision="34">
<author>jpulakka</author>
<date>2010-09-07T12:55:46.978106Z</date>
</commit>
</entry>
<entry
   kind="dir">
<name>components</name>
<commit
   revision="46">
<author>jpulakka</author>
<date>2010-09-07T13:53:52.115011Z</date>
</commit>
</entry>
<entry
   kind="dir">
<name>lib</name>
<commit
   revision="33">
<author>jpulakka</author>
<date>2010-09-07T12:41:20.975111Z</date>
</commit>
</entry>
</list>
</lists>

Seems somewhat similar to #3929 and #6312.

Actions

Also available in: Atom PDF