1bb62b14d1241d1bebf9f0665c2eb7e0a2334ca5 braney Thu Oct 11 13:01:58 2012 -0700 this resolves the '+' in track names problem (#9254) by modifying all hub track names by changing all characters that aren't alphanumeric or dash or underbar into underbars. I also added code to check for track name overlaps, and confirmed that none of the hubs in hgcentral.hubStatus would end up with duplicated track names because of this munging. I also changed the udcTimeout in hubCheck to be 1 second. diff --git src/hg/inc/trackHub.h src/hg/inc/trackHub.h index 2e70c22..15c192b 100644 --- src/hg/inc/trackHub.h +++ src/hg/inc/trackHub.h @@ -77,18 +77,19 @@ /* Return full path (in URL form if it's a remote hub) given * path possibly relative to hubUrl. Do a freeMem of result * when done. */ void trackHubGenomeFree(struct trackHubGenome **pGenome); /* Free up genome info. */ void trackHubGenomeFreeList(struct trackHubGenome **pList); /* Free a list of dynamically allocated trackHubGenome's */ int trackHubCheck(char *hubUrl, struct dyString *errors, boolean checkTracks); /* trackHubCheck - Check a track data hub for integrity. Put errors in dyString. * if checkTracks is TRUE, individual tracks are checked * return 0 if hub has no errors, 1 otherwise */ - +void trackHubPolishTrackNames(struct trackHub *hub, struct trackDb *tdbList); +/* remove all the special characters from trackHub track names */ #endif /* TRACKHUB_H */