Skip to content

Code files are not detected as text files with code icon. #19254

Closed

Description

@SergioBertolinSG

Steps to reproduce

As admin user do:

  1. Upload code files.
  2. See their icons.

Expected behaviour

They have a code icon. Like .pl files in this screenshot:

screen shot 2015-09-21 at 13 08 26

Actual behaviour

They are not detected as code.

.cpp, .xml and .tex are detected as plain text not code.

screen shot 2015-09-22 at 08 56 11

.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.

screen shot 2015-09-22 at 08 55 51

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.

cc @jancborchardt

Activity

  1. SergioBertolinSG commented on Sep 22, 2015

    @SergioBertolinSG
    ContributorAuthor

    @cmonteroluque not sure if this should be addressed to 8.2. or 9.0 What do you think?

  2. jancborchardt commented on Sep 22, 2015

    @jancborchardt
    Contributor

    @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).

  3. added this to the milestone on Sep 22, 2015
  4. PVince81 commented on Sep 22, 2015

    @PVince81
    Contributor

    could be a regression, @rullzer ?

  5. RobinMcCorkell commented on Sep 22, 2015

    @RobinMcCorkell
    Contributor

    @PVince81 No, we don't have the appropriate mappings and aliases. I'm working on it 😄

  6. rullzer commented on Sep 22, 2015

    @rullzer
    Contributor

    thanks @Xenopathic 😄

  7. RobinMcCorkell commented on Sep 22, 2015

    @RobinMcCorkell
    Contributor

    Hmm, despite adding text/x-c as an alias for text/code, the icon shown is still the generic text icon... Same for XML. Any ideas @rullzer ?

  8. locked as resolved and limited conversation to collaborators on Aug 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions