Last-Modified header format problem

Author Message

Christian Kohlschütter

Monday 28 June 2004 2:43:45 am

Hello,

I have just noticed that ezPublish sends incorrectly formatted Last-Modified HTTP headers.
There is a space (blank) missing before the "GMT".

For example, ezPublish returns

"Last-Modified: Mon, 28 Jun 2004 09:14:05GMT"

instead of

"Last-Modified: Mon, 28 Jun 2004 09:14:05 GMT"

.

This violates RFC 2616 (section 3.3), and at least Jakarta HttpClient chokes on that.

The solution is to simply correct the responsible header() command in ezPublish's index.php (line 357)
from

header( 'Last-Modified: ' . gmdate( 'D, d M Y H:i:s' ) . 'GMT' );

to

header( 'Last-Modified: ' . gmdate( 'D, d M Y H:i:s' ) . ' GMT' );

Best regards,

Christian Kohlschütter
(ck [AT] rrzn [DOT] uni-hannover [DOT] de)

Bård Farstad

Monday 28 June 2004 3:49:05 am

Thanks, I've fixed that in svn now. The fix will be in the next eZ publish stable and unstable release.

--bård

Documentation: http://ez.no/doc

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 19 2025 11:42:11
Script start
Timing: Jan 19 2025 11:42:11
Module start 'layout'
Timing: Jan 19 2025 11:42:11
Module start 'content'
Timing: Jan 19 2025 11:42:13
Module end 'content'
Timing: Jan 19 2025 11:42:13
Script end

Main resources:

Total runtime1.5188 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0073 589.1797152.6250
Module start 'layout' 0.00730.0045 741.804739.4453
Module start 'content' 0.01181.5057 781.2500529.4141
Module end 'content' 1.51750.0013 1,310.66418.1563
Script end 1.5187  1,318.8203 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.2275160.0002
Check MTime0.00130.0859160.0001
Mysql Total
Database connection0.00150.098910.0015
Mysqli_queries1.467496.6185540.0272
Looping result0.00060.0371520.0000
Template Total1.473597.020.7367
Template load0.00260.169920.0013
Template processing1.470996.845920.7354
Template load and register function0.00020.011510.0002
states
state_id_array0.00210.136110.0021
state_identifier_array0.00150.096020.0007
Override
Cache load0.00200.1326240.0001
Sytem overhead
Fetch class attribute can translate value0.00080.049920.0004
Fetch class attribute name0.00090.060630.0003
XML
Image XML parsing0.00070.048220.0004
class_abstraction
Instantiating content class attribute0.00000.000430.0000
General
dbfile0.00080.0556170.0000
String conversion0.00000.000640.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
9content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
4content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 21
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs