Veracity Q&A home login about faq
$ vv init my_first_repo testdir
$ cd testdir
$ vv whoami --create mymail@example.com
$ echo '<html><body>test</body></html>' > file.html
$ vv add file.html
$ vv commit -m 'my first commit'
$ vv config set server/files /usr/share/veracity/server_files/
$ vv serve

Access http://127.0.0.1:8080/ and click revision. Click "@/file.html" get JavaScript errors. it occurs in Firefox and Chromium.

Error Console(Firefox):

data.replace is not a function

console log(Chromium):

Uncaught TypeError: Object #<document> has no method 'replace'

btw, it should be set Content-Type and X-Content-Type-Options: nosniff HTTP headers to show raw content on browser for security reason.

asked Sep 14 '11 at 11:20

matsuu's gravatar image

matsuu
50224


We were able to reproduce the file.html issue in house using FireFox.

Expect this to be addressed in an upcoming nightly build. We will also look into adding the X-Content-Type-Options: nosniff header. Thanks for your report and your input!

link

answered Sep 14 '11 at 14:55

MJ%20Skrobul's gravatar image

MJ Skrobul
16615

edited Sep 14 '11 at 14:57

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×8
×2

Asked: Sep 14 '11 at 11:20

Seen: 899 times

Last updated: Sep 14 '11 at 14:57

powered by OSQA