Re: [WebDNA] lighttpd problem with returnraw http header

This WebDNA talk-list message is from

2018


It keeps the original formatting.
numero = 113975
interpreted = N
texte = 1575 --Apple-Mail=_EDFCA5D9-2CA9-4AD5-93B0-A1CF138CA826 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Or you could use WebDNAs built in error handler in ErrorMessages.db Change this line: TemplateNotFoundError: template '[param1]' not found to: TemplateNotFound[REDIRECT dispatch.dna] Kind regards Stuart Tremain Pharoah Lane Software AUSTRALIA webdna@idfk.com.au > On 15 Feb 2018, at 23:11, Kenneth Grome = wrote: >=20 > Hi Noah, >=20 > Most of us will not have this problem because we use apache. >=20 > Are you forced to use the new version of lighttpd, or can you > revert to the previous version? If you can go back to the > previous version I suggest doing so since it was working the way > you want it to work. >=20 > Regards, > Kenneth Grome > WebDNA Solutions > http://www.webdnasolutions.com > Web Database Systems and Linux Server Administration >=20 >=20 >=20 > On 02/15/2018 04:49 AM, Noah Valley wrote: >> Hi everybody, >>=20 >> We use lighttpd with webdna 8. >> We have set server.error_handler_404 =3D =E2=80=9Cdispatch.dna=E2=80=9D= - Now all >> request go to dispatch.dna (except static files (images, css, = js,=E2=80=A6)) >> In dispatch.dna webdna looks up [thisurl] in the database (and >> does lots of other stuff) and decides which HTTP response to >> return (200,401,404,301,302,=E2=80=A6) with returnraw (see code = below). >>=20 >> It has all worked fine till lighttpd 1.4.45, now with 1.4.46 >> something changed: >> Now it works kinda for 404,301,302. >> It does not with 200 (I get 2 headers in the http response, only >> the first is used, the second is shown as plain text, but then the >> content-length is not correct=E2=80=A6 - idk). >> Also 401: The server answers with a 401 but does not deliver my >> html-error-page but delivers the standard html =E2=80=9C401 - = Unauthorized=E2=80=9D... >>=20 >> Do you have the same problem? Is it a bug, or it just now works >> like this? Ist there any =E2=80=9Cfix=E2=80=9D on the horizon for = webdna or is it >> a lighttpd-thing? >>=20 >> Thanks >> Noah > --------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list talk@webdna.us > To unsubscribe, E-mail to: talk-leave@webdna.us > archives: http://www.webdna.us/page.dna?numero=3D55 > Bug Reporting: support@webdna.us --Apple-Mail=_EDFCA5D9-2CA9-4AD5-93B0-A1CF138CA826 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 Or = you could use WebDNAs built in error handler = in ErrorMessages.db

Change this line:
TemplateNotFoundError: = template '[param1]' not found

to:
TemplateNotFound[REDIRECT dispatch.dna]


Kind regards

Stuart Tremain
Pharoah Lane = Software
AUSTRALIA






On 15 Feb 2018, at 23:11, Kenneth Grome <ken@webdnasolutions.com> wrote:

Hi = Noah,

Most of us will not have this problem = because we use apache.

Are you forced to = use the new version of lighttpd, or can you
revert to the = previous version?  If you can go back to the
previous = version I suggest doing so since it was working the way
you = want it to work.

Regards,
Kenneth Grome
WebDNA Solutions
http://www.webdnasolutions.com
Web Database = Systems and Linux Server Administration



On 02/15/2018 04:49 AM, Noah Valley wrote:
Hi everybody,

We use lighttpd with webdna 8.
We = have set server.error_handler_404 =3D =E2=80=9Cdispatch.dna=E2=80=9D = - Now all
request go to dispatch.dna (except static files = (images, css, js,=E2=80=A6))
In dispatch.dna webdna looks up [thisurl] in the = database (and
does lots of other stuff) and decides which = HTTP response to
return (200,401,404,301,302,=E2=80=A6) = with returnraw (see code below).

