Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/app
AgeCommit message (Collapse)Author
2016-04-19Remove persistent XSS vulnerability in `commit_person_link` helperRobert Speicher
See https://dev.gitlab.org/gitlab/gitlabhq/merge_requests/1948
2016-04-07Merge branch 'fix/2fa-authentication-spoofing' into 'master'Rémy Coutable
Fix 2FA authentication spoofing Signed-off-by: Rémy Coutable <remy@rymai.me>
2016-04-05Don't fetch any tags from a forked repoStan Hu
Closes #13957
2016-01-11Merge branch 'fix/project-destroy-callbacks' into 'master'Douwe Maan
Fix project destroy callback See gitlab-org/gitlab-ee!107. See merge request !2307
2016-01-11Merge branch 'fix-ci-builds-for-tags' into 'master' Robert Speicher
Generate builds when creating tag using web interface Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/4296 See merge request !2366
2016-01-11Merge branch 'rs-woff-fonts' into 'master'Dmitriy Zaporozhets
Use WOFF versions of SourceSansPro See https://gitlab.com/gitlab-org/gitlab-ce/issues/6023 See merge request !2357
2016-01-11Merge branch 'fix-duplicate-branch-activity' of ↵Dmitriy Zaporozhets
https://gitlab.com/stanhu/gitlab-ce
2016-01-11Merge branch 'check-for-present-runner-token' into 'master'Stan Hu
Fix Error 500 when visiting build page of project with nil runners_token Properly ensure that the token exists and add defensively check for a non-nil value. Closes #4294 See merge request !2294
2016-01-11Merge branch 'fix_jira_shortterm' into 'master' Robert Speicher
Do not call API if there is no API URL Fixes #5878 CE users may not be interested in the new JIRA features. In this case, we should detect they haven't set an API URL and fallback to the behavior pre-8.3. This patch does that very easily. There are planned improvements to JIRA in future releases such as gitlab-org/gitlab-ce#5541 which will make this more configurable. See merge request !2341
2016-01-08Merge branch 'suppress-allow-failure-builds' into 'master' Stan Hu
Suppress e-mails on failed builds if allow_failure is set Every time I push to GitLab, I get > 2 emails saying a spec failed when I don't care about the benchmarks and others that have `allow_failure` set to `true`. @ayufan mentioned creating a summary e-mail to prevent getting one e-mail per build, but the latter might actually be desirable. For example, I do want to know if Rubocop errors fail right away. See merge request !2178
2016-01-06Merge branch 'merge-when-build-succeeds-unchecked' into 'master' Robert Speicher
Get "Merge when build succeeds" to work when commits were pushed to MR target branch while builds were running The Merge when build succeeds service only merges when the MR is mergeable (open, not WIP, no conflicts). When the target branch is updated, all affected MRs have their merge status set to `unchecked`, and the conflicts check will only happen when `check_if_can_be_merged` is called, which happens when the MR page is viewed. When someone enables the automatic merge, the target branch is updated, no-one views the MR page again, and the build succeeds, the mergeability check will fail and the MR will not in fact be merged. This MR makes sure `check_if_can_be_merged` is always called when MR mergeability is checked. See merge request !2304
2016-01-06Merge branch 'mikew1/gitlab-ce-better-asana-refs' into 'master'Douwe Maan
Better support for referencing and closing issues in asana_service.rb (by @mikew1) See merge request !2302
2015-12-31Fix email reply with a note.Jason Lee
SentNotification need use `record_note` method to save right noteable
2015-12-31Merge branch 'fix-add-key-submit' into 'master'Douwe Maan
Enable "Add key" button when user fills in a proper key Closes #4295 See merge request !2208
2015-12-31Merge branch 'fix-transfer-project-email' into 'master'Robert Speicher
Fix project transfer e-mail sending incorrect paths in e-mail notification The introduction of ActiveJob and `deliver_now` in 7f214cee7 caused a race condition where the mailer would be invoked before the project was committed to the database, causing the transfer e-mail notification to show the old path instead of the new one. Closes #4670 See merge request !2235
2015-12-30Merge branch 'fix-user-autocomplete' into 'master' Robert Speicher
Fixes problem with user autocomplete URI ``` Failed to load resource: net::ERR_NAME_NOT_RESOLVED http://autocomplete/users.json?search=&per_page=20&active=true&current_user=false ``` Fixes #4118, #4136 See merge request !2136
2015-12-30Merge branch 'fix/missing-ci-build-traces' into 'master' Grzegorz Bizon
Hotfix for builds trace data integrity Closes #4246 See merge request !2224
2015-12-29When reCAPTCHA is disabled, allow registrations to go through without a codeStan Hu
2015-12-29reCAPTCHA is configurable through Admin Settings, no reload needed.Gabriel Mazetto
2015-12-29Merge branch 'add-recaptcha-support' into 'master'Dmitriy Zaporozhets
Add support for Google reCAPTCHA in user registration to prevent spammers See merge request !2216
2015-12-29Merge branch 'disable-git-follow' into 'master' Dmitriy Zaporozhets
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-24Merge branch 'fix-milestones-with-slashes' into 'master' Dmitriy Zaporozhets
Fix Error 500 when global milestones have slashes * Closes #4226 * Closes https://github.com/gitlabhq/gitlabhq/issues/9921 See merge request !2182
2015-12-24Merge branch 'ldap-special-chars-fix' into 'master' Douwe Maan
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-24Merge branch 'fix-error-500-global-search-issues' into 'master' Dmitriy Zaporozhets
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-23Merge branch 'fix/ci-runners-token-persistence' into 'master' Grzegorz Bizon
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-22Merge branch 'fix_leave_project_display' into 'master' Stan Hu
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-22Merge branch 'fix-mr-500' into 'master' Robert Speicher
Fix MR 500 when viewing the MR page Fixes #2712 See merge request !2167
2015-12-21Merge branch 'admin_add_identity' into 'master' Robert Speicher
Allow admin to create new user identities Fixes #2442 See merge request !2077
2015-12-21Merge branch 'fix-issue-related-mrs' into 'master' Robert Speicher
Fix issue related cross-project MRs Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/4188 See merge request !2163
2015-12-21Merge branch 'add_email_unlock' into 'master' Robert Speicher
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-18Backport JIRA serviceDrew Blessing
2015-12-18Merge branch 'ci-commit-status-skipped' into 'master' Grzegorz Bizon
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-18Merge branch 'reference_clean_up' into 'master' Robert Speicher
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-18Merge branch 'remove-extra-spaces' into 'master' Robert Speicher
Remove extra spaces after branchname See merge request !2152
2015-12-18Merge branch 'fix/mr-reopen-button-title' into 'master' Grzegorz Bizon
Fix merge-request-reopen button title Closes #4069 See merge request !2147
2015-12-18Remove extra spaces after branchnameZeger-Jan van de Weg
2015-12-18Fix merge-request-reopen button titleGrzegorz Bizon
Closes #4069
2015-12-17Add branch and tag operation to tree dropdownDrew Blessing
2015-12-17Do not display project group/name when issue and MR are in same projectDrew Blessing
2015-12-17Don't create CI status for refs that doesn't have .gitlab-ci.yml, even if ↵Kamil Trzcinski
the builds are enabled
2015-12-17Revert sidebar position for issue and merge requestDmitriy Zaporozhets
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2015-12-17Fix ux issue with "This issue will be closed automatically" messageDmitriy Zaporozhets
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2015-12-17Merge branch 'move-mr-builds-tab' into 'master' Dmitriy Zaporozhets
Move MR Builds tab next to Commits Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/4132 @dzaporozhets We've got two people who feel strongly about this now, @sytses filed an issue for it :) ![Screen_Shot_2015-12-16_at_22.19.35](/uploads/37e705610ba54e386928d7972398c247/Screen_Shot_2015-12-16_at_22.19.35.png) See merge request !2128
2015-12-17Move MR Builds tab next to CommitsDouwe Maan
2015-12-16Fix merge widget JS for buttonsDouwe Maan
2015-12-16Merge branch 'master' into fix-merge-immediately-buttonDouwe Maan
2015-12-16Fix updating and disabling merge button when Merge Immediately is clickedDouwe Maan
2015-12-16Merge branch 'master' of gitlab.com:gitlab-org/gitlab-ceDmitriy Zaporozhets
2015-12-16Merge remote-tracking branch 'origin/rs-simplify-status-icon'Dmitriy Zaporozhets
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2015-12-16Merge branch 'mr-builds-fixes' into 'master' Dmitriy Zaporozhets
Link to correct (source) project on MR builds tab Used to link to `gitlab-org/gitlab-ce/commits/<branch-name>`, now links to correct project. See merge request !2115