send-message in 1.11.4 results in StackOverflowError at java.io.UnixFileSystem.getBooleanAttributes0 (UnixFileSystem.java:-2)
spacegangster opened this issue · 6 comments
Hello.
Trying to use Postal on my Ubuntu 14.04. Version 1.11.4 throws the Exception. Version 1.11.3 works fine.
REPL pieces.
1.11.4
app.util.mail=> (send-message {:from "bimo@ognivo.me"
#_=> :to "sharp.maestro@gmail.com"
#_=> :subject "lol"
#_=> :body "<h1>KEKE</h1>"})
StackOverflowError java.io.UnixFileSystem.getBooleanAttributes0 (UnixFileSystem.java:-2)
app.util.mail=> *e
#error {
:cause nil
:via
[{:type java.lang.StackOverflowError
:message nil
:at [java.io.UnixFileSystem getBooleanAttributes0 "UnixFileSystem.java" -2]}]
:trace
[[java.io.UnixFileSystem getBooleanAttributes0 "UnixFileSystem.java" -2]
[java.io.UnixFileSystem getBooleanAttributes "UnixFileSystem.java" 242]
[java.io.File isFile "File.java" 882]
[postal.sendmail$find_sendmail$fn__31529 invoke "sendmail.clj" 61]
[clojure.core$filter$fn__4580 invoke "core.clj" 2686]
[clojure.lang.LazySeq sval "LazySeq.java" 40]
[clojure.lang.LazySeq seq "LazySeq.java" 49]
[clojure.lang.LazySeq first "LazySeq.java" 71]
[clojure.lang.RT first "RT.java" 653]
[clojure.core$first__4110 invoke "core.clj" 55]
[postal.sendmail$find_sendmail invoke "sendmail.clj" 61]
[postal.sendmail$sendmail_send invoke "sendmail.clj" 68]
... 500+ identical lines ...
[postal.sendmail$sendmail_send invoke "sendmail.clj" 68]]}
1.11.3
app.util.mail=> (send-message {:from "bimo@ognivo.me"
#_=> :to "sharp.maestro@gmail.com"
#_=> :subject "lol"
#_=> :body "<h1>KEKE</h1>"})
{:code 0, :error :SUCCESS, :message "message sent"}
app.util.mail=>
My system:
OS: Ubuntu 14.04
Java: java version "1.8.0_60" (HotSpot)
Using postfix to send mail.
Workaround: currently I just switched back to 1.11.3, which works fine.
I can provide more info if needed.
Same issue here. Downgrade also worked for me.
So sorry I haven't gotten to this! Happy to get PRs. I'll add you as a collaborator.
What are revisions for 0.11.3 and 0.11.4 releases? I don't see tags related to them.
I briefly looked at the issue and I'm not sure why is this happening.
I tested current master on my server that has this issue and in repl everything worked fine. I even received email from the server.
I'm not sure what happened to the 1.11 branch. Started a 2.0 branch off of master and released 2.0.0 with the newer lein release
functionality.
Seems to be fixed in 2.0.0.