Commit Graph
21765 Commits
Author SHA1 Message Date
Marin Jankovski 450ea1911d Merge branch 'recaptcha_to_stable' into '8-3-stable'
Recaptcha to stable



See merge request !2236
2015-12-29 10:45:48 +00:00
Stan HuandMarin Jankovski 1ae157a3fe When reCAPTCHA is disabled, allow registrations to go through without a code 2015-12-29 11:13:58 +01:00
Gabriel MazettoandMarin Jankovski b3ce9a1d24 reCAPTCHA is configurable through Admin Settings, no reload needed. 2015-12-29 11:13:50 +01:00
Dmitriy ZaporozhetsandRobert Speicher 2ef0fecadf Merge branch 'add-recaptcha-support' into 'master'
Add support for Google reCAPTCHA in user registration to prevent spammers

See merge request !2216
2015-12-29 01:35:03 -05:00
Dmitriy ZaporozhetsandRobert Speicher 795a29aee5 Merge branch 'disable-git-follow' into 'master'
Disable --follow in `git log` to avoid loading duplicate commit data in infinite scroll

`git` doesn't work properly when `--follow` and `--skip` are specified together. We could even be **omitting commits in the Web log** as a result.

Here are the gory details. Let's say you ran:

```
git log -n=5 --skip=2 README
```

This is the working case since it omits `--follow`. This is what happens:

1. `git` starts at `HEAD` and traverses down the tree until it finds the top-most commit relevant to README.
2. Once this is found, this commit is returned via `get_revision_1()`.
3. If the `skip_count` is positive, decrement and repeat step 2. Otherwise go onto step 4.
4. `show_log()` gets called with that commit.
5. Repeat step 1 until we have all five entries.

That's exactly what we want. What happens when you use `--follow`? You have to understand how step 1 is performed:

