Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
  • Sign in / Register
  • Mayan EDMS Mayan EDMS
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 192
    • Issues 192
    • List
    • Boards
    • Service Desk
    • Milestones
    • Requirements
  • Merge requests 9
    • Merge requests 9
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Mayan EDMSMayan EDMS
  • Mayan EDMSMayan EDMS
  • Issues
  • #928
Closed
Open
Created Dec 09, 2020 by None Given@nastodon

Assignment of mimetypes is selecting the wrong type

After storing several Word template files with macros on a current Mayan installation and taking a look at the data returned by the DMS I got this:

"label": "Vorlage Beleg-Abrechnung.dotm", "language": "deu", "mimetype": "application/vnd.openxmlformats-officedocument.wordprocessingml.document",

which is not quite correct.

.dotm application/vnd.ms-word.template.macroEnabled.12

would have been the correct type here. Preview is working (but I'm a bit scared what happens if a file with malicious macros is uploaded...

So my request is actually at least 3: Can the mechanism that detects the mimetype be corrected? Can we get a method of editing it if it does not match what we know about the document? Can the API function for document upload permit setting the mimetype?

Assignee
Assign to
Time tracking