These are chat archives for read-write-web/chat

5th
Sep 2018
Henry Story
@bblfish
Sep 05 2018 15:25
ah
I wonder if the Play modules got accidentally deleted.
I had to patch Play to get WebID-TLS to work, as they used Netty, and netty allowed the server to request the client certificate during an http connection.
so that is the patch needed.
Henry Story
@bblfish
Sep 05 2018 15:31
I think I once accidentally deleted rww-play that I had compiled.
Tim McIver
@tmciver
Sep 05 2018 15:32
So, I'd like to help with this, if possible. Let me know what you need help with. Does it makes sense to spend time getting the current code working by fixing the above issues?
Henry Story
@bblfish
Sep 05 2018 15:33
I think you would just need to compile this https://github.com/read-write-web/Play20
which is a bit tedious.
but well can be done in an hour or under
then at least you can try it out.
I am now about to write my 2nd year report, have to move house, and go to the UK this month to see my supervisor, so it's busy. But after that it will be good to start a rewrite using Akka-Http (which is really cool library). (Unless you have know something better).
The sad thing is that Akka does not have support for HTTP tls renegotiation.
(I think - they may have added it. There was a patch a year or so ago on that)
But one can do a WebID over JS login to replace the TLS. I think they HTTP teams are working on better integrating TLS into HTTP, so that is the thing to look out for.
Henry Story
@bblfish
Sep 05 2018 15:38
Here's what I am doing at the moment https://twitter.com/bblfish/status/1036869187061338114
Tim McIver
@tmciver
Sep 05 2018 15:41
Awesome. I'll read that over.
So, should Play20 be a git submodule? I'm a bit confused by this.
Henry Story
@bblfish
Sep 05 2018 15:42
Actually I am not sure. It probably should. I am not sure why that does not work, or if I thought it was a bit heavy to add there.
That is why I put the compiled version online on my server
and that is probably what is being called when you try to run.
Tim McIver
@tmciver
Sep 05 2018 15:43
OK. So it seems that build should be called at some point then?
Henry Story
@bblfish
Sep 05 2018 15:43
if I remember correctly $ sbt
then compile
or build
then run
Tim McIver
@tmciver
Sep 05 2018 15:44
I'm no Scala/SBT expert and so it's not clear to me how that ends up as a dependency in the correct place.
Henry Story
@bblfish
Sep 05 2018 15:44
how what end up as a dep...?
Tim McIver
@tmciver
Sep 05 2018 15:45
Play20. My understanding is that deps end up in .ivy2 directory and so SBT expects them to be there. I may be wrong . . .
I can just try it out. I guess I have to start by building it. As I said above, the one on your server seems to be corrupt . . .
that download Play
actually it looks like they are still there https://bblfish.net/work/repo/builds/Play2/
Tim McIver
@tmciver
Sep 05 2018 15:47
Oh, it's not corrupt. I see now that what gets downloaded is the html file from a 301 redirect. d'Oh!
Henry Story
@bblfish
Sep 05 2018 15:47
ah
Tim McIver
@tmciver
Sep 05 2018 15:48
OK, I'll try to get this going and report back. :)
Henry Story
@bblfish
Sep 05 2018 15:48
I moved to debian and so got a new Apache server. Perhaps some of the config has changed on my end...
Tim McIver
@tmciver
Sep 05 2018 15:55
Concerning http libraries: I have a little experience with akka-http but I've heard that http4s (https://http4s.org/) is more functional than akka-http so I'd be inclined to go with that on my own projects just for that reason. It is put out by Typelevel, so I suppose the claim is probably true. :)
Henry Story
@bblfish
Sep 05 2018 15:57
I don't know how it has evolved http4s. I looked at it. Akka has backpressure support and lots of very useful things. I'd like to essentially make the new server so good that I can run my web server on it.
and have it stream video and deal with huge loads (not just mine, but even for large companies)
so that would need to be looked at
Tim McIver
@tmciver
Sep 05 2018 16:01
:thumbsup: