Repository: incubator-htrace Updated Branches: refs/heads/master b7f9058ca -> 220a93e65
HTRACE-316. htrace-web: span.js issue: span ID string length is 32, not 36 (Colin Patrick McCabe via iwasakims) Project: http://git-wip-us.apache.org/repos/asf/incubator-htrace/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-htrace/commit/220a93e6 Tree: http://git-wip-us.apache.org/repos/asf/incubator-htrace/tree/220a93e6 Diff: http://git-wip-us.apache.org/repos/asf/incubator-htrace/diff/220a93e6 Branch: refs/heads/master Commit: 220a93e6591404e798f7159ce517cadade170877 Parents: b7f9058 Author: Masatake Iwasaki <[email protected]> Authored: Mon Dec 7 22:05:17 2015 +0900 Committer: Masatake Iwasaki <[email protected]> Committed: Mon Dec 7 22:05:17 2015 +0900 ---------------------------------------------------------------------- htrace-webapp/src/main/webapp/app/string.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-htrace/blob/220a93e6/htrace-webapp/src/main/webapp/app/string.js ---------------------------------------------------------------------- diff --git a/htrace-webapp/src/main/webapp/app/string.js b/htrace-webapp/src/main/webapp/app/string.js index c9c514b..b173e10 100644 --- a/htrace-webapp/src/main/webapp/app/string.js +++ b/htrace-webapp/src/main/webapp/app/string.js @@ -50,9 +50,9 @@ htrace.dateToString = function(val) { // Normalize a span ID into the format the server expects to see-- // i.e. something like 00000000000000000000000000000000. htrace.normalizeSpanId = function(str) { - if (str.length != 36) { + if (str.length != 32) { throw "The length of '" + str + "' was " + str.length + - ", but span IDs must be 36 characters long."; + ", but span IDs must be 32 characters long."; } if (str.search(/[^0-9a-fA-F]/) != -1) { throw "Span IDs must contain only hexadecimal digits, but '" + str +
