kisitu hudson | 19 Aug 18:12 2011
Picon

help with {yaws_api,ethml_attrs,1}

Hello ,guys

I'm using yaws.1.9.1 on ubuntu 10.04  but i'm getting an error when my page is being render on the fly, this because i'm calling a functional object in the ehtml
 
{td,[{class,fun(Total)-> case  Total >= "50" of true -> ""; false -> "retake" end end}],Total}



=ERROR REPORT==== 19-Aug-2011::18:55:17 ===
<pre> 
{if_clause,[{yaws_api,ehtml_attrs,1},
            {yaws_api,ehtml_expand,1},
            {yaws_api,ehtml_expand,1},
            {yaws_api,ehtml_expand,1},
            {yaws_api,ehtml_expand,1},
            {yaws_api,ehtml_expand,1},
            {yaws_api,ehtml_expand,1},
            {yaws_api,ehtml_expand,1}]}
 </pre>

--
Best regards

Hudson K

------------------------------------------------------------------------------
Get a FREE DOWNLOAD! and learn more about uberSVN rich system, 
user administration capabilities and model configuration. Take 
the hassle out of deploying and managing Subversion and the 
tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@...
https://lists.sourceforge.net/lists/listinfo/erlyaws-list
Steve Vinoski | 22 Aug 16:24 2011
Picon

Re: help with {yaws_api,ethml_attrs,1}

On Fri, Aug 19, 2011 at 12:12 PM, kisitu hudson <hudzkis@...> wrote:
> Hello ,guys
> I'm using yaws.1.9.1 on ubuntu 10.04  but i'm getting an error when my page
> is being render on the fly, this because i'm calling a functional object in
> the ehtml
>
> {td,[{class,fun(Total)-> case  Total >= "50" of true -> ""; false ->
> "retake" end end}],Total}

In ehtml, attribute values may be only strings, atoms, integers, or floats.

--steve

------------------------------------------------------------------------------
uberSVN's rich system and user administration capabilities and model 
configuration take the hassle out of deploying and managing Subversion and 
the tools developers use with it. Learn more about uberSVN and get a free 
download at:  http://p.sf.net/sfu/wandisco-dev2dev
Claes Wikstrom | 23 Aug 07:59 2011

Re: help with {yaws_api,ethml_attrs,1}

On 08/22/2011 04:24 PM, Steve Vinoski wrote:
> On Fri, Aug 19, 2011 at 12:12 PM, kisitu hudson<hudzkis@...>  wrote:
>> Hello ,guys
>> I'm using yaws.1.9.1 on ubuntu 10.04  but i'm getting an error when my page
>> is being render on the fly, this because i'm calling a functional object in
>> the ehtml
>>
>> {td,[{class,fun(Total)->  case  Total>= "50" of true ->  ""; false ->
>> "retake" end end}],Total}

OTOH, having funs() there is not a bad idea, it's a great idea. Why 
haven't we had that before .... It makes obvious sense.

/klacke

------------------------------------------------------------------------------
Get a FREE DOWNLOAD! and learn more about uberSVN rich system, 
user administration capabilities and model configuration. Take 
the hassle out of deploying and managing Subversion and the 
tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2
Kenji Rikitake | 29 Aug 05:38 2011
Picon

HTTP Range requests - how Yaws affected or not?

Apache HTTPD vulnerability has been well-known and exploited these days:
http://mail-archives.apache.org/mod_mbox/httpd-announce/201108.mbox/%3C20110826103531.998348F82-8LWK89apvwiY1pf4d8vP8EB+6BGkLq7r <at> public.gmane.org%3E

(Note that Yaws is not affected, so long as I know from testing the
killapache.pl script on the localhost interface.)

This vulnerability indicates RFC2616 Range request can be abused for DoS
attacks and a protocol update is proposed:
http://trac.tools.ietf.org/wg/httpbis/trac/ticket/311

I wonder how this affects to Yaws design and architecture.

Regards,
Kenji Rikitake

------------------------------------------------------------------------------
EMC VNX: the world's simplest storage, starting under $10K
The only unified storage solution that offers unified management 
Up to 160% more powerful than alternatives and 25% more efficient. 
Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev
Steve Vinoski | 29 Aug 06:43 2011
Picon

Re: HTTP Range requests - how Yaws affected or not?

On Sun, Aug 28, 2011 at 11:38 PM, Kenji Rikitake <kenji.rikitake@...> wrote:
> Apache HTTPD vulnerability has been well-known and exploited these days:
> http://mail-archives.apache.org/mod_mbox/httpd-announce/201108.mbox/%3C20110826103531.998348F82-8LWK89apvwiY1pf4d8vP8EB+6BGkLq7r <at> public.gmane.org%3E
>
> (Note that Yaws is not affected, so long as I know from testing the
> killapache.pl script on the localhost interface.)

Thanks for testing this; I had grabbed the perl script but had not yet
had a chance to try it out.

> This vulnerability indicates RFC2616 Range request can be abused for DoS
> attacks and a protocol update is proposed:
> http://trac.tools.ietf.org/wg/httpbis/trac/ticket/311
>
> I wonder how this affects to Yaws design and architecture.

I don't think it will have significant impact, but we'll have to take
a closer look if the HTTPbis Range limitations proposal goes through.

thanks,
--steve

------------------------------------------------------------------------------
EMC VNX: the world's simplest storage, starting under $10K
The only unified storage solution that offers unified management 
Up to 160% more powerful than alternatives and 25% more efficient. 
Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev

Gmane