Bug in kernel/classes/datatypes/ezimage/ezimagefile.php

Author Message

Frank Miedreich

Friday 08 April 2011 5:24:07 am

In version 4.4 (and earlier) on line 113 of file kernel/classes/datatypes/ezimage/ezimagefile.php is a bug in the sql statement:

The query uses mysql specific syntax "LIMIT 1" on the query, this will break when you use oracle as your database. For oracle this should read "AND ROWNUM = 1" to achieve the same effect.

I tried to find a place to file bug reports but failed. So I hope some developer with commit rights finds this here.

cheers, Frank

Chen Xiongjie

Friday 08 April 2011 6:37:30 am

It's fixed in 4.5.

I'm sure the fix works on previous versions: https://github.com/ezsystems/ezpublish/commit/7679cbb18a46d7635be34a532029206ba42a489c

Public issue: http://issues.ez.no/018040

eZ Comments: http://projects.ez.no/ezcomments
twitter: http://twitter.com/xiongjie

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 18 2025 01:14:51
Script start
Timing: Jan 18 2025 01:14:51
Module start 'layout'
Timing: Jan 18 2025 01:14:51
Module start 'content'
Timing: Jan 18 2025 01:14:52
Module end 'content'
Timing: Jan 18 2025 01:14:52
Script end

Main resources:

Total runtime0.9078 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.0068 588.1563152.6563
Module start 'layout' 0.00680.0041 740.812539.5156
Module start 'content' 0.01090.8955 780.3281518.3906
Module end 'content' 0.90640.0014 1,298.71888.1094
Script end 0.9077  1,306.8281 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.3803160.0002
Check MTime0.00140.1585160.0001
Mysql Total
Database connection0.00070.081510.0007
Mysqli_queries0.863295.0928540.0160
Looping result0.00070.0769520.0000
Template Total0.870595.920.4352
Template load0.00210.229820.0010
Template processing0.868495.664920.4342
Template load and register function0.00020.026110.0002
states
state_id_array0.00110.124510.0011
state_identifier_array0.00090.097820.0004
Override
Cache load0.00170.1897120.0001
Sytem overhead
Fetch class attribute can translate value0.00050.059620.0003
Fetch class attribute name0.00100.106830.0003
XML
Image XML parsing0.00050.059520.0003
class_abstraction
Instantiating content class attribute0.00000.000630.0000
General
dbfile0.00070.0792160.0000
String conversion0.00000.001240.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
2content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.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: 7
 Number of unique templates used: 5

Time used to render debug report: 0.0002 secs