Project

General

Profile

Actions

Defect #32450

closed

Attempts to get "tribute.min.js.map" by Chrome DevTool causes RoutingError.

Defect #32450: Attempts to get "tribute.min.js.map" by Chrome DevTool causes RoutingError.

Added by Mizuki ISHIKAWA about 7 years ago. Updated almost 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Code cleanup/refactoring
Target version:
-
Resolution:
Fixed
Affected version:

Description

When using Chrome Devtools, Redmine raises No route matches [GET] "/javascripts/tribute.min.js.map".

Chrome DevTools looks for "/javascripts/tribute.min.js.map" based on sourceMappingURL = tribute.min.js.map in tribute-3.7.3.min.js.

Affected versions: trunk
Related to #31989


Files


Related issues 1 (0 open — 1 closed)

Related to Redmine - Feature #31989: Inline issue auto complete (#) in fields with text-formatting enabledClosedGo MAEDAActions

Updated by Mizuki ISHIKAWA about 7 years ago Actions #1

Deleting "// # sourceMappingURL = tribute.min.js.map" in tribute-3.7.3.min.js solves this problem

Updated by Go MAEDA about 7 years ago Actions #2

  • Status changed from New to Confirmed
  • Target version set to Candidate for next major release

Confirmed. Error logs like the following are recorded for each web access by Chrome with the DevTools opened.

Started GET "/javascripts/tribute.min.js.map" for ::1 at 2019-11-13 22:48:26 +0900

ActionController::RoutingError (No route matches [GET] "/javascripts/tribute.min.js.map"):

actionpack (5.2.3) lib/action_dispatch/middleware/debug_exceptions.rb:65:in `call'
actionpack (5.2.3) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call'
railties (5.2.3) lib/rails/rack/logger.rb:38:in `call_app'
railties (5.2.3) lib/rails/rack/logger.rb:26:in `block in call'
activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `block in tagged'
activesupport (5.2.3) lib/active_support/tagged_logging.rb:28:in `tagged'
activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `tagged'
railties (5.2.3) lib/rails/rack/logger.rb:26:in `call'
actionpack (5.2.3) lib/action_dispatch/middleware/remote_ip.rb:81:in `call'
actionpack (5.2.3) lib/action_dispatch/middleware/request_id.rb:27:in `call'
rack (2.0.7) lib/rack/method_override.rb:22:in `call'
rack (2.0.7) lib/rack/runtime.rb:22:in `call'
activesupport (5.2.3) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call'
actionpack (5.2.3) lib/action_dispatch/middleware/executor.rb:14:in `call'
actionpack (5.2.3) lib/action_dispatch/middleware/static.rb:127:in `call'
rack (2.0.7) lib/rack/content_length.rb:15:in `call'
rack (2.0.7) lib/rack/sendfile.rb:111:in `call'
railties (5.2.3) lib/rails/engine.rb:524:in `call'
puma (3.12.1) lib/puma/configuration.rb:227:in `call'
puma (3.12.1) lib/puma/server.rb:660:in `handle_request'
puma (3.12.1) lib/puma/server.rb:474:in `process_client'
puma (3.12.1) lib/puma/server.rb:334:in `block in run'
puma (3.12.1) lib/puma/thread_pool.rb:135:in `block in spawn_thread'

We can fix the error by one of the following means:

  • Remove '//# sourceMappingURL=tribute.min.js.map' from public/javascripts/tribute-3.7.3.min.js
  • Add real tribute.min.js.map
  • Add empty tribute.min.js.map

Updated by Marius BĂLTEANU about 7 years ago Actions #3

I'm in favour of adding tribute.min.js.map.

Updated by Go MAEDA about 7 years ago Actions #5

  • Related to Feature #31989: Inline issue auto complete (#) in fields with text-formatting enabled added

Updated by Mizuki ISHIKAWA about 7 years ago Actions #6

Go MAEDA wrote:

The attached patch adds tribute.min.js.map for Tribute 3.7.3.

I confirmed that exceptions do not occur after applying the patch attached with #32450#note-4.
The patch looks good.

@Marius BALTEANU What do you think about 0001-Add-tribute.min.js.map-in-order-to-avoid-errors-whil.patch?

Updated by Marius BĂLTEANU about 7 years ago Actions #7

Mizuki ISHIKAWA wrote:

Go MAEDA wrote:

The attached patch adds tribute.min.js.map for Tribute 3.7.3.

I confirmed that exceptions do not occur after applying the patch attached with #32450#note-4.
The patch looks good.

@Marius BALTEANU What do you think about 0001-Add-tribute.min.js.map-in-order-to-avoid-errors-whil.patch?

Looks good to me as well.

Updated by Go MAEDA about 7 years ago Actions #8

  • Target version changed from Candidate for next major release to 4.2.0

Mizuki and Marius, thank you for reviewing the patch. I am setting the target version to 4.2.0.

Updated by Go MAEDA about 7 years ago Actions #9

  • Subject changed from Nonexistent "/javascripts/tribute.min.js.map" is accessed (RoutingError) when using the Chrome DevTools to Attempts to get "tribute.min.js.map" by Chrome DevTool causes RoutingError.
  • Category changed from UI to Code cleanup/refactoring
  • Status changed from Confirmed to Closed
  • Assignee set to Go MAEDA
  • Resolution set to Fixed

Committed the patch. Thank you for reporting this issue.

Updated by Mischa The Evil almost 7 years ago Actions #10

  • Status changed from Closed to Reopened

This seems eligible to merge into 4.1-stable too IMHO (considering the inclusion of #31989 for 4.1.0). If so, then this issue doesn't have to be included on the changelog either too (thus the target version of this issue could then be cleared also...)

Updated by Go MAEDA almost 7 years ago Actions #11

I thought that the change does not have to be merged to 4.1-stable because the issue only affects developers and they usually use the trunk. But I don't object to merging into 4.1-stable.

Updated by Marius BĂLTEANU almost 7 years ago Actions #12

Go MAEDA wrote:

I thought that the change does not have to be merged to 4.1-stable because the issue only affects developers and they usually use the trunk. But I don't object to merging into 4.1-stable.

I'm in favour of merging this to 4.1.0.

Updated by Go MAEDA almost 7 years ago Actions #13

  • Status changed from Reopened to Closed
  • Target version deleted (4.2.0)

Merged to 4.1-stable. And clearing the target version because the fix is considered as a part of #31989.

Actions

Also available in: PDF Atom