Mantis Bug Tracker
 

View Issue Details Jump to Notes ] Wiki ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0010352mantisbtrsspublic2009-04-21 10:332010-06-08 14:08
Reportermatejp 
Assigned To 
PrioritynormalSeverityminorReproducibilityalways
StatusfeedbackResolutionopen 
PlatformIIS6 + SQL Server 2008OSWindows Server 2003 R2 standardOS Version
Product Version1.1.6 
Target VersionFixed in Version 
Summary0010352: RSS feed - XML Parsing Error
DescriptionWhen i try to display RSS feed for all issues (view issues link) in FF or IE7 i've recieve this:

XML Parsing Error: XML or text declaration not at start of entity
Location: http://silj1pfs01/mantis/issues_rss.php?username=xxxxx&key=a9a1ea6c26cca7bdf1dd270f159cac8d [^]
Line Number 3, Column 1:<?xml version="1.0" encoding="utf-8"?>



TagsNo tags attached.
Attached Files? file icon issues_rss.php [^] (6,804 bytes) 2009-07-13 07:20 [Show Content]

- Relationships

-  Notes
User avatar (0022382)
vboctor (administrator)
2009-07-04 04:48

I'm not able to reproduce on this bug tracker. There is two options:

1. It is specific to the contents of one of the issues included in the RSS, i.e. not escaped correctly.

2. It is an issue that has been fixed.

Please provide more details.
User avatar (0022435)
matejp (reporter)
2009-07-07 08:23

I installed Mantis on Microsoft Server 2003 with SQL Server 2008. I did some customization (only to install Mantis in SQL server). When i clicked on RSS icon, i've recieved this error.

I've also tried with another mantis database for testing purposes.

Internet Explorer 8 returns:
"Invalid xml declaration.
 Line: 3 Character: 3

<?xml version="1.0" encoding="utf-8"?>
"

Firefox 3.5 returns:
"XML Parsing Error: XML or text declaration not at start of entity
Location: http://silj1pfs01/mantis/issues_rss.php?username=xxxxx&key=a9a1ea6c26cca7bdf1dd270f159cac8d&project_id=4 [^]
Line Number 3, Column 1:"

Maybe is something wrong with function which creates RSS feeds i dont know.

I can check if you tell me where to look for this function or tell me which functions are responsibile for RSS feeds.
User avatar (0022453)
grangeway (developer)
2009-07-08 18:17

Whats this file look like in notepad?

Paul
User avatar (0022487)
matejp (reporter)
2009-07-13 07:19

I've uploaded "issues_rss.php" i am using.
User avatar (0022733)
ctimmer (reporter)
2009-08-14 11:48

This problem is caused by a blank line (CRLF) in FRONT of the XML text.

Curt
User avatar (0025763)
ecasarero (reporter)
2010-06-08 14:08

I had the same problem. I solved it by adding "php" to the open tag in config_local.php

original: config_local.php

<?
#Comment
?>

modified: config_local.php


<?php
#Comment
?>

The problem was with php config "short open tag" by default is disable and apache did not process this file as php, just dumped the content to the xml breaking it.

- Issue History
Date Modified Username Field Change
2009-04-21 10:33 matejp New Issue
2009-07-04 04:48 vboctor Note Added: 0022382
2009-07-04 04:48 vboctor Status new => feedback
2009-07-07 08:23 matejp Note Added: 0022435
2009-07-08 18:17 grangeway Note Added: 0022453
2009-07-13 07:19 matejp Note Added: 0022487
2009-07-13 07:20 matejp File Added: issues_rss.php
2009-08-14 11:48 ctimmer Note Added: 0022733
2009-08-17 13:23 ctimmer Issue Monitored: ctimmer
2010-06-08 14:08 ecasarero Note Added: 0025763


MantisBT 1.2.2 git master-1.2.x[^]
Copyright © 2000 - 2010 MantisBT Group
Time: 0.2360 seconds.
memory usage: 1,958 KB
Powered by Mantis Bugtracker