0cc13b8d89d2401e761cf8a093846dab7401070b galt Fri Jan 18 17:51:19 2013 -0800 Set the udc cache dir correctly because otherwise when a saved session that has bigDataUrl custom tracks gets loaded it will incorrectly use the path /tmp/udcCache/, however the path it should use is in hg.conf and calling setUdcCacheDir() will read and use that setting udc.cacheDir=../trash/udcCache diff --git src/hg/hgSession/hgSession.c src/hg/hgSession/hgSession.c index 69c8305..23e2439 100644 --- src/hg/hgSession/hgSession.c +++ src/hg/hgSession/hgSession.c @@ -5,30 +5,31 @@ #include "htmshell.h" #include "cheapcgi.h" #include "linefile.h" #include "net.h" #include "textOut.h" #include "hCommon.h" #include "hui.h" #include "cart.h" #include "jsHelper.h" #include "web.h" #include "hdb.h" #include "ra.h" #include "wikiLink.h" #include "customTrack.h" #include "customFactory.h" +#include "udc.h" #include "hgSession.h" void usage() /* Explain usage and exit. */ { errAbort( "hgSession - Interface with wiki login and do session saving/loading.\n" "usage:\n" " hgSession <various CGI settings>\n" ); } /* Global variables. */ struct cart *cart; @@ -1275,20 +1276,21 @@ char *message = doUpdateSessions(); doMainPage(message); } cleanHgSessionFromCart(cart); /* Save the cart state: */ cartCheckout(&cart); } int main(int argc, char *argv[]) /* Process command line. */ { long enteredMainTime = clock1000(); htmlPushEarlyHandlers(); cgiSpoof(&argc, argv); +setUdcCacheDir(); hgSession(); cgiExitTime("hgSession", enteredMainTime); return 0; }