question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

EmbeddedJavalin does not reject all enableStaticFiles overloads

See original GitHub issue

Actual behavior (the bug) Calling .enableStaticFiles("/foo", Location.CLASSPATH) on an EmbeddedJavalin instance does not yield an exception as a call to .enableStaticFiles("/foo") would, but the registration is silently ignored.

Expected behavior An exception indicating that the call is unsupported in embedded mode.

To Reproduce Steps to reproduce the behavior

Additional context Looks like we need an additional override on EmbeddedJavalin of the form:

override fun enableStaticFiles(classpathPath: String, loc: Location) = notAvailable("enableStaticFiles()")

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
tipsycommented, Feb 22, 2019

Please go ahead 😃

1reaction
stevebarhamcommented, Feb 4, 2019

Sure; won’t be until this evening though unfortunately!

Read more comments on GitHub >

github_iconTop Results From Across the Web

EmbeddedJavalin does not reject all enableStaticFiles overloads ...
Actual behavior (the bug) Calling .enableStaticFiles("/foo", Location.CLASSPATH) on an EmbeddedJavalin instance does not yield an exception as a call to .
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found