MantisBT - CDash
View Issue Details
0012555CDash(No Category)public2011-11-02 18:522012-02-02 07:21
Jean-Christophe Fillion-Robin 
Julien Jomier 
normalminorhave not tried
resolvedfixed 
 
2.0 
0012555: Asynchronous processing of submission fails with drop site of the form: slicer4.cdash.org

Note that in both of the cases described below, the submission and the queuing of processing jobs are properly done.

In case 1), the queued job are also processed as expected.

Nevertheless, in case 2) the jobs seems not to be processed.

Case 1:

set(CTEST_DROP_METHOD "http")
set(CTEST_DROP_SITE "www.cdash.org/slicer4")
set(CTEST_DROP_LOCATION "/submit.php?project=Slicer4")
set(CTEST_DROP_SITE_CDASH TRUE)

Case 2:

set(CTEST_DROP_METHOD "http")
set(CTEST_DROP_SITE "slicer.cdash.org")
set(CTEST_DROP_LOCATION "/submit.php?project=Slicer4")
set(CTEST_DROP_SITE_CDASH TRUE)

Seems that the code setting currentUri line 211 of do_submit.php is not handling both case adequately.
No tags attached.
Issue History
2011-11-02 18:52Jean-Christophe Fillion-RobinNew Issue
2011-11-02 19:02Jean-Christophe Fillion-RobinNote Added: 0027712
2011-11-03 02:50Julien JomierAssigned To => Julien Jomier
2011-11-03 02:50Julien JomierStatusnew => assigned
2011-11-03 10:19Jean-Christophe Fillion-RobinNote Added: 0027716
2011-11-03 13:49Jean-Christophe Fillion-RobinNote Added: 0027718
2011-11-03 13:50Jean-Christophe Fillion-RobinNote Added: 0027719
2012-02-02 07:21Julien JomierNote Added: 0028449
2012-02-02 07:21Julien JomierStatusassigned => resolved
2012-02-02 07:21Julien JomierFixed in Version => 2.0
2012-02-02 07:21Julien JomierResolutionopen => fixed

Notes
(0027712)
Jean-Christophe Fillion-Robin   
2011-11-02 19:02   
Consider the following syntax instead ... (lead to a similar result but set t drop site and drop location variables properly.


Case 1:
set(CTEST_DROP_SITE "www.cdash.org")
set(CTEST_DROP_LOCATION "/slicer4/submit.php?project=Slicer4")

Case 2:
set(CTEST_DROP_SITE "slicer.cdash.org")
set(CTEST_DROP_LOCATION "/submit.php?project=Slicer4")
(0027716)
Jean-Christophe Fillion-Robin   
2011-11-03 10:19   
JJ,

Just did a test and using the following:

set(CTEST_DROP_SITE "slicer.cdash.org")
set(CTEST_DROP_LOCATION "/submit.php?project=Slicer4")

and it still prevents the job from being processed after being queued.

Since the server is used also for Paraview and VTK, is it safe to change the parameter to "slicer.cdash.org" ? Would it make more send in that case to have a per-project settings ?

I am fine keeping "www.cdash.org/slicer4/submit.php" in my CTestConfig, just keep me posted when things will change.

I updated it back to "www.cdash.org/slicer4/submit.php" last night and it works well today.

See https://github.com/Slicer/Slicer/commit/306407384087e37e8e50e4cad4dcae66d69e2bbe [^]
(0027718)
Jean-Christophe Fillion-Robin   
2011-11-03 13:49   
From Dave Cole> What we need here is a uniform way for CDash to call a script of its
own via curl from its own code. Regardless of the URL used by a client
to get into the code...

I would recommend isolating curl calls to "other cdash" code into a
function and letting that new function construct the correct URL that
is independent of the caller's URL.
(0027719)
Jean-Christophe Fillion-Robin   
2011-11-03 13:50   
JJ> This is very tricky to achieve in a reliable manner. Because of Apache proxy and potential redirection, the server name variable might be completely bogus and sometimes not even accessible locally. I'll check if there is a way to get the full URL, but last time I tried, this broke on some crazy proxy forwarding setup.
(0028449)
Julien Jomier   
2012-02-02 07:21   
After looking into this issue a little bit more, I think I found a nice way (as Dave suggested) to make this more robust. I have pushed the changes to trunk.cdash.org.