Thank you everyone, and Vadim especially!
For the moment (while Ring is not updated with the fix), I'm using
:jar-exclusions to exclude directory entries, as explained in Vadim's
Leiningen commit message
https://github.com/technomancy/leiningen/commit/5b97d9a47246af30d0e146f0c12cfa45fbf6953e
Xa
xavi writes:
> Does this mean that the problem was not completely solved in Ring 1.2?
> Argh! I'll try to take a look to Ring's code and see if I can find the
> problem and fix it.
I took another look, and it looks like it was fixed by the commit I
linked to previously, but then broken again a
As I was the one who caused this by fixing `lein uberjar` :), I've
submitted a pull request to ring which should fix improper
`resource-response` behaviour:
https://github.com/ring-clojure/ring/pull/97
2013 m. spalis 19 d., šeštadienis 04:02:06 UTC+3, xavi rašė:
>
> It seems it's this problem t
It seems it's this problem that somone else already reported a few days
ago...
https://github.com/ring-clojure/ring/issues/96
On Saturday, October 19, 2013 2:50:16 AM UTC+2, xavi wrote:
>
> If I comment out
> (wrap-resource "public")
> then it works (i.e. the uberjar produced by lein 2.3.3 s
If I comment out
(wrap-resource "public")
then it works (i.e. the uberjar produced by lein 2.3.3 serves the home
page).
Does this mean that the problem was not completely solved in Ring 1.2?
Argh! I'll try to take a look to Ring's code and see if I can find the
problem and fix it.
On the oth
xavi writes:
> @Phil I'm already using ring 1.2
Hm; it's probably the same problem manifested a different way
then. Something is assuming that any entry in a jar file is fair game
whether it's a directory or file.
-Phil
pgpcYIkWpcwtg.pgp
Description: PGP signature
@Phil I'm already using ring 1.2
$ lein deps :tree | grep ring
[compojure "1.1.5" :exclusions [[ring/ring-core]
[org.clojure/core.incubator] [clout]]]
[ring-basic-authentication "1.0.3"]
[ring-middleware-format "0.3.1" :exclusions [[org.clojure/tools.reader]]]
[ring "1.2.0"]
[ring/ring-co
I think this is due to a bug in older versions of Ring's wrap-resource
middleware:
https://github.com/ring-clojure/ring/commit/89033af49dfe3d6e6fcdebb3f5455f6de0979034
In versions of Ring older than 1.2.0, directory entries will be served out
of jar files as zero-length HTTP responses. Upgradin
How does your app serve up the home page?
Have you tried extracting the working uberjar and the broken uberjar and
comparing the resulting directory trees?
On Oct 18, 2013 5:11 PM, "xavi" wrote:
> Hello,
>
> I have a strange problem when running an uberjar produced by Leiningen
> 2.3.3, which do