Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Bricolage: users

Truncated content

 

 

Bricolage users RSS feed   Index | Next | Previous | View Threaded


chris.schults at pccsea

Apr 10, 2012, 12:06 PM

Post #1 of 6 (1342 views)
Permalink
Truncated content

I have a user who works with our CSS files. They are managed as stories with one text area element with no maximum length set. Some have grown rather long. She often copies from her text editor and pastes into the Bricolage UI. She has noted that the entire contents have pasted successfully. However, upon saving, the content gets truncated.

This has previously occurred in Chrome, and now is periodically happening in Firefox. I have just replicated in Chrome, though not in Firefox.

I'm not sure if this a Bricolage quirk, but I thought I'd ask the group. Any ideas?

Chris


david at justatheory

Apr 10, 2012, 1:30 PM

Post #2 of 6 (1301 views)
Permalink
Re: Truncated content [In reply to]

On Apr 10, 2012, at 12:06 PM, Schults, Chris wrote:

> This has previously occurred in Chrome, and now is periodically happening in Firefox. I have just replicated in Chrome, though not in Firefox.
>
> I'm not sure if this a Bricolage quirk, but I thought I'd ask the group. Any ideas?

Make sure it's the browser truncating, rather than something in the data-handling code.

David


chris.schults at pccsea

Apr 10, 2012, 2:33 PM

Post #3 of 6 (1303 views)
Permalink
RE: Truncated content [In reply to]

> Make sure it's the browser truncating, rather than something in the
> data-handling code.

I'm not sure what is going on. First off, I'm occasionally seeing "Apache::SizeLimit httpd process too big" errors, but not every time the content gets truncated. I'm also seeing "(32)Broken pipe: client stopped connection before rflush completed", though I'm not sure if they are related.

What is really weird is that the original file started with:

/* begin CSS reset */

When I add two spaces, the problem goes away:

/* begin CSS reset */

Not only is this happening in Chrome, but also IE. My Firefox seems immune thus far.

I'm left scratching my head.

FYI, the content is 2049 lines long with 50,353 characters.

Here are my Bricolage settings:

CHECK_PROCESS_SIZE = Yes
MAX_PROCESS_SIZE = 325000
CHECK_FREQUENCY = 1
MIN_SHARE_SIZE = 0
MAX_UNSHARED_SIZE = 0

The Apache::SizeLimit errors are reporting sizes from 325000 - 327000.


david at justatheory

Apr 10, 2012, 4:15 PM

Post #4 of 6 (1290 views)
Permalink
Re: Truncated content [In reply to]

On Apr 10, 2012, at 2:33 PM, Schults, Chris wrote:

>> Make sure it's the browser truncating, rather than something in the
>> data-handling code.
>
> I'm not sure what is going on. First off, I'm occasionally seeing "Apache::SizeLimit httpd process too big" errors, but not every time the content gets truncated.

That should not be related. Those calls should only fire after a request is completed and everything has already been processed and written.

> I'm also seeing "(32)Broken pipe: client stopped connection before rflush completed", though I'm not sure if they are related.

That may well be related. I have seen that detestable error truncate things before. It's a bitch to track down; in the past I have blamed browsers.

> What is really weird is that the original file started with:
>
> /* begin CSS reset */
>
> When I add two spaces, the problem goes away:
>
> /* begin CSS reset */
>
> Not only is this happening in Chrome, but also IE. My Firefox seems immune thus far.
>
> I'm left scratching my head.
>
> FYI, the content is 2049 lines long with 50,353 characters.

You can replicate it every time? Bizarre. I don't recall ever seeing that error message consistently.

> Here are my Bricolage settings:
>
> CHECK_PROCESS_SIZE = Yes
> MAX_PROCESS_SIZE = 325000
> CHECK_FREQUENCY = 1
> MIN_SHARE_SIZE = 0
> MAX_UNSHARED_SIZE = 0
>
> The Apache::SizeLimit errors are reporting sizes from 325000 - 327000.

Seems fine. Those aren't errors, more status messages. You can ignore them.

Best,

David


alex at gt

Apr 10, 2012, 4:26 PM

Post #5 of 6 (1285 views)
Permalink
Re: Truncated content [In reply to]

Hi,

> I'm not sure what is going on. First off, I'm occasionally seeing
> "Apache::SizeLimit httpd process too big" errors, but not every time the
> content gets truncated. I'm also seeing "(32)Broken pipe: client stopped
> connection before rflush completed", though I'm not sure if they are
> related.

Do you have a hard memory limit in place? That sounds possible. i.e.
sizelimit is recycling procs ocassionaly, but if you go to far over, you
hit system limit and o/s kills the process and would see the broken pipe
message.

Could check dmesg if you have grsec logging limits, otherwise, strace a
proc and see if you can reproduce it.

Cheers,

Alex


david at kineticode

Apr 10, 2012, 8:57 PM

Post #6 of 6 (1287 views)
Permalink
Re: Truncated content [In reply to]

On Apr 10, 2012, at 4:26 PM, Alex Krohn wrote:

> Do you have a hard memory limit in place? That sounds possible. i.e.
> sizelimit is recycling procs ocassionaly, but if you go to far over, you
> hit system limit and o/s kills the process and would see the broken pipe
> message.
>
> Could check dmesg if you have grsec logging limits, otherwise, strace a
> proc and see if you can reproduce it.

I love having a genuine in-the-guts sysadmin on this list. Thanks Alex!

David

Bricolage users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.