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.

StaticContentResolution: problem with dot in resourcePackage

See original GitHub issue

Hi,

https://github.com/ktorio/ktor/blob/aa29ebcd48962e7bb3d80638c67c3fc45d640db3/ktor-server/ktor-server-core/src/io/ktor/content/StaticContentResolution.kt#L20

here it replaces dots with slashes (probably to translate package names to paths).

I’d like to load static files from a webjar:

static("static") {
  resources("/META-INF/resources/webjars/vue/2.5.16/dist")
}

now, the dots are replaced by slashes, causing the resolution to fail. How can I solve this?

kotlin staticcontentresolution fail

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
andreas-mauschcommented, Feb 12, 2020

I can confirm this is resolved now. 😃

Thank you very much @viniciusccarvalho @cy6erGn0m @e5l @magro

1reaction
andreas-mauschcommented, Feb 12, 2020

@magro Sounds promising. I’ll check it out.

Read more comments on GitHub >

github_iconTop Results From Across the Web

WhatsNew 1.6 | Ktor Framework
Darwin and Kotlin/JS: "List has more than one element" error when header like Content-type is duplicated in a response.
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