RSS Import identifiers

Author Message

Adrien Dupuis

Wednesday 13 October 2010 2:42:09 am

I have found in 4.3.0 rssimport cronjob (24-Sep-2003 16:09:21 sp) how identifier are generated and I don't understand the priority choice.
From my point of view, "guid, title, link" could be more practical than "link, guid". GUID (Globally Unique IDentifier) first seems common sens.

rssimport.php, lines 209-227:

// Test for link or guid as unique identifier
$link = $item->getElementsByTagName( 'link' )->item( 0 );
$guid = $item->getElementsByTagName( 'guid' )->item( 0 );
if ( $link->textContent )
{
$md5Sum = md5( $link->textContent );
}
elseif ( $guid->textContent )
{
$md5Sum = md5( $guid->textContent );
}
else
{
if ( !$isQuiet )
{
$cli->output( 'RSSImport '.$rssImport->attribute( 'name' ).': Item has no unique identifier. RSS guid or link missing.' );
}
return 0;
}

Heath

Wednesday 13 October 2010 4:30:22 am

Adrien,

A better place to report issues is the issue tracker at http://issues.ez.no

Cheers,

Heath

Brookins Consulting | http://brookinsconsulting.com/
Certified | http://auth.ez.no/certification/verify/380350
Solutions | http://projects.ez.no/users/community/brookins_consulting
eZpedia community documentation project | http://ezpedia.org

André R.

Wednesday 13 October 2010 4:35:04 am

It is probably this issue:

#014256: About RemoteID of items created by rssimport.php

http://issues.ez.no/IssueView.php?Id=14256&activeItem=10

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Adrien Dupuis

Wednesday 13 October 2010 5:56:26 am

Thank to both of you. I've bookmarked the Issue Tracker. To me, it's not a bug so I've only suggested to do things differently. I also understand why it will be difficult to change this with backward compatibility.

I made my own patch to have the title as a possible identifier.

Now, I ask myself how I will determine if what I have to suggest got to go into Suggestion Forum or into Issue Tracker 's Enhancement type... ;)

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

Main resources:

Total runtime0.0178 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0066 587.9063152.6250
Module start 'layout' 0.00660.0034 740.531339.4531
Module start 'content' 0.01000.0060 779.984493.5078
Module end 'content' 0.01600.0018 873.492234.2891
Script end 0.0178  907.7813 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002714.8907140.0002
Check MTime0.00126.8621140.0001
Mysql Total
Database connection0.00084.572110.0008
Mysqli_queries0.002614.353630.0009
Looping result0.00020.898610.0002
Template Total0.00148.110.0014
Template load0.00084.308210.0008
Template processing0.00073.741710.0007
Override
Cache load0.00063.117710.0006
General
dbfile0.001810.116480.0002
String conversion0.00000.050940.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs