View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0006670CDashpublic2008-03-27 18:092008-03-29 16:24
ReporterMike H 
Assigned ToJulien Jomier 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version0.8 
Summary0006670: createRSS.php puts bad link path into the RSS feed items
DescriptionIn SVN revision 785, selecting one of the items in the RSS feed tries to load a bad URL:

http://<hostname>/cdash/submit.php/index.php?project=<project [^] ID>

I believe the intent was to load up the index page for the project in question, like:

http://<hostname>/cdash/index.php?project=<project [^] ID>

If that's true, then one fix would be to just call "dirname" on the $_SERVER['SCRIPT_NAME'] value on line 52 of createRSS.php:

===================================================================
--- createRSS.php (revision 785)
+++ createRSS.php (working copy)
@@ -49,7 +49,7 @@
    return;
    }
    
- $urlbase = "http://".$_SERVER['HTTP_HOST'].$_SERVER['SCRIPT_NAME']; [^]
+ $urlbase = "http://".$_SERVER['HTTP_HOST'].dirname($_SERVER['SCRIPT_NAME']); [^]
   
   fputs($fp,"<?xml version=\"1.0\" encoding=\"ISO-8859-1\" ?>\n");
   fputs($fp,"<rss version=\"2.0\" xmlns:dc=\"http://purl.org/dc/elements/1.1/\">\n" [^]);
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0010982)
Julien Jomier (manager)
2008-03-29 16:24

Fixed in SVN and the 0.8 branch. Thanks for report.

 Issue History
Date Modified Username Field Change
2008-03-27 18:09 Mike H New Issue
2008-03-29 16:19 Julien Jomier Status new => assigned
2008-03-29 16:19 Julien Jomier Assigned To => Julien Jomier
2008-03-29 16:24 Julien Jomier Status assigned => closed
2008-03-29 16:24 Julien Jomier Note Added: 0010982
2008-03-29 16:24 Julien Jomier Resolution open => fixed
2008-03-29 16:24 Julien Jomier Fixed in Version => 0.8


Copyright © 2000 - 2018 MantisBT Team