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

Should return 404 when the sourceMappingURL is not found

XMLWordPrintable

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

      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


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

              Created:
              Updated:
              Resolved: