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
AgeCommit message (Collapse)Author
2018-07-11Improve manifest feature after backend reviewDmitriy Zaporozhets
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2018-07-11Add ability to disable manifest importDmitriy Zaporozhets
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2018-06-21[Rails5] Force the `protect_from_forgery` callback run firstblackst0ne
Since Rails 5.0 the `protect_from_forgery` callback doesn't run first by default anymore. [1] Instead it gets inserted into callbacks chain where callbacks get called in order. This commit forces the callback to run first. [1]: https://github.com/rails/rails/commit/39794037817703575c35a75f1961b01b83791191
2018-06-13Render access denied without messageBob Van Landuyt
The `errors/access_denied` page should not fail to render when no message is provided. When accessing something as a sessionless user, we should also display the terms message if possible.
2018-06-06Log response body to production_json.log when a controller responds with a ↵Stan Hu
422 status We have a number of import errors occurring with 422 errors, and it's hard to determine why they are happening. This change will surface the errors in the log lines. Relates to #47365
2018-06-05Render a 403 when showing an access denied messageBob Van Landuyt
When we want to show an access denied message to a user, we don't have to hide the resource's existence. So in that case we render a 403, this 403 is not handled by nginx on omnibus installs, making sure the message is visible to the user.
2018-06-01Update 404 and 403 pagesPaul Slaughter
2018-05-11Allow a user to sign out when on the terms pageBob Van Landuyt
Before we would block the `sign_out` request when the user did not accept the terms, therefore redirecting them to the terms again. By allowing all request to devise controllers, we avoid this problem.
2018-05-04Enforces terms in the web applicationBob Van Landuyt
This enforces the terms in the web application. These cases are specced: - Logging in: When terms are enforced, and a user logs in that has not accepted the terms, they are presented with the screen. They get directed to their customized root path afterwards. - Signing up: After signing up, the first screen the user is presented with the screen to accept the terms. After they accept they are directed to the dashboard. - While a session is active: - For a GET: The user will be directed to the terms page first, after they accept the terms, they will be directed to the page they were going to - For any other request: They are directed to the terms, after they accept the terms, they are directed back to the page they came from to retry the request. Any information entered would be persisted in localstorage and available on the page.
2018-04-28[Rails5] Update `ApplicationController#log_exception` to fix `undefined ↵blackst0ne
method 'clean'` error This commit fixes the error: ``` 1) Projects::TodosController Merge Requests POST create when not authorized for merge_request doesn't create todo Failure/Error: application_trace = ActionDispatch::ExceptionWrapper.new(env, exception).application_trace NoMethodError: undefined method `clean' for #<Hash:0x000055be5bda35d0> Did you mean? clear # ./app/controllers/application_controller.rb:113:in `log_exception' # ./app/controllers/application_controller.rb:40:in `block in <class:ApplicationController>' # ./spec/controllers/projects/todos_controller_spec.rb:80:in `go' # ./spec/controllers/projects/todos_controller_spec.rb:138:in `block (6 levels) in <top (required)>' # ./spec/controllers/projects/todos_controller_spec.rb:138:in `block (5 levels) in <top (required)>' # ------------------ # --- Caused by: --- # ActiveRecord::RecordNotFound: # Couldn't find MergeRequest # ./app/finders/concerns/finder_methods.rb:19:in `raise_not_found_unless_authorized' Finished in 7.53 seconds (files took 12.8 seconds to load) 1 example, 1 failure ``` Also see https://github.com/rails/rails/commit/6d85804bc6aeecce5669fb4b0d7b33c069deff3a
2018-04-08[Rails5] Add `safe_params` helperblackst0ne
Rails 5.0 requires to explicitly permit attributes when building a URL using current `params` object. The `safe_params` helper allows developers to just call `safe_params.merge(...)` instead of manually adding `permit` to every call. https://github.com/rails/rails/pull/20868
2018-04-04Add better LDAP connection handlingFrancisco Javier López
2018-02-28Moved o_auth/saml/ldap modules under gitlab/authHoratiu Eugen Vlad
2018-02-22Port `read_cross_project` ability from EEBob Van Landuyt
2018-02-02use Gitlab::UserSettings directly as a singleton instead of ↵Mario de la Ossa
including/extending it
2018-01-24Return a blank JSON response for a missing .js file to prevent Rails CSRF errorsStan Hu
The default 404 handler would return the Content-Type format based on the given format extension. This would cause the Rails CSRF protection to flag an error, since the .js extension gets mapped to text/javascript format. Closes #40771
2017-11-23Allow password authentication to be disabled entirelyMarkus Koller
2017-11-20Impersonation no longer gets stuck on password change.Tiago Botelho
2017-11-20Merge branch '18040-rubocop-line-break-after-guard-clause' into 'master'Rémy Coutable
Adds Rubocop rule for line break after guard clause Closes #18040 See merge request gitlab-org/gitlab-ce!15188
2017-11-17Applied some code review commentsFrancisco Lopez
2017-11-17Some fixes after rebaseFrancisco Lopez
2017-11-17Fix OAuth API and RSS rate limitingMichael Kozono
2017-11-17Add request throttlesMichael Kozono
2017-11-16Adds Rubocop rule for line break after guard clauseJacopo
Adds a rubocop rule (with autocorrect) to ensure line break after guard clauses.
2017-11-02Remove authentication using user.private_tokenDouwe Maan
2017-10-20URI decode Page-Title header to preserve UTF-8 charactersToon Claes
2017-10-04Fix username and ID not logging in production_json.log for Git activityStan Hu
Devise sets `current_user`, but not all controllers authenticate users by session tokens. Try to use the controller-defined `authenticated_user` if `current_user` is not available. Closes gitlab-org/gitlab-ee#3611
2017-09-26Encode Page-Title header as ISO-8859-1Douwe Maan
2017-09-26Add Page-Title header to tree and blob JSON endpointsDouwe Maan
2017-09-01Rollsback changes made to signing_enabled.Tiago Botelho
2017-08-09Enable the Layout/SpaceBeforeBlockBraces copRémy Coutable
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-08-07GRPC::Unavailable (< GRPC::BadStatus) is wrapped in a CommandErrorBob Van Landuyt
2017-08-04Add a Circuitbreaker for storage pathsBob Van Landuyt
2017-07-28Add remote IP, user ID and username to JSON lograge outputStan Hu
This makes the logs a bit more useful to search requests by users.
2017-07-13Fixes needed when GitLab sign-in is not enabledRobin Bobbitt
When sign-in is disabled: - skip password expiration checks - prevent password reset requests - don’t show Password tab in User Settings - don’t allow login with username/password for Git over HTTP requests - render 404 on requests to Profiles::PasswordsController
2017-07-06Allow to enable the performance bar per user or Flipper groupRémy Coutable
A `performance_team` Flipper group has been created. By default this group is nil but this can be customized in `gitlab.yml` via the performance_bar.allowed_group setting. Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-07-05Log rescued exceptions to SentryStan Hu
Support noticed that a number of exceptions, such as "Encoding::CompatibilityError (incompatible character encodings: UTF-8 and ASCII-8BIT)", failed to report to Sentry. The `rescue_from` in the ApplicationController prevented these exceptions from being recorded. This change ensures that these exceptions are properly captured.
2017-06-20Add rescue_from(ActionController::UnknownFormat) in Application ControllerPawel Chojnacki
2017-06-09Fix linting, route, and specsRémy Coutable
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-06-09Small adjustmentsRémy Coutable
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-06-09Don't use Pygment,rb, use Rouge instead, and put peek-pg in the :postgres groupRémy Coutable
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-06-09New performance bar that can be enabled with the `p b` shortcutRémy Coutable
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-05-25Merge branch '32748-emails-are-being-sent-with-the-wrong-language' into 'master'Douwe Maan
Bugfix: Always use the default language when generating emails. Closes #32748 See merge request !11662
2017-05-25Bugfix: Always use the default language when generating emails.Ruben Davila
There was a race condition issue when the application was generating an email and was using a language that was previously being used in other request.
2017-05-24atom links with rss token instead of private tokenAlexis Reigel
2017-05-09Merge request widget redesignFatih Acet
2017-05-05Redirect from redirect routes to canonical routesMichael Kozono
2017-05-04More updates for translations plus some refactoring.Ruben Davila
2017-05-03First round of updates from the code review.Ruben Davila
2017-05-02Merge branch 'master' into 28433-internationalise-cycle-analytics-pageRuben Davila