-
-
Notifications
You must be signed in to change notification settings - Fork 103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Api for lack middleware #205
Api for lack middleware #205
Conversation
It could be better to decompose clog-connection:initialize into multiple functions which clog-system:initialize can call.
Error message: The value [NUMBER] is not of type CHARACTER when setting an element of (ARRAY CHARACTER). Thus, the updated code checks the type of RAW-BODY to decide what to do.
All looks good to me merging. Since CLAK is the only "lgpl" portion of clog and that creates some issues for some companies, we will likely have to support a hunchentoot direct version in the future. I have had two requests already. One already sent two emails with no response so far to Fukamachi to see if would consider switching license. Don't know if you have a better way to reach, would be good to leave as is. |
Proprietary softwares can include LGPL libraries. There should be no problems. Could you explain the issues a bit? I'll send this URL about our communication to another Lisper I'm more familiar with, who is much closer to Fukamachi. |
I do think it would be nice if woo worked too :)
…On Tue, Aug 9, 2022 at 9:17 PM David Botton ***@***.***> wrote:
I personally don't care if lgpl (I have written volumes of it in Ada) or
not, but apparently some lawyers in the US question have a big X on it
perhaps related to using it in a lisp image.
I can't imagine though there is much to gain virus licensing clack
anyways, I wonder why do it to start with when tons of his code are MIT/BSD.
Thanks!
On Tue, Aug 9, 2022 at 9:11 PM Shaka Chen ***@***.***>
wrote:
> Proprietary softwares can include LGPL libraries. Could you explain the
> issues a bit?
> https://twitter.com/nitro_idiot
> As far as I know, Fukamachi is probably active on Twitter.
> I only met him in two Common Lisp activities in Japan, so I guess I can't
> do the referral well.
>
> I'll send this URL about our communication to another Lisper I'm more
> familiar with, who is much closer to Fukamachi.
>
> —
> Reply to this email directly, view it on GitHub
> <#205 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/ACYUEFPYKJG2ZCPBLLUQM6TVYL6S3ANCNFSM557XRP2A>
> .
> You are receiving this because you modified the open/close state.Message
> ID: ***@***.***>
>
|
Thank you for explanation. This legal issue is too big to me. I've sent the URL of this thread to the Lisper I mentioned, who is close to Fukamachi. I think Fukamachi will reply tweets & messages on his Twitter, though. https://twitter.com/nitro_idiot |
Hi, I'm the author of Clack/Lack. I don't think the LLGPL license will be any legal problems while Clack and Lack are used just as a library, as Shaka said. So, I changed those licenses to MIT. |
I agree :) Truly appreciated! Thanks! |
I personally don't care if lgpl (I have written volumes of it in Ada) or
not, but apparently some lawyers in the US question have a big X on it
perhaps related to using it in a lisp image.
I can't imagine though there is much to gain virus licensing clack anyways,
I wonder why do it to start with when tons of his code are MIT/BSD.
Thanks!
…On Tue, Aug 9, 2022 at 9:11 PM Shaka Chen ***@***.***> wrote:
Proprietary softwares can include LGPL libraries. Could you explain the
issues a bit?
https://twitter.com/nitro_idiot
As far as I know, Fukamachi is probably active on Twitter.
I only met him in two Common Lisp activities in Japan, so I guess I can't
do the referral well.
I'll send this URL about our communication to another Lisper I'm more
familiar with, who is much closer to Fukamachi.
—
Reply to this email directly, view it on GitHub
<#205 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACYUEFPYKJG2ZCPBLLUQM6TVYL6S3ANCNFSM557XRP2A>
.
You are receiving this because you modified the open/close state.Message
ID: ***@***.***>
|
Brief
More Info
API for Prepending Lack Middleware
I want it. Please let me add this if you think that's ok. 😁
Coding style tweak
Above 3 commits are coding style tweaks. Feeling free to tell me if there's something you don't like. Or, you can directly modify it, but remember to add the new argument pair (if you agree) :lack-middleware-list lack-middleware-list when calling CLOG-CONNECTION:INITIALIZE as your original style.
Fixed an emergent bug after adding the Lack Middleware api.
Environments
Operating System & Hardware: MacOS Monterey 12.5 with M1 Pro
Common Lisp Implementation: SBCL 2.2.5
Browser: Safari Version 15.6 (17613.3.9.1.5)
Reproduction
The bug had appeared whenever adding more than 1 Lack Middlewares by :lack-middleware-list.
If anyone is interested, you here's the branch to reproduce the bug.
error-test-case-when-x-www-form-urlencoded-and-more-middlewares
Then submit anything via the Post Form
Then the server side error
Fix
This commit fixed the error. fixed read-sequence type error when there are more lack middlewares
I didn't add
circular-streams
intoclog.asd
becauselack-request
has already depended oncircular-streams
,On this branch error-fixed-with-test-case-for-api-for-lack-middleware you can test the patch since it also contains a modified version of tutorial 17 with 2 prepended lack middlewares.