ZnLineTooLong override alternative?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

ZnLineTooLong override alternative?

Sabine Manaa
Hi Sven, all,

I ran into the same problem as described here:

http://forum.world.st/ZnLineReader-set-limit-when-reading-a-header-td4649479.html#a4649489

My question is: that thread was created in 2012, perhaps today you have another alternative/idea to override it globally in ZNConstants. I want to avoid this.

The situation is:

I use lesscss. This creates a style tag like this:

<style type="text/css" id="less:files-RKALibrary-mainStylesFile"> ...a very very long css file string size about 100000... </style>
With a button click like this:

html button
        onClick: (html jQuery ajax callback: [ :eventData | ( Delay forSeconds: 10) wait. eventData inspect  ] value: (JSStream on:'jQuery(''#less\\:files-RKALibrary-mainStylesFile'').text()'));
                script: html jQuery this button;
                with: 'CSS File generieren'

I want to get the "very very long css file string" and use it (to create a css file from it).

This action is done not so often and I don't want to override the limit it for all requests.
I would have to change it to at least 150000 instead of currently 4096. I assume this would not be a good solution...

OTOH, this will be used only while a redesign is done, before going productive. So, in the worst case I will change it for 4 weeks during redesign. What do you think, does that make sense?

Background: I wrote a less editor for my app and the css designer will be able to edit the less code and see the changes immediately in the application.

Regards
Sabine

Reply | Threaded
Open this post in threaded view
|

Re: ZnLineTooLong override alternative?

Sven Van Caekenberghe-2
Hi,

The jQuery code is above my level of understanding I am afraid. I wonder where/how exactly you hit the line length limit. Because it is only applicable when reading the HTTP header, normally not the body.

Sven

On 02 Jul 2014, at 15:42, Sabine Knöfel <[hidden email]> wrote:

> Hi Sven, all,
>
> I ran into the same problem as described here:
>
> http://forum.world.st/ZnLineReader-set-limit-when-reading-a-header-td4649479.html#a4649489
>
> My question is: that thread was created in 2012, perhaps today you have
> another alternative/idea to override it globally in ZNConstants. I want to
> avoid this.
>
> The situation is:
>
> I use lesscss. This creates a style tag like this:
>
>
>
> With a button click like this:
>
> html button
> onClick: (html jQuery ajax callback: [ :eventData | ( Delay forSeconds: 10)
> wait. eventData inspect  ] value: (JSStream
> on:'jQuery(''#less\\:files-RKALibrary-mainStylesFile'').text()'));
> script: html jQuery this button;
> with: 'CSS File generieren'
>
> I want to get the "very very long css file string" and use it (to create a
> css file from it).
>
> This action is done not so often and I don't want to override the limit it
> for all requests.
> I would have to change it to at least 150000 instead of currently 4096. I
> assume this would not be a good solution...
>
> OTOH, this will be used only while a redesign is done, before going
> productive. So, in the worst case I will change it for 4 weeks during
> redesign. What do you think, does that make sense?
>
> Background: I wrote a less editor for my app and the css designer will be
> able to edit the less code and see the changes immediately in the
> application.
>
> Regards
> Sabine
>
>
>
>
>
> --
> View this message in context: http://forum.world.st/ZnLineTooLong-override-alternative-tp4766100.html
> Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
>


Reply | Threaded
Open this post in threaded view
|

Re: ZnLineTooLong override alternative?

Sabine Manaa
Hi Sven, 

the tag I want to read is in the header section.

The jQuery code simply gets the text within the <style> tag (which is in the header) and passes it into the event data.

I assume you have no alternative, e.g. changing the limit only for this request?

Regards 
Sabine


On Thu, Jul 3, 2014 at 11:34 AM, Sven Van Caekenberghe-2 [via Smalltalk] <[hidden email]> wrote:
Hi,

The jQuery code is above my level of understanding I am afraid. I wonder where/how exactly you hit the line length limit. Because it is only applicable when reading the HTTP header, normally not the body.

Sven

On 02 Jul 2014, at 15:42, Sabine Knöfel <[hidden email]> wrote:

> Hi Sven, all,
>
> I ran into the same problem as described here:
>
> http://forum.world.st/ZnLineReader-set-limit-when-reading-a-header-td4649479.html#a4649489
>

> My question is: that thread was created in 2012, perhaps today you have
> another alternative/idea to override it globally in ZNConstants. I want to
> avoid this.
>
> The situation is:
>
> I use lesscss. This creates a style tag like this:
>
>
>
> With a button click like this:

