Re: [WebDNA] lighttpd problem with returnraw http header

This WebDNA talk-list message is from

2018


It keeps the original formatting.
numero = 113979
interpreted = N
texte = 1579 --Apple-Mail=_58185E7E-D74C-49E6-B0B9-9F82B552B58D Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Yeah I know, apache, older versions, etc=E2=80=A6 There are solutions = but that does not solve the problem or answer my question. Redirect is bad because I want proper http answers and proper HTML on = all request not redirects to error pages or something=E2=80=A6 But Im gonna take a look into the ErrorMessages.db - never used/needed = it till now=E2=80=A6 Thanks. I know that probably seems a bit ambiguous/pedantic but yeah=E2=80=A6 Cheers Noah > On 15 Feb 2018, at 21:35, Stuart Tremain wrote: >=20 > Or you could use WebDNAs built in error handler in ErrorMessages.db >=20 > Change this line: > TemplateNotFoundError: template '[param1]' not found >=20 > to: > TemplateNotFound[REDIRECT dispatch.dna] >=20 >=20 > Kind regards >=20 > Stuart Tremain > Pharoah Lane Software > AUSTRALIA > webdna@idfk.com.au >=20 >=20 >=20 >=20 >=20 >=20 >> 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 >=20 > --------------------------------------------------------- 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=_58185E7E-D74C-49E6-B0B9-9F82B552B58D Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 Yeah = I know, apache, older versions, etc=E2=80=A6 There are solutions but = that does not solve the problem or answer my question.

Redirect is bad because I want proper = http answers and proper HTML on all request not redirects to error pages = or something=E2=80=A6
But Im gonna take a look into = the ErrorMessages.db - never used/needed it till now=E2=80=A6 = Thanks.
I know that probably seems a bit = ambiguous/pedantic but yeah=E2=80=A6

Cheers
Noah

On = 15 Feb 2018, at 21:35, Stuart Tremain <webdna@idfk.com.au> = wrote:

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

= --------------------------------------------------------- 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=_58185E7E-D74C-49E6-B0B9-9F82B552B58D-- . 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)
1579 --Apple-Mail=_58185E7E-D74C-49E6-B0B9-9F82B552B58D Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Yeah I know, apache, older versions, etc=E2=80=A6 There are solutions = but that does not solve the problem or answer my question. Redirect is bad because I want proper http answers and proper HTML on = all request not redirects to error pages or something=E2=80=A6 But Im gonna take a look into the ErrorMessages.db - never used/needed = it till now=E2=80=A6 Thanks. I know that probably seems a bit ambiguous/pedantic but yeah=E2=80=A6 Cheers Noah > On 15 Feb 2018, at 21:35, Stuart Tremain wrote: >=20 > Or you could use WebDNAs built in error handler in ErrorMessages.db >=20 > Change this line: > TemplateNotFoundError: template '[param1]' not found >=20 > to: > TemplateNotFound[REDIRECT dispatch.dna] >=20 >=20 > Kind regards >=20 > Stuart Tremain > Pharoah Lane Software > AUSTRALIA > webdna@idfk.com.au >=20 >=20 >=20 >=20 >=20 >=20 >> 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 >=20 > --------------------------------------------------------- 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=_58185E7E-D74C-49E6-B0B9-9F82B552B58D Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 Yeah = I know, apache, older versions, etc=E2=80=A6 There are solutions but = that does not solve the problem or answer my question.

Redirect is bad because I want proper = http answers and proper HTML on all request not redirects to error pages = or something=E2=80=A6
But Im gonna take a look into = the ErrorMessages.db - never used/needed it till now=E2=80=A6 = Thanks.
I know that probably seems a bit = ambiguous/pedantic but yeah=E2=80=A6

Cheers
Noah

On = 15 Feb 2018, at 21:35, Stuart Tremain <webdna@idfk.com.au> = wrote:

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

= --------------------------------------------------------- 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=_58185E7E-D74C-49E6-B0B9-9F82B552B58D-- . Noah Valley

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:

Not really WebCat (1997) Artwork (1997) IBM DB2 (2000) emailer (1997) [WebDNA] Timer (2009) Conditional searching & displaying (1997) WebCatalog can't find database (1997) Old $ commands and migration (2004) CSS (2001) (2000) Strange search... (2001) Nested tags count question (1997) Unable to view next 101-200 (1997) show all problem (1997) WebCat2b13MacPlugin - [math][date][/math] problem (1997) Re:no [search] with NT (1997) more on my bbs (1997) Grep Question - MAY NEVER BE SOLVED (2003) Great product and great job ! (1997) Database Options (1997)