Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
F
File Repository
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1
    • Issues 1
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 1
    • Merge Requests 1
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Genesys PGR
  • File Repository
  • Issues
  • #30

Closed
Open
Opened Oct 12, 2019 by Matija Obreza@mobrezaOwner

Blacklist originalFilenames in Repository

We need a mechanism to prevent users from uploading Thumbs.db and files starting with . or ~.

The configuration options should be declared in application.properties.

addFile or addImage should throw an exception if the repositoryFile.originalFilename is invalid.

Perhaps use the ant file matcher instead of regexp?

Edited Oct 15, 2019 by Matija Obreza
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: genesys-pgr/file-repository#30