Edgewall Software
Modify

Opened 20 years ago

Closed 20 years ago

Last modified 20 years ago

#1161 closed defect (invalid)

trying to view an sh script: Html preview unavailable. To view, download the file.

Reported by: bnelson@… 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 Matthew Good <trac@…>, 20 years ago

Resolution: invalid
Status: newclosed

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.

comment:2 by bnelson@…, 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

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Jonas Borgström.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Jonas Borgström to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.