#1161 closed defect (invalid)
trying to view an sh script: Html preview unavailable. To view, download the file.
Reported by: | Owned by: | Jonas Borgström | |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | version control/browser | Version: | 0.7.1 |
Severity: | normal | Keywords: | |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
I am running trac 0.7.1 with apache 2.0.52 on freebsd 5.2.1
I am unable to preview sh scripts it says: Html preview unavailable. To view, download the file.
I installed silvercity and genscript (/usr/ports/enscript-letter). I tried disabling the mime type for sh in apache so it would default to text/plan (as well as explicitly set it as text/plain) but it still doesn't work.
Any help would be appreciated, Bjorn Nelson
Attachments (0)
Change History (2)
comment:1 by , 20 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
comment:2 by , 20 years ago
Thanks for the response, it turned out to be a browser caching thing. I tried a bunch of fixes but I think it was because I installed genscript and silvercity
First, this is more of a support question, so the mailing list would probably be the better place for this type of thing.
However, .sh files are sort of a special case since their extension doesn't necessarily reflect what the content is. It could be a bash script, perl, python, whatever.
What you can do is set the svn:mime-type property on your file in the repository to let Trac know what the actual content is.