Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider reorganizing trace file names to put generation before extension #86

Open
bobbingwide opened this issue Dec 10, 2019 · 1 comment
Assignees
Projects

Comments

@bobbingwide
Copy link
Owner

bobbingwide commented Dec 10, 2019

The current method of constructing a trace file name is
trace-files-directory/filename.ext.generation
and for the Daily Summary Report its
trace-files-directory/bwtrace.vt.ccyymmdd

These names appear to cause a problem with some server/browser configurations
where the server returns the file to the browser with a content type of: application/x-troff-man
This causes the browser to want to save the file rather than display it.

Would it not be better to use a file extension that's recognised as a text/plain mime type?

trace-files-directory/filename.generation.ext
or trace-files-directory/bwtrace.ccyymmdd.vt

@bobbingwide bobbingwide added this to To do in v3.1.0 via automation Dec 10, 2019
@bobbingwide
Copy link
Owner Author

It appears we can force the files to be displayed as text/plain by putting the following into an .htaccess file into the trace-files-directory
ForceType text/plain

@bobbingwide bobbingwide self-assigned this Dec 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
v3.1.0
  
To do
Development

No branches or pull requests

1 participant