View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0009894 | mantisbt | other | public | 2008-11-25 15:04 | 2009-01-15 11:25 |
Reporter | jreese | Assigned To | jreese | ||
Priority | normal | Severity | minor | Reproducibility | N/A |
Status | closed | Resolution | fixed | ||
Target Version | 1.2.0a3 | Fixed in Version | 1.2.0a3 | ||
Summary | 0009894: Inconsistent uses of file extension configuration settings. | ||||
Description | I found this issue while investing issue 0009890. We have three separate configuration values for selecting what file extensions can be viewed inline, shown as text, etc: # Extensions for text files that can be expanded inline.
To add to all this, when viewing the list of bug attachments, the following configuration setting is improperly checked: # Specifies the maximum size (in bytes) below which an attachment is | ||||
Tags | No tags attached. | ||||
Reminder sent to: giallu, grangeway, thraxisp, vboctor Since most of Mantis predates my time with the project, I want to make sure that I'm coming from a sane point of view on this topic. Can you all provide your opinions/feedback/knowledge on this bug? Thanks. |
|
surely, there's something fishy here... I agree that $g_inline_file_exts and $g_preview_image_extensions should be reviewed and, if appropriate, consolidated. However, I note that my poor english interpret: Specifies the maximum size (in bytes) below which an attachment ispreviewed in the bug view pages.To disable this feature, set max size to 0.as: |
|
Hmm, I read that as:
Surely if you didn't want any attachments to be shown inline or with a preview, you could either:
I personally think it makes much more sense to allow "some or no limit" than to only allow a choice of some arbitrary maximum size... |
|
I think the inline file extensions and the preview images are two different things and they should probably remain separate. For example, an admin may disable preview for images but have them show inline when clicked. Or an admin may configure images + other files to show inline (e.g. text files / html). However, I agree on the following:
As for the preview disabling, we could do it through size or through setting the extensions to none. However, given we already had this option and it is working via the size, I see no reason to change it. As for unlimited size for preview, we could use -1 for that. However, I think getting the admin to think about the max limit is not a bad thing. For example, do they want their users to preview images that are 1-5MB? |
|
Retargetting the primary purpose of this issue for 1.2.x. |
|
I think probably the "best" solution in my opinion is to:
To me, this makes more sense, and is less prone to getting out of sync when changing configs. I can't really think of any valid reason why you would want to show attachments inline when viewing the bug, or vice versa, and I think the added simplicity of removing the repetitive config options is a win. Thoughts? |
|
MantisBT: master e0d3b361 2008-11-27 04:58 Details Diff |
Fixes 0009905: Simplify the process of moving the attachments folder. |
Affected Issues 0009894, 0009905 |
|
mod - core/print_api.php | Diff File | ||
mod - docbook/adminguide/en/configuration.sgml | Diff File | ||
mod - config_defaults_inc.php | Diff File | ||
mod - core/file_api.php | Diff File | ||
mod - core/utility_api.php | Diff File | ||
mod - file_download.php | Diff File | ||
MantisBT: master-1.1.x 739397fe 2008-12-02 13:52 Details Diff |
Fix 0009894: inconsistent set of file extensions for attachments. |
Affected Issues 0009894, 0009928 |
|
mod - config_defaults_inc.php | Diff File |