* When you specify a pathspec on the command-line (e.g. README), a flag `prune` [gets set here](https://github.com/git/git/blob/master/revision.c#L2351).
* If the `prune` flag is active, `get_commit_action()` determines whether the commit should be [scanned for matching paths](https://github.com/git/git/blob/master/revision.c#L2989).
* In the case of `--follow`, however, `prune` is [disabled here](https://github.com/git/git/blob/master/revision.c#L2350).
* As a result, a commit is never scanned for matching paths and therefore never pruned. `HEAD` will always get returned as the first commit, even if it's not relevant to the README.
* Making matters worse, the `--skip` in the example above would actually skip a every other entry after `HEAD` N times. If README were changed in these skipped commits, we would actually miss information!

Since git uses a matching algorithm to determine whether a file was renamed, I
believe `git` needs to generate a diff of each commit to do this and traverse
each commit one-by-one to do this. I think that's the rationale for disabling
the `prune` functionality since you can't just do a simple string comparison.

Closes #4181, #4229, #3574, #2410

See merge request !2210
2015-12-29 01:34:03 -05:00
Robert Speicher 92e0722f0f Version 8.3.1 v8.3.1 2015-12-28 00:18:40 -05:00
Robert SpeicherandRobert Speicher 476f6238b9 Merge branch 'ref-filter-html' into 'master'
Escape all the things.

See merge request !2209
2015-12-24 17:20:02 -05:00
Robert Speicher 8c208a90eb Update CHANGELOG
[ci skip]
2015-12-24 14:14:55 -05:00
Dmitriy ZaporozhetsandRobert Speicher 840674d181 Merge branch 'fix-milestones-with-slashes' into 'master'
Fix Error 500 when global milestones have slashes

* Closes #4226

* Closes https://github.com/gitlabhq/gitlabhq/issues/9921

See merge request !2182
2015-12-24 13:41:39 -05:00
Douwe MaanandRobert Speicher e9a2ab1152 Merge branch 'ldap-special-chars-fix' into 'master'
Fix identity and user retrieval when special characters are used

Fixes #4023

I also added tests to make sure the user with special characters in his name is returned correctly.

@rspeicher this probably should be added to 8.3 as a patch.

See merge request !2176
2015-12-24 13:41:04 -05:00
Dmitriy ZaporozhetsandRobert Speicher 2af687138d Merge branch 'fix-error-500-global-search-issues' into 'master'
Fix Error 500 when doing a search in dashboard before visiting any project

If a search turned up an issue, under certain conditions you would see this error:

```
ActionView::Template::Error (undefined method `path_with_namespace' for nil:NilClass):
     6:   - if issue.description.present?
     7:     .description.term
     8:       = preserve do
     9:         = search_md_sanitize(markdown(issue.description))
    10:   %span.light
    11:     #{issue.project.name_with_namespace}
    12:   - if issue.closed?
  lib/gitlab/markdown/upload_link_filter.rb:36:in `build_url'
  lib/gitlab/markdown/upload_link_filter.rb:31:in `process_link_attr'
  lib/gitlab/markdown/upload_link_filter.rb:18:in `block in call'
  lib/gitlab/markdown/upload_link_filter.rb:17:in `call'
  lib/gitlab/markdown.rb:127:in `gfm'
  lib/gitlab/markdown.rb:24:in `render'
  app/helpers/gitlab_markdown_helper.rb:61:in `markdown'
  app/views/search/results/_issue.html.haml:9:in `block in _app_views_search_results__issue_html_haml__4127460390996300432_59973760'
  app/views/search/results/_issue.html.haml:8:in `_app_views_search_results__issue_html_haml__4127460390996300432_59973760'
  app/views/search/_results.html.haml:20:in `_app_views_search__results_html_haml__589475855773452465_61761440'
  app/views/search/show.html.haml:5:in `_app_views_search_show_html_haml___1852335078065998536_69780120'
```

Confirmed this is issue still happens in GitLab 8.4, and it also happens on GitLab.com. Here's how to reproduce:

1. Login in a new browser.
2. Enter a search term on the top right that will land a hit in the "Issues" (e.g. GitLab).
3. Click on "Issues" tab. You should get an Error 500.

The issue is that @project isn't assigned to anything.

See merge request !2110
2015-12-23 23:37:07 -05:00
Grzegorz BizonandRobert Speicher 5a670322ce Merge branch 'fix/ci-runners-token-persistence' into 'master'
Fix method that ensures authentication token

Until now, `ensure_#{token_filed_name}!` method didn't persist new token in database.

This closes #4235.

See merge request !2185
2015-12-23 12:16:58 -05:00
Stan HuandRobert Speicher 60066dcb7b Merge branch 'fix_leave_project_display' into 'master'
Fix and test leave project display

The 'Leave this project' display on project page was broken. It was calling the method incorrectly, which returned `nil` and displayed nothing. 

This fixes the display and also adds 2 different tests for it.

cc/ @jvanbaarsen @stanhu Please review and merge if you think it looks good. Thank you!

See merge request !2166
2015-12-22 15:43:01 -05:00
Gabriel MazettoandRobert Speicher 0c3ac036cc Hotfix for sidekiq-cron being loaded from Settingslogic with defaults 2015-12-22 14:39:15 -05:00
Dmitriy ZaporozhetsandRobert Speicher b0f1453fc4 Merge branch 'feature/sidekiq-cron-config' into 'master'
Sidekiq-cron configuration moved to gitlab.yml

When `sidekiq-cron` was introduced, jobs configuration where placed
in `schedule.yml` file.

As discussed in #3928, this is not desirable. 
We moved it to `gitlab.yml`, exposing only the "cron" part of the configuration.

See merge request !2087
2015-12-22 14:39:10 -05:00
Robert Speicher 02076d787a Version 8.3.0 v8.3.0 2015-12-21 22:50:55 -05:00
Robert SpeicherandRobert Speicher c4eacbd279 Merge branch 'fix-mr-500' into 'master'
Fix MR 500 when viewing the MR page

Fixes #2712 

See merge request !2167
2015-12-21 22:37:43 -05:00
Robert SpeicherandRobert Speicher 9e5ed7ef89 Merge branch 'rs-bump-nokogiri' into 'master'
Explicitly require Nokogiri 1.6.7.1 due to security issue

```
Name: nokogiri
Version: 1.6.7
Advisory: CVE-2015-5312
Criticality: High
URL: https://groups.google.com/forum/#!topic/ruby-security-ann/aSbgDiwb24s
Title: Nokogiri gem contains several vulnerabilities in libxml2
Solution: upgrade to >= 1.6.7.1
```

See merge request !2154
2015-12-21 22:24:03 -05:00
Robert Speicher 456d3fda57 Version 8.3.0.rc3 v8.3.0.rc3 2015-12-21 13:56:15 -05:00
Robert SpeicherandRobert Speicher c62f7ca4f8 Merge branch 'admin_add_identity' into 'master'
Allow admin to create new user identities

Fixes #2442 

See merge request !2077
2015-12-21 12:58:43 -05:00
Robert SpeicherandRobert Speicher 8eb895eeb2 Merge branch 'fix-issue-related-mrs' into 'master'
Fix issue related cross-project MRs

Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/4188

See merge request !2163
2015-12-21 12:55:04 -05:00
Robert SpeicherandRobert Speicher 525981fcfe Merge branch 'add_email_unlock' into 'master'
Allow account unlock via email

We see a lot of users get confused about what it means when your account gets
locked. Many try to reset their password and are still faced with a lockout.
With this change, users receive an email that allows them to unlock their
account immediately. The previous behavior where the account is auto-unlocked
after a time also still works.

See merge request !2049
2015-12-21 12:53:47 -05:00
Robert Speicher 78c5beb546 Merge branch 'master' into 8-3-stable 2015-12-21 10:59:49 -05:00
Dmitriy Zaporozhets 545a943468 Merge branch 'backport_jira' into 'master'
Backport JIRA service

Fixes #3839 

Move EE JIRA functionality back to CE.

- [x] Make it function in manual testing
- [x] Migrate JIRA-specific tests
- [x] Tests pass
- [x] Migrate documentation
- [x] Rollback to previous CE JIRA integration locally, activate on a project then try to migrate db and see if integration still works.
- [x] Final EE search for JIRA references

See merge request !2146
2015-12-21 14:47:27 +00:00
Achilleas Pipinellis 4b4cbf0ce4 Merge branch 'removeNonDefinedVariableFromCIDoc' into 'master'
Remove CI_BUILD_BEFORE_SHA from CI documentation

As pointed in #3210, the environment variable isn't usable any more.

See merge request !2118
2015-12-19 08:46:38 +00:00
Achilleas Pipinellis 3ee33b54bf Merge branch 'update_artifact_runner_docs' into 'master'
Clarify Windows shell executor artifact upload support

@ayufan noted that the runner does not support artifact upload for Windows shell executor. This adds a note so users aren't confused.

See merge request !2142
2015-12-19 08:37:34 +00:00
Drew Blessing f177aaa5fa Backport JIRA service 2015-12-18 14:19:48 -06:00
Grzegorz Bizon 27859f7ed9 Merge branch 'ci-commit-status-skipped' into 'master'
Don't create CI status for refs that doesn't have .gitlab-ci.yml, even if the builds are enabled

Fixes #3827 
Fixes #4157

/cc @grzesiek @dblessing 

See merge request !2139
2015-12-18 18:48:06 +00:00
Robert Speicher 3ca78f015a Merge branch 'reference_clean_up' into 'master'
Do not display project group/name when issue and MR are in same project

I noticed that things seem a bit cluttered for related merge requests
when displaying the group/project name for every item, even when it's
in the same project.

For merge requests that are in the same project as the issue we probably
don't need to display the 'in group / name' bit.

See merge request !2141
2015-12-18 18:36:34 +00:00
Robert Speicher 22e65944ee Merge branch 'update-rack-attack-security' into 'master'
Bump Rack Attack to v4.3.1 for security fix

https://github.com/kickstarter/rack-attack/releases/tag/v4.3.1

See merge request !2153
2015-12-18 18:13:42 +00:00
Stan Hu f33cb184f9 Bump Rack Attack to v4.3.1 for security fix
https://github.com/kickstarter/rack-attack/releases/tag/v4.3.1
2015-12-18 10:10:02 -08:00
Robert Speicher 3f26d24f52 Merge branch 'remove-extra-spaces' into 'master'
Remove extra spaces after branchname

See merge request !2152
2015-12-18 18:00:25 +00:00
Robert Speicher 7866d56fce Merge branch 'master' into 8-3-stable 2015-12-18 12:56:05 -05:00
Grzegorz Bizon a54bd0ff77 Merge branch 'fix/mr-reopen-button-title' into 'master'
Fix merge-request-reopen button title

Closes #4069

See merge request !2147
2015-12-18 16:03:39 +00:00
Dmitriy Zaporozhets 08ddb8f768 Merge branch 'create_menu_additions' into 'master'
Add new branch and tag action to tree dropdown

Right now, creating a branch or tag is only possible on the project page dropdown or on the commits page. This merge request both actions to the tree header dropdown. Now all repository web actions are available in this one location, plus the existing ones. It makes the operations a lot more intuitive.

## Existing Tree/Repository dropdown:

![Screen_Shot_2015-12-17_at_2.38.50_PM](/uploads/4d83a4b518093ea85f0859b385abcc7c/Screen_Shot_2015-12-17_at_2.38.50_PM.png)

## New Tree/Repository dropdown:

![Screen_Shot_2015-12-17_at_2.32.28_PM](/uploads/1fc18a511774630c5078a7d5c0fbb5b6/Screen_Shot_2015-12-17_at_2.32.28_PM.png)'

See merge request !2144
2015-12-18 13:08:29 +00:00
Douwe Maan 9b9cf3bced Merge branch 'remove-duplicate-changelog-entry' into 'master'
Remove duplicate entry in the changelog

/cc @DouweM 

See merge request !2149
2015-12-18 10:20:00 +00:00
Zeger-Jan van de Weg b982caf115 Remove duplicate entry in the changelog 2015-12-18 11:16:59 +01:00
Zeger-Jan van de Weg ffa12a7f82 Remove extra spaces after branchname 2015-12-18 11:16:08 +01:00
Grzegorz Bizon 50798a90b6 Fix merge-request-reopen button title
Closes #4069
2015-12-18 09:12:44 +01:00
Robert Speicher 3b303febd0 Merge branch 'gitlab-shell-2.6.9' into 'master'
Use gitlab-shell 2.6.9

See merge request !2143
2015-12-17 21:36:33 +00:00
Drew Blessing 50ef67617c Add branch and tag operation to tree dropdown 2015-12-17 14:50:00 -06:00
Jacob Vosmaer 56d780cf2c Use gitlab-shell 2.6.9 2015-12-17 20:54:27 +01:00
Drew Blessing c019154a91 Clarify Windows shell executor artifact upload support 2015-12-17 13:01:57 -06:00
Kamil Trzcinski 742089ae04 Fix feature specs: we always show the build status if ci_commit is present 2015-12-17 17:51:22 +01:00
Drew Blessing 84caae7294 Do not display project group/name when issue and MR are in same project 2015-12-17 10:14:50 -06:00
Robert Speicher 19472158c8 Version 8.3.0.rc2 v8.3.0.rc2 2015-12-17 10:34:41 -05:00
Kamil Trzcinski 58a56a0396 Don't create CI status for refs that doesn't have .gitlab-ci.yml, even if the builds are enabled 2015-12-17 16:33:47 +01:00
Robert Speicher fa8e59cb85 Merge branch 'master' into 8-3-stable 2015-12-17 10:28:54 -05:00
Robert Speicher b2c593dac5 Merge branch 'gitlab-workhorse-0.5.1' into 'master'
Use gitlab-workhorse 0.5.1

Improves relative URL support.

See merge request !2134
2015-12-17 15:17:07 +00:00
Robert Speicher 9da5f0b927 Merge branch 'issue_4131' into 'master'
Upgrade Poltergeist to 1.8.1.

Close #4131 

See merge request !2126
2015-12-17 15:14:09 +00:00