It has all = worked fine till lighttpd 1.4.45, now with 1.4.46
something = changed:
Now it works kinda for 404,301,302.
It does not with 200 (I get 2 headers in the http response, = only
the first is used, the second is shown as plain text, = but then the
content-length is not correct=E2=80=A6 - = idk).
Also 401: The server answers with a 401 but does not = deliver my
html-error-page but delivers the standard html = =E2=80=9C401 - Unauthorized=E2=80=9D...

Do = you have the same problem? Is it a bug, or it just now works
like this? Ist there any =E2=80=9Cfix=E2=80=9D on the horizon = for webdna or is it
a lighttpd-thing?

Thanks
Noah
--------------------------------------------------= -------
This message is sent to you because you are = subscribed to
the mailing list talk@webdna.us
To unsubscribe, E-mail to: talk-leave@webdna.us
archives: http://www.webdna.us/page.dna?numero=3D55
Bug Reporting: support@webdna.us

= --------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list talk@webdna.us To unsubscribe, E-mail to: talk-leave@webdna.us archives: http://www.webdna.us/page.dna?numero=3D55 Bug Reporting: support@webdna.us --Apple-Mail=_EDFCA5D9-2CA9-4AD5-93B0-A1CF138CA826-- . Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] lighttpd problem with returnraw http header (Brian Harrington 2018)
  2. Re: [WebDNA] lighttpd problem with returnraw http header (Kenneth Grome 2018)
  3. Re: [WebDNA] lighttpd problem with returnraw http header (Noah Valley 2018)
  4. Re: [WebDNA] lighttpd problem with returnraw http header (Stuart Tremain 2018)
  5. Re: [WebDNA] lighttpd problem with returnraw http header (Kenneth Grome 2018)
  6. [WebDNA] lighttpd problem with returnraw http header (Noah Valley 2018)
1575 --Apple-Mail=_EDFCA5D9-2CA9-4AD5-93B0-A1CF138CA826 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Or you could use WebDNAs built in error handler in ErrorMessages.db Change this line: TemplateNotFoundError: template '[param1]' not found to: TemplateNotFound[REDIRECT dispatch.dna] Kind regards Stuart Tremain Pharoah Lane Software AUSTRALIA webdna@idfk.com.au > On 15 Feb 2018, at 23:11, Kenneth Grome = wrote: >=20 > Hi Noah, >=20 > Most of us will not have this problem because we use apache. >=20 > Are you forced to use the new version of lighttpd, or can you > revert to the previous version? If you can go back to the > previous version I suggest doing so since it was working the way > you want it to work. >=20 > Regards, > Kenneth Grome > WebDNA Solutions > http://www.webdnasolutions.com > Web Database Systems and Linux Server Administration >=20 >=20 >=20 > On 02/15/2018 04:49 AM, Noah Valley wrote: >> Hi everybody, >>=20 >> We use lighttpd with webdna 8. >> We have set server.error_handler_404 =3D =E2=80=9Cdispatch.dna=E2=80=9D= - Now all >> request go to dispatch.dna (except static files (images, css, = js,=E2=80=A6)) >> In dispatch.dna webdna looks up [thisurl] in the database (and >> does lots of other stuff) and decides which HTTP response to >> return (200,401,404,301,302,=E2=80=A6) with returnraw (see code = below). >>=20 >> It has all worked fine till lighttpd 1.4.45, now with 1.4.46 >> something changed: >> Now it works kinda for 404,301,302. >> It does not with 200 (I get 2 headers in the http response, only >> the first is used, the second is shown as plain text, but then the >> content-length is not correct=E2=80=A6 - idk). >> Also 401: The server answers with a 401 but does not deliver my >> html-error-page but delivers the standard html =E2=80=9C401 - = Unauthorized=E2=80=9D... >>=20 >> Do you have the same problem? Is it a bug, or it just now works >> like this? Ist there any =E2=80=9Cfix=E2=80=9D on the horizon for = webdna or is it >> a lighttpd-thing? >>=20 >> Thanks >> Noah > --------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list talk@webdna.us > To unsubscribe, E-mail to: talk-leave@webdna.us > archives: http://www.webdna.us/page.dna?numero=3D55 > Bug Reporting: support@webdna.us --Apple-Mail=_EDFCA5D9-2CA9-4AD5-93B0-A1CF138CA826 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 Or = you could use WebDNAs built in error handler = in ErrorMessages.db

