0cafd2babfa1a47969f1a138da19600bbcfdd1e6 jcasper Mon Sep 30 09:17:46 2024 -0700 Expanding error for local udc load when udc.localDir hasn't been set, no ticket diff --git src/hg/lib/customFactory.c src/hg/lib/customFactory.c index a2fb9b8..b3a8bbb 100644 --- src/hg/lib/customFactory.c +++ src/hg/lib/customFactory.c @@ -172,31 +172,33 @@ // we allow bigDataUrl's to point to trash (or sessionDataDir, if configured) char *sessionDataDir = cfgOption("sessionDataDir"); char *sessionDataDirOld = cfgOption("sessionDataDirOld"); if (startsWith(trashDir(), url) || (isNotEmpty(sessionDataDir) && startsWith(sessionDataDir, url)) || (isNotEmpty(sessionDataDirOld) && startsWith(sessionDataDirOld, url))) return TRUE; if (udcIsResolvable(url)) return TRUE; char *prefix = cfgOption("udc.localDir"); if (prefix == NULL) { if (doAbort) - errAbort("Only network protocols http, https, or ftp allowed in bigDataUrl: '%s'", url); + errAbort("Only network protocols http, https, or ftp allowed in bigDataUrl: '%s', unless " \ + "the udc.localDir variable is set to a prefix of the file's path in the " \ + "cgi-bin/hg.conf of this UCSC Genome Browser", url); return FALSE; } else if (!startsWith(prefix, url)) { if (doAbort) errAbort("bigDataUrl '%s' is not an internet URL but udc.localDir is set in cgi-bin/hg.conf of this " \ "UCSC Genome Browser, so the bigDataUrl can be a file " \ "on the local hard disk of this UCSC Genome Browser instance. However, for such a file path to be acceptable from " "the local file system, bigDataUrl has to start with the prefix set by udc.localDir, which is '%s' on this Genome Browser.", url, prefix); return FALSE; } else return TRUE; }