1. 02 Mar, 2020 1 commit
  2. 03 Jul, 2019 1 commit
  3. 17 May, 2019 1 commit
    • Stan Hu's avatar
      Fix incorrect prefix used in new uploads for personal snippets · a1f44c1b
      Stan Hu authored
      https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/24550 fixed the
      case where the wrong path on disk was being searched, but it
      inadvertently ommitted the `/uploads/-/system` prefix when rendering the
      Markdown for personal snippet uploads when they were stored directly in
      object storage.
      
      A personal snippet path is stored using FileUploader#upload_path.
      The format for the path:
      
      Local storage: :random_hex/:filename.
      Object storage: personal_snippet/:id/:random_hex/:filename.
      
      upload_paths represent the possible paths for a given identifier,
      which will vary depending on whether the file is stored in local or
      object storage. upload_path should match an element in upload_paths.
      
      base_dir represents the path seen by the user in Markdown, and it
      should always be prefixed with uploads/-/system.
      
      store_dirs represent the paths that are actually used on disk. For
      object storage, this should omit the prefix /uploads/-/system.
      
      For example, consider the requested path
      /uploads/-/system/personal_snippet/172/ff4ad5c2/file.png.
      
      For local storage:
      
      base_dir: uploads/-/system/personal_snippet/172
      upload_path: ff4ad5c2/file.png
      upload_paths: ["ff4ad5c2/file.png", "personal_snippet/172/ff4ad5c2/file.png"].
      store_dirs: {1=>"uploads/-/system/personal_snippet/172/ff4ad5c2",
                   2=>"personal_snippet/172/ff4ad5c2"}
      
      For object storage:
      
      upload_path: personal_snippet/172/ff4ad5c2/file.png
      
      Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/61671
      a1f44c1b
  4. 05 May, 2019 1 commit
  5. 12 Nov, 2018 1 commit
    • Jarka Kadlecova's avatar
      Extract code from Issues::MoveService · 4af1712d
      Jarka Kadlecova authored
      Extract code to make it easier reusable
      - introduce AttributesRewriter and ContentRewriter
        - support group entites when rewriting content
      - make Uploader copy_to working for Namespaces
      4af1712d
  6. 04 Sep, 2018 1 commit
  7. 18 Jul, 2018 1 commit
  8. 13 Jul, 2018 1 commit
  9. 05 Jul, 2018 1 commit
  10. 03 Jul, 2018 2 commits
  11. 06 Jun, 2018 1 commit
  12. 08 Mar, 2018 1 commit
  13. 01 Mar, 2018 1 commit
  14. 28 Feb, 2018 2 commits
  15. 06 Feb, 2018 1 commit
  16. 02 Feb, 2018 2 commits
  17. 01 Feb, 2018 1 commit
  18. 07 Dec, 2017 1 commit
  19. 28 Nov, 2017 1 commit
  20. 21 Nov, 2017 1 commit
  21. 30 Oct, 2017 1 commit
  22. 01 Aug, 2017 1 commit
  23. 08 Jun, 2017 2 commits
    • DJ Mountney's avatar
      Bring in security changes from the 9.2.5 release · 565ead61
      DJ Mountney authored and Bob Van Landuyt :neckbeard:'s avatar Bob Van Landuyt :neckbeard: committed
      Ran:
       - git format-patch v9.2.2..v9.2.5 --stdout > patchfile.patch
       - git checkout -b 9-2-5-security-patch origin/v9.2.2
       - git apply patchfile.patch
       - git commit
       - [Got the sha ref for the commit]
       - git checkout -b upstream-9-2-security master
       - git cherry-pick <SHA of the patchfile commit>
       - [Resolved conflicts]
       - git cherry-pick --continue
      565ead61
    • DJ Mountney's avatar
      Bring in security changes from the 9.2.5 release · 1d1363e2
      DJ Mountney authored
      Ran:
       - git format-patch v9.2.2..v9.2.5 --stdout > patchfile.patch
       - git checkout -b 9-2-5-security-patch origin/v9.2.2
       - git apply patchfile.patch
       - git commit
       - [Got the sha ref for the commit]
       - git checkout -b upstream-9-2-security master
       - git cherry-pick <SHA of the patchfile commit>
       - [Resolved conflicts]
       - git cherry-pick --continue
      1d1363e2
  24. 02 May, 2017 1 commit
  25. 09 Apr, 2017 1 commit
  26. 06 Mar, 2017 2 commits
  27. 24 Feb, 2017 1 commit
    • Robert Speicher's avatar
      Minor refactoring of Uploaders · a8c62dfe
      Robert Speicher authored
      - Moves a duplicate `file_storage?` definition into the common
        `GitlabUploader` ancestor.
      - Get the `uploads` base directory from a class method rather than
        hard-coding it where it's needed. This will be used in a subsequent MR
        to store Uploads in the database.
      - Improves the specs for uploaders.
      a8c62dfe
  28. 15 Feb, 2017 1 commit
  29. 15 Dec, 2016 1 commit
  30. 24 Jul, 2016 1 commit
  31. 19 Jul, 2016 2 commits
  32. 30 Mar, 2016 3 commits