>
> html button
> onClick: (html jQuery ajax callback: [ :eventData | ( Delay forSeconds: 10)
> wait. eventData inspect  ] value: (JSStream
> on:'jQuery(''#less\\:files-RKALibrary-mainStylesFile'').text()'));
> script: html jQuery this button;
> with: 'CSS File generieren'
>
> I want to get the "very very long css file string" and use it (to create a
> css file from it).
>
> This action is done not so often and I don't want to override the limit it
> for all requests.
> I would have to change it to at least 150000 instead of currently 4096. I
> assume this would not be a good solution...
>
> OTOH, this will be used only while a redesign is done, before going
> productive. So, in the worst case I will change it for 4 weeks during
> redesign. What do you think, does that make sense?
>
> Background: I wrote a less editor for my app and the css designer will be
> able to edit the less code and see the changes immediately in the
> application.
>
> Regards
> Sabine
>
>
>
>
>
> --
> View this message in context: http://forum.world.st/ZnLineTooLong-override-alternative-tp4766100.html
> Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
>





If you reply to this email, your message will be added to the discussion below:
http://forum.world.st/ZnLineTooLong-override-alternative-tp4766100p4766309.html
To start a new topic under Pharo Smalltalk Users, email [hidden email]
To unsubscribe from Pharo Smalltalk Users, click here.
NAML

Reply | Threaded
Open this post in threaded view
|

Re: ZnLineTooLong override alternative?

Sven Van Caekenberghe-2

On 03 Jul 2014, at 12:08, Sabine Knöfel <[hidden email]> wrote:

> Hi Sven,
>
> the tag I want to read is in the header section.
>
> The jQuery code simply gets the text within the <style> tag (which is in the header) and passes it into the event data.
>
> I assume you have no alternative, e.g. changing the limit only for this request?

No, I have no alternative, I also feel that it would not make sense to turn this limit into a dynamic variable. Even so, it would not solve your problem because you would want to change it for a specific request, but #handleRequest: already gets a parsed request, then it is too late.

I would just solve this by temporarily changing the limit.

Sorry.

> Regards
> Sabine
>
>
> On Thu, Jul 3, 2014 at 11:34 AM, Sven Van Caekenberghe-2 [via Smalltalk] <[hidden email]> wrote:
> Hi,
>
> The jQuery code is above my level of understanding I am afraid. I wonder where/how exactly you hit the line length limit. Because it is only applicable when reading the HTTP header, normally not the body.
>
> Sven
>
> On 02 Jul 2014, at 15:42, Sabine Knöfel <[hidden email]> wrote:
>
> > Hi Sven, all,
> >
> > I ran into the same problem as described here:
> >
> > http://forum.world.st/ZnLineReader-set-limit-when-reading-a-header-td4649479.html#a4649489
> >
>
> > My question is: that thread was created in 2012, perhaps today you have
> > another alternative/idea to override it globally in ZNConstants. I want to
> > avoid this.
> >
> > The situation is:
> >
> > I use lesscss. This creates a style tag like this:
> >
> >
> >
> > With a button click like this:
>
> >
> > html button
> > onClick: (html jQuery ajax callback: [ :eventData | ( Delay forSeconds: 10)
> > wait. eventData inspect  ] value: (JSStream
> > on:'jQuery(''#less\\:files-RKALibrary-mainStylesFile'').text()'));
> > script: html jQuery this button;
> > with: 'CSS File generieren'
> >
> > I want to get the "very very long css file string" and use it (to create a
> > css file from it).
> >
> > This action is done not so often and I don't want to override the limit it
> > for all requests.
> > I would have to change it to at least 150000 instead of currently 4096. I
> > assume this would not be a good solution...
> >
> > OTOH, this will be used only while a redesign is done, before going
> > productive. So, in the worst case I will change it for 4 weeks during
> > redesign. What do you think, does that make sense?
> >
> > Background: I wrote a less editor for my app and the css designer will be
> > able to edit the less code and see the changes immediately in the
> > application.
> >
> > Regards
> > Sabine
> >
> >
> >
> >
> >
> > --
> > View this message in context: http://forum.world.st/ZnLineTooLong-override-alternative-tp4766100.html
> > Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
> >
>
>
>
>
> If you reply to this email, your message will be added to the discussion below:
> http://forum.world.st/ZnLineTooLong-override-alternative-tp4766100p4766309.html
> To start a new topic under Pharo Smalltalk Users, email [hidden email]
> To unsubscribe from Pharo Smalltalk Users, click here.
> NAML
>
>
> View this message in context: Re: ZnLineTooLong override alternative?
> Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.