Vertx-web: Router behavior change for static files between 3.9.1 and 3.9.2

Created on 31 Jul 2020  路  4Comments  路  Source: vert-x3/vertx-web

Version

3.9.2

Not reproducible in 3.9.1

Context

We are trying to serve static files using vertx-web Router with StaticHandler, and we observe a difference of behavior with the same application code, except the Vertx version : 3.9.1 is working as before, 3.9.2 does not work as expected.
We have been searching in 3.9.2 Release notes what could be the origin of the change, and we did not find. So maybe it is a bug. If not, could you explain where the change comes from ?

Do you have a reproducer?

Yes.

https://github.com/Olympe-ch/reproducer-vert.x-router

Steps to reproduce

See https://github.com/Olympe-ch/reproducer-vert.x-router/blob/master/README.MD

Extra

JDK11, Mac OS X, reproduced also on Ubuntu 18.04

bug

All 4 comments

This was a bad behavior that has been fixed by https://github.com/vert-x3/vertx-web/issues/1658

To explain that this was a bug, see the given reproducer you have 2 files:

  • index.html
  • check.js

Both are on the same directory but the html refers to the script as static/check.js as this is a relative path, the location is not correct as both files reside on the same dir. Update the reference to check.js or use a absolute path /static/check.js.

Hi Paulo,

do you mean this bug fix is missing in 3.9.2 Release notes ? https://github.com/vert-x3/wiki/wiki/3.9.2-Release-Notes

Yes, I'll add it.

Thanks a lot for the work done !

Was this page helpful?
0 / 5 - 0 ratings