1. 13 Sep, 2016 2 commits
    • Valery Sizov's avatar
    • Robert Speicher's avatar
      Merge branch... · 84ff13a8
      Robert Speicher authored
      Merge branch '939-repositoryupdatemirrorworker-updatemirrorerror-rugged-invaliderror-cannot-set-empty-url' into 'master'
      
      Fix mirrored projects allowing empty import urls
      
      Because of missing validations in the projects model, you could
      create a new project with a nil or empty import_url with mirror=true.
      This would cause exceptions when
      RepositoryUpdateMirrorWorker::UpdateMirrorError ran and attempted to
      update one of these projects. This was made easier by the fact that
      you could show the "Mirror repository" checkbox in the UI, check it,
      hide it, and still have its value considered.
      
      The missing validations have been added, and minor adjustments have
      been made to the UI to improve the previous behaviour. A migration
      was also added to update mirror=false in all projects with a nil or
      empty import url that exists because of the described bug.
      
      Closes #939
      
      See merge request !700
      84ff13a8
  2. 12 Sep, 2016 15 commits
  3. 10 Sep, 2016 2 commits
  4. 09 Sep, 2016 21 commits