Skip to content
Snippets Groups Projects
  1. Mar 02, 2020
  2. Jul 03, 2019
  3. May 17, 2019
    • 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. May 05, 2019
  5. Nov 12, 2018
    • 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. Sep 04, 2018
  7. Jul 18, 2018
  8. Jul 13, 2018
  9. Jul 05, 2018
  10. Jul 03, 2018
  11. Jun 06, 2018
  12. Mar 08, 2018
  13. Mar 01, 2018
  14. Feb 28, 2018
  15. Feb 06, 2018
  16. Feb 02, 2018
  17. Feb 01, 2018
  18. Dec 07, 2017
  19. Nov 28, 2017
  20. Nov 21, 2017
  21. Oct 30, 2017
  22. Aug 01, 2017
  23. Jun 08, 2017
    • 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. May 02, 2017
  25. Apr 09, 2017
  26. Mar 06, 2017
  27. Feb 24, 2017
    • 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. Feb 15, 2017
  29. Dec 15, 2016
  30. Jul 24, 2016
  31. Jul 19, 2016
  32. Mar 30, 2016
Loading