Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-4485

Should return 404 when the sourceMappingURL is not found

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Normal
    • 9.0.1
    • None
    • None
    • None

    Description

      Steps to Reproduce

      Enable source map, load a js file with sourceMappingURL but the map file is not found.
      (see linked issue)

      simpler reproducing steps, just try loading a source map URL
      e.g.:
      http://localhost:8080/zkau/web/something.js.map

      Current Result

      Exception

      Expected Result

      404 no found

      Debug Information

      the current implementation behaves differently depending on the debug-js config flag

      <debug-js>true</debug-js> -> 500

      <debug-js>false</debug-js> -> 404

      also surprising are the different error response status codes/messages (compare for debugging purposes):

      Workaround


      Attachments

        Issue Links

          Activity

            People

              DevChu DevChu
              DevChu DevChu
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: