RSS Import doesn't work with HTML in feed

Author Message

Nathan Sharp

Friday 13 May 2005 7:21:30 am

If you try to import an RSS feed that contains HTML, such as most of the feeds off of livejournal.com (one chosen truly at random: http://www.livejournal.com/users/evillorelei/data/rss ), the cronjobs/rssimport.php will hang and eventually time out, or crash.

I have traced the problem to attempting to load the html into an ezxmltext datatype and was able to get around the problem by modifying the code to use the text2xml function defined here: http://www.ez.no/ez_publish/documentation/development/importing_attribute_data (actually, I ended up using my version of that function in my ezobjectcreator class in this package: http://www.ez.no/community/contribs/hacks/object_creator )

This to me looks like a bug, would it be appropriate to open a Bug Report on the site here?

Frederik Holljen

Friday 13 May 2005 7:25:04 am

It would indeed. Your report is very accurate so it should be relatively easy to fix.

Nathan Sharp

Friday 13 May 2005 9:01:15 am

The newly created bug:

http://ez.no/community/bugs/rss_import_doesn_t_work_with_html_in_feed

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 15:58:06
Script start
Timing: Jan 18 2025 15:58:06
Module start 'layout'
Timing: Jan 18 2025 15:58:06
Module start 'content'
Timing: Jan 18 2025 15:58:07
Module end 'content'
Timing: Jan 18 2025 15:58:07
Script end

Main resources:

Total runtime0.8300 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0054 588.0469152.6406
Module start 'layout' 0.00550.0027 740.687539.4766
Module start 'content' 0.00810.8202 780.1641501.0391
Module end 'content' 0.82840.0016 1,281.20318.2813
Script end 0.8300  1,289.4844 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.4081160.0002
Check MTime0.00140.1702160.0001
Mysql Total
Database connection0.00070.086510.0007
Mysqli_queries0.782594.2683570.0137
Looping result0.00060.0767550.0000
Template Total0.799896.420.3999
Template load0.00210.256920.0011
Template processing0.797696.098520.3988
Template load and register function0.00040.042610.0004
states
state_id_array0.00080.096110.0008
state_identifier_array0.00110.127920.0005
Override
Cache load0.00180.2125120.0001
Sytem overhead
Fetch class attribute can translate value0.00090.110820.0005
Fetch class attribute name0.00140.173540.0004
XML
Image XML parsing0.00070.080120.0003
class_abstraction
Instantiating content class attribute0.00000.001840.0000
General
dbfile0.00130.1572160.0001
String conversion0.00000.000940.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
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/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: 9
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs