summaryrefslogtreecommitdiffstats
path: root/app/controllers/application_controller.rb
Commit message (Collapse)AuthorAgeFilesLines
* Add OAuth2 provider capability using doorkeeper gem (#24808).Marius Balteanu2025-06-121-0/+8
| | | | | | Patch by Jens Krämer (user:jkraemer). git-svn-id: https://svn.redmine.org/redmine/trunk@23837 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Reverts r23835 due to wrong issue ID (#40856).Marius Balteanu2025-06-121-8/+0
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@23836 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Add OAuth2 provider capability using doorkeeper gem (#40856).Marius Balteanu2025-06-111-0/+8
| | | | | | Patch by Jens Krämer (user:jkraemer). git-svn-id: https://svn.redmine.org/redmine/trunk@23835 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Simplify URL components omission in ApplicationController#verify_back_url ↵Go MAEDA2025-01-281-1/+1
| | | | | | (#41930). git-svn-id: https://svn.redmine.org/redmine/trunk@23469 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Redirection after signing in fails when the back_url includes a port number ↵Go MAEDA2025-01-281-4/+2
| | | | | | | | | (#41930). Patch by Kenta Kumojima (user:kumojima) and Go MAEDA (user:maeda). git-svn-id: https://svn.redmine.org/redmine/trunk@23465 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Remove navigation parameters from issue detail URLs after updates (#42073).Go MAEDA2025-01-071-3/+5
| | | | | | | Patch by Katsuya HIDAKA (user:hidakatsuya). git-svn-id: https://svn.redmine.org/redmine/trunk@23433 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Start working on replacing old icons with SVG icons (#23980):Marius Balteanu2024-08-291-0/+2
| | | | | | | | | | | * Introduces IconsHelper with methods to render SVG icon from a sprite file. * Adds SVG sprite file with icons mainly from Font Awesome, but also from Material Design Icons and Fluent UI System Icons (based on the work made by Takashi Kato (@tohosaku)). * Replaces specific icons with new SVG icons. * Temporarily keep all old CSS icon definitions for backard compatibility. git-svn-id: https://svn.redmine.org/redmine/trunk@22988 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix RuboCop offenses Style/NegatedIf and Style/NegatedWhile (#39887, #7770).Go MAEDA2024-08-251-3/+3
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@22987 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix "ArgumentError: Invalid response name: unprocessable_entity" with Rack ↵Go MAEDA2024-06-121-1/+1
| | | | | | | | | | | | 3.1.0+ in assert_response (#39889). Rack 3.1.0 changed the symbol for HTTP status code 422 from `:unprocessable_entity` to `:unprocessable_content`. Due to the change, `assert_response(:unprocessable_entity, ...)` raises ArgumentError with Rack 3.1.0+. This fix is a follow-up to r22837. git-svn-id: https://svn.redmine.org/redmine/trunk@22876 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Remove current year from source file copyright headers and update year in ↵Marius Balteanu2024-02-261-1/+1
| | | | | | footer to 2024 (#40043). git-svn-id: https://svn.redmine.org/redmine/trunk@22746 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Replaces @URI.parse@ with @Addressable::URI.parse(url)@ to enhance ↵Marius Balteanu2024-02-131-11/+10
| | | | | | | | robustness of @validate_back_url@ (#31831). Patch by Go MAEDA (@maeda). git-svn-id: https://svn.redmine.org/redmine/trunk@22710 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Stop appending the utf8 checkmark parameter to form URLs (#40190).Marius Balteanu2024-02-131-5/+0
| | | | | | Patch by Go MAEDA (@maeda). git-svn-id: https://svn.redmine.org/redmine/trunk@22709 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Remove @rss_*@ deprecated methods (#36806).Marius Balteanu2023-11-061-11/+0
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@22416 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix RuboCop offense Style/InverseMethods: Use `present?` instead of ↵Go MAEDA2023-03-251-1/+1
| | | | | | inverting `blank?` (#37248). git-svn-id: https://svn.redmine.org/redmine/trunk@22152 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Avoid double-render error with ApplicationController#find_optional_project ↵Go MAEDA2023-01-201-1/+4
| | | | | | | | | (#38063). Patch by Holger Just. git-svn-id: https://svn.redmine.org/redmine/trunk@22066 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Ruby 2.7: Fix RuboCop offense Performance/MapCompact (#38134).Go MAEDA2023-01-171-1/+1
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@22055 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix RuboCop offense Performance/BlockGivenWithExplicitBlock (#38146).Go MAEDA2023-01-111-1/+1
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@22027 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Update copyright year to 2023 (#38141).Go MAEDA2023-01-011-1/+1
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@22013 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Deprecate and rename rss_* methods to atom_* methods (#15118).Marius Balteanu2022-03-191-8/+19
| | | | | | | Patch by Mischa The Evil and Marius BĂLTEANU git-svn-id: http://svn.redmine.org/redmine/trunk@21467 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Disable API authentication with username and password when two-factor ↵Marius Balteanu2022-02-241-1/+8
| | | | | | | | | authentication is enabled for the user (#35001). Patch by Go MAEDA. git-svn-id: http://svn.redmine.org/redmine/trunk@21436 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Set default protect from forgery true (#36317).Marius Balteanu2022-01-221-7/+10
| | | | | | Patch by Takashi Kato. git-svn-id: http://svn.redmine.org/redmine/trunk@21379 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Update copyright year in source files to 2022 (#36379).Go MAEDA2022-01-021-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@21342 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix typo (#33521).Marius Balteanu2021-08-051-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@21140 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix that updating an issue from context menu to a none value do not set the ↵Marius Balteanu2021-08-051-2/+10
| | | | | | | | field to blank (#33521). Patch by Mizuki ISHIKAWA. git-svn-id: http://svn.redmine.org/redmine/trunk@21139 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Gracefully handle invalid query parameters for custom fields (#35312).Go MAEDA2021-05-281-0/+7
| | | | | | | Patch by Holger Just. git-svn-id: http://svn.redmine.org/redmine/trunk@21012 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix "DEPRECATION WARNING: Rendering actions with '.' in the name is ↵Go MAEDA2021-04-011-1/+1
| | | | | | | | | deprecated: common/error_messages.api" (#29914, #34984). Patch by Pavel Rosický. git-svn-id: http://svn.redmine.org/redmine/trunk@20897 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Reverts r20895 (#29914, #34985).Go MAEDA2021-04-011-1/+1
| | | | | | | Wrong issue number. git-svn-id: http://svn.redmine.org/redmine/trunk@20896 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix "DEPRECATION WARNING: Rendering actions with '.' in the name is ↵Go MAEDA2021-04-011-1/+1
| | | | | | | | | deprecated: common/error_messages.api" (#29914, #34985). Patch by Pavel Rosický. git-svn-id: http://svn.redmine.org/redmine/trunk@20895 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Remove #filename_for_content_disposition for MS browsers (#29914, #32914).Go MAEDA2021-04-011-1/+1
| | | | | | | Patch by Pavel Rosický. git-svn-id: http://svn.redmine.org/redmine/trunk@20892 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Update copyright year in source files to 2021 (#33069).Go MAEDA2021-03-251-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@20846 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix hard-coded error messages in ApplicationController (#33232).Go MAEDA2021-03-251-2/+2
| | | | | | | Contributed by Kam Nazir. git-svn-id: http://svn.redmine.org/redmine/trunk@20843 e93f8b46-1217-0410-a6f0-8f06a7374b81
* remove spaces inside {} of ApplicationControllerToshi MARUYAMA2020-11-171-3/+3
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@20409 e93f8b46-1217-0410-a6f0-8f06a7374b81
* use "do end" instead of {} at ApplicationControllerToshi MARUYAMA2020-10-111-10/+10
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@20142 e93f8b46-1217-0410-a6f0-8f06a7374b81
* add space after comma to ApplicationControllerToshi MARUYAMA2020-10-111-3/+3
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@20134 e93f8b46-1217-0410-a6f0-8f06a7374b81
* add empty line after guard clause to ApplicationControllerToshi MARUYAMA2020-09-171-0/+6
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@20046 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Adds a setting to disable/enable/require 2fa auth (#1237).Go MAEDA2020-08-291-1/+29
| | | | | | | Patch by Felix Schäfer. git-svn-id: http://svn.redmine.org/redmine/trunk@19989 e93f8b46-1217-0410-a6f0-8f06a7374b81
* avoid using rescue in its modifier form at ↵Toshi MARUYAMA2020-07-081-1/+6
| | | | | | ApplicationController#find_current_user git-svn-id: http://svn.redmine.org/redmine/trunk@19862 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Update copyright year in source files to 2020 (#33069).Go MAEDA2020-03-031-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@19553 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Validate back_url everywhere (#32850).Jean-Philippe Lang2020-02-021-3/+4
| | | | | | Patch by Holger Just. git-svn-id: http://svn.redmine.org/redmine/trunk@19488 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Expose validate_back_url as helper method (#32850).Jean-Philippe Lang2020-02-021-0/+2
| | | | | | Patch by Holger Just. git-svn-id: http://svn.redmine.org/redmine/trunk@19487 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Move duplicated back_url method from ApplicationHelper to ↵Jean-Philippe Lang2020-02-021-0/+6
| | | | | | | | ApplicationController (#32850). Patch by Holger Just. git-svn-id: http://svn.redmine.org/redmine/trunk@19486 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Ruby 2.7: Regexp#match and Regexp#match? with a nil argument are deprecated ↵Go MAEDA2019-11-301-1/+1
| | | | | | (#32527, #31500). git-svn-id: http://svn.redmine.org/redmine/trunk@19324 e93f8b46-1217-0410-a6f0-8f06a7374b81
* code layout clean up app/controllers/application_controller.rbToshi MARUYAMA2019-11-251-1/+3
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@19284 e93f8b46-1217-0410-a6f0-8f06a7374b81
* cleanup: rubocop: fix Layout/SpaceInsideParens in ↵Toshi MARUYAMA2019-11-241-1/+1
| | | | | | app/controllers/application_controller.rb git-svn-id: http://svn.redmine.org/redmine/trunk@19253 e93f8b46-1217-0410-a6f0-8f06a7374b81
* code cleanup: rubocop: fix Performance/RedundantBlockCall in ↵Toshi MARUYAMA2019-10-221-1/+1
| | | | | | app/controllers/application_controller.rb git-svn-id: http://svn.redmine.org/redmine/trunk@18821 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Update copyright year.Go MAEDA2019-05-251-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@18198 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Custom Exception classes should inherit StandardError instead of Exception ↵Go MAEDA2019-05-211-1/+1
| | | | | | | | | (#31387). Patch by Go MAEDA. git-svn-id: http://svn.redmine.org/redmine/trunk@18187 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Adds favorites and recently used projects lists to project jump box (#31355).Go MAEDA2019-05-201-0/+8
| | | | | | | Patch by Jens Krämer. git-svn-id: http://svn.redmine.org/redmine/trunk@18181 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Small refactorization of avatar methods (#31391).Go MAEDA2019-05-191-0/+3
| | | | | | | | | | | | | * move existing methods from ApplicationHelper to a new helper file (AvatarsHelper) * change default avatar size from 50 to 24 because most of the avatars are using the size 24 * class 'gravatar' is always added and all custom classes are appended * added user name as default title for avatar images * added two new methods: @assignee_avatar@ and @author_avatar@ Patch by Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@18175 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Use HTTP status code 403 instead of 401 when REST API is disabled (#30086).Go MAEDA2019-04-101-2/+7
| | | | | | | Patch by Yuichi HARADA. git-svn-id: http://svn.redmine.org/redmine/trunk@18055 e93f8b46-1217-0410-a6f0-8f06a7374b81