Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G gitlabhq1
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 21
    • Issues 21
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • gpt
  • large_projects
  • gitlabhq1
  • Issues
  • #3657

Closed
Open
Created Apr 22, 2013 by Administrator@rootOwner

Wrong URL and access permissions on issue attachments

Created by: mikehaertl

I have installed GitLab 5.0 under a relative URL in /gitlab. When i attach a file to an issue, the URL to that file is /files/note/1/hotel_photo.php. It's missing the /gitlab prefix. And according to the following issues, there should also be an /upload prefix or something:

  • https://github.com/gitlabhq/gitlabhq/issues/2657
  • https://github.com/gitlabhq/gitlab-recipes/pull/50

I could create a proxy rule in my webserver config - but what about access permissions for the files? Anyone could download them. I'd suggest to better use something like mod_xsendfile so you could check for permissions first, before you send the file.

Assignee
Assign to
Time tracking