Description
Steps to reproduce
As admin user do:
- Upload code files.
- See their icons.
Expected behaviour
They have a code icon. Like .pl files in this screenshot:
Actual behaviour
They are not detected as code.
.cpp, .xml and .tex are detected as plain text not code.
.abap .ads .agi .algol .e .apl .scpt .arc. ArnoldC .as .au3 .awk .bas .bat .befunge .bg .boo .bf .ceylon .clj .cbl .coffee .cfml .lisp .context .cs .csh .d .dart .pas .djs .ecl .e .ex .lisp .erl .fal .f .fy .fan .fimpp .fs .go .golo .gsx .groovy .hs .hs .ho .hq9plus .idr .io .java .jl .kt .ls .lgt .lol .lua .m4 .mathematica .m .mod .nasm .n .ml .omgrofl .pn .ps1 .pde .pure .r .rkt .rexx .rb .sml .sbl .sql .stata .swift .tcl .uc .vala .v .vim .vb .asm .xpath2 .xquery .xslt .xtend .zu
All this file types are code and are showed as undetected type, like .rtf which is not detected as a document.
I think bolded ones needs to be fixed specially since those filetypes are very used.
Server configuration
Operating system:
Ubuntu 14.04
Web server:
Apache
Database:
MySQL
PHP version:
5.5.9
ownCloud version: (see ownCloud admin page)
{"installed":true,"maintenance":false,"version":"8.2.0.6","versionstring":"8.2 beta1","edition":"Enterprise"}
Updated from an older ownCloud or fresh install:
Fresh
List of activated apps:
Default in community edition..
The content of config/config.php:
Are you using external storage, if yes which one: local/smb/sftp/...
No
Are you using encryption:
No
Logs
Client configuration
browser
Chrome. Firefox.



Activity
SergioBertolinSG commentedon Sep 22, 2015
@cmonteroluque not sure if this should be addressed to 8.2. or 9.0 What do you think?
jancborchardt commentedon Sep 22, 2015
@SergioBertolinSG this is not a design issue but needs to be added to the filetype tables.
cc @Xenopathic @schiesbn can you provide a pull request for this? Priority is xml, cpp, java, sql (code) and rtf (text).
PVince81 commentedon Sep 22, 2015
could be a regression, @rullzer ?
RobinMcCorkell commentedon Sep 22, 2015
@PVince81 No, we don't have the appropriate mappings and aliases. I'm working on it 😄
rullzer commentedon Sep 22, 2015
thanks @Xenopathic 😄
RobinMcCorkell commentedon Sep 22, 2015
Hmm, despite adding
text/x-cas an alias fortext/code, the icon shown is still the generic text icon... Same for XML. Any ideas @rullzer ?