b7ca6a235122ec881dcdb6951fe3fc1fcab49acd max Wed Oct 1 09:37:20 2025 -0700 fixing error 500 on /list/files in the API, no ticket number yet as this is a build patch which requires a commit-ID diff --git src/hg/hubApi/apiUtils.c src/hg/hubApi/apiUtils.c index 21b6a2c6260..b9cc476def1 100644 --- src/hg/hubApi/apiUtils.c +++ src/hg/hubApi/apiUtils.c @@ -728,31 +728,31 @@ { chromAliasSetupBb(NULL, absFileName); } } } static struct dyString *textOutput = NULL; void textLineOut(char *lineOut) /* accumulate text lines for output in the dyString textOutput */ { if (NULL == textOutput) { textOutput = dyStringNew(0); - boolean doContext = (cgiInt(argSkipContext)==0); + boolean doContext = (cgiOptionalInt(argSkipContext, 0)==0); if (doContext) { char outString[1024]; time_t timeNow = time(NULL); struct tm tm; gmtime_r(&timeNow, &tm); safef(outString, sizeof(outString), "# downloadTime: \"%d:%02d:%02dT%02d:%02d:%02dZ\"", 1900+tm.tm_year, tm.tm_mon+1, tm.tm_mday, tm.tm_hour, tm.tm_min, tm.tm_sec); dyStringPrintf(textOutput, "%s\n", outString); safef(outString, sizeof(outString), "# downloadTimeStamp: %lld", (long long) timeNow); dyStringPrintf(textOutput, "%s\n", outString); }