google / gitiles

A simple browser for Git repositories.
https://gerrit.googlesource.com/gitiles/
Other
582 stars 174 forks source link

Gerrit is crashing trying to render a markdown page (I think) #70

Closed spearce closed 7 years ago

spearce commented 7 years ago

Originally reported on Google Code with ID 75

Go to:

https://chromium.googlesource.com/chromium/src/+/master/tools/gn/docs/reference.md

and get a 500 server error.

This file is probably quite large, and it's entirely possible that there's some bad
markdown in it somewhere ...

Reported by None on 2015-04-17 17:07:04

spearce commented 7 years ago
Go to:

https://chromium.googlesource.com/chromium/src/+/master/tools/gn/docs/reference.md

and get a 500 server error.

This file is probably quite large, and it's entirely possible that there's some bad
markdown in it somewhere ...

Reported by None on 2015-04-17 17:07:04

spearce commented 7 years ago
Okay, it looks like the [TOC] directive is choking on multiple headers with the same
text. I'll temporarily land a fix that disables the TOC ...

Reported by None on 2015-04-17 17:13:49

spearce commented 7 years ago
Unexpected exception caught during GET chromium.googlesource.com/chromium/src/+/master/tools/gn/docs/reference.md
java.lang.IllegalArgumentException: value already present: Examples-cd0f7cff
    at com.google.common.collect.HashBiMap.put(HashBiMap.java:236)
    at com.google.common.collect.HashBiMap.put(HashBiMap.java:213)
    at com.google.gitiles.doc.TocFormatter.idFromHeader(TocFormatter.java:76)
    at com.google.gitiles.doc.TocFormatter.outline(TocFormatter.java:117)
    at com.google.gitiles.doc.TocFormatter.outline(TocFormatter.java:104)
    at com.google.gitiles.doc.TocFormatter.outline(TocFormatter.java:107)
    at com.google.gitiles.doc.TocFormatter.format(TocFormatter.java:94)
    at com.google.gitiles.doc.MarkdownToHtml.visit(MarkdownToHtml.java:115)
    at com.google.gitiles.doc.TocNode.accept(TocNode.java:27)
    at com.google.gitiles.doc.MarkdownToHtml.visitChildren(MarkdownToHtml.java:522)
    at com.google.gitiles.doc.MarkdownToHtml.visit(MarkdownToHtml.java:110)
    at org.pegdown.ast.RootNode.accept(RootNode.java:51)
    at com.google.gitiles.doc.MarkdownToHtml.toSoyHtml(MarkdownToHtml.java:103)
    at com.google.gitiles.doc.DocServlet.showDoc(DocServlet.java:187)
    at com.google.gitiles.doc.DocServlet.doGetHtml(DocServlet.java:141)
    at com.google.gitiles.BaseServlet.doGet(BaseServlet.java:117)

Reported by None on 2015-04-17 17:22:37

spearce commented 7 years ago
I guess this is probably a bug in gitiles, not gerrit; I'll re-file it there.

Reported by None on 2015-06-20 22:03:41

spearce commented 7 years ago
https://gerrit-review.googlesource.com/68871

Reported by None on 2015-06-22 14:25:17

spearce commented 7 years ago

Reported by None on 2015-06-23 22:37:55