Change this line:
TemplateNotFoundError: = template '[param1]' not found

to:
TemplateNotFound[REDIRECT dispatch.dna]


Kind regards

Stuart Tremain
Pharoah Lane = Software
AUSTRALIA






On 15 Feb 2018, at 23:11, Kenneth Grome <ken@webdnasolutions.com> wrote:

Hi = Noah,

Most of us will not have this problem = because we use apache.

Are you forced to = use the new version of lighttpd, or can you
revert to the = previous version?  If you can go back to the
previous = version I suggest doing so since it was working the way
you = want it to work.

Regards,
Kenneth Grome
WebDNA Solutions
http://www.webdnasolutions.com
Web Database = Systems and Linux Server Administration



On 02/15/2018 04:49 AM, Noah Valley wrote:
Hi everybody,

We use lighttpd with webdna 8.
We = have set server.error_handler_404 =3D =E2=80=9Cdispatch.dna=E2=80=9D = - Now all
request go to dispatch.dna (except static files = (images, css, js,=E2=80=A6))
In dispatch.dna webdna looks up [thisurl] in the = database (and
does lots of other stuff) and decides which = HTTP response to
return (200,401,404,301,302,=E2=80=A6) = with returnraw (see code below).

It has all = worked fine till lighttpd 1.4.45, now with 1.4.46
something = changed:
Now it works kinda for 404,301,302.
It does not with 200 (I get 2 headers in the http response, = only
the first is used, the second is shown as plain text, = but then the
content-length is not correct=E2=80=A6 - = idk).
Also 401: The server answers with a 401 but does not = deliver my
html-error-page but delivers the standard html = =E2=80=9C401 - Unauthorized=E2=80=9D...

Do = you have the same problem? Is it a bug, or it just now works
like this? Ist there any =E2=80=9Cfix=E2=80=9D on the horizon = for webdna or is it
a lighttpd-thing?

Thanks
Noah
--------------------------------------------------= -------
This message is sent to you because you are = subscribed to
the mailing list talk@webdna.us
To unsubscribe, E-mail to: talk-leave@webdna.us
archives: http://www.webdna.us/page.dna?numero=3D55
Bug Reporting: support@webdna.us

= --------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list talk@webdna.us To unsubscribe, E-mail to: talk-leave@webdna.us archives: http://www.webdna.us/page.dna?numero=3D55 Bug Reporting: support@webdna.us --Apple-Mail=_EDFCA5D9-2CA9-4AD5-93B0-A1CF138CA826-- . Stuart Tremain

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

2nd WebCatalog2 Feature Request (1996) Where is eudora plugin? (1998) [WebDNA] Connect to MS SQL (2013) Another question about credit cards (1997) Re[3]: Problem with new formvariables (2000) MORE: Can I determine where they are coming from? (2000) MacFinder -- a new WebDNA web site (1998) [BULK] [WebDNA] Wishlist: ignore whitespace in database changes (2016) Thanks Grant (1997) Showif Context combined with Search (1997) WebDNA install - linux (permissions rehash?) (2002) Generating Report Totals (1997) Windows-based Code Editor (2002) WebCat2 - [format thousands] (1997) Bug? (1997) Problem: 3.0 doesn't update carts (1997) listing certain items in the orderfile (2002) WebCatalog sales (1997) WC1.6 to WC2 date formatting -FIXED! (1997) Re:Has this happened to you? (was:Emailer Chokes on bad address) (1997)