[ refdb-Bugs-1951835 ] risx url multiplying

"SourceForge.net" <[email protected]> Sun, 27 Apr 2008 13:48:10 -0700
Newsgroups gmane.text.refdb.devel
Message-ID <[email protected]>
Bugs item #1951835, was opened at 2008-04-25 20:32
Message generated for change (Comment added) made by mhoenicka
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=385991&aid=1951835&group_id=26091

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: refdbd
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Damien Jade Duff (damienjadeduff)
Assigned to: Markus Hoenicka (mhoenicka)
Summary: risx url multiplying

Initial Comment:
Hiya!

Sorry but got another one here for the pile!

Now I'm using sqlite here and the issue seems similar to a previous one in which it wasn't refdb but libdbi. 

If I UPDATE a reference using refdbc that already has a LINK TYPE="url" but I have changed the url (i.e. the update is one in which the url changes), the url tag multiplies - I get another tag, one with the old url, one with the new. I presume I can get any number of them but I haven't checked. The way I judge the intended behaviour of updateref, an update should swap the reference with everything in the RIS tag and drop the old information. Whaddya reckon? Details below.

Cheerios!
Damien

SETUP:

refdb-1.0.0-pre1 (also happening on the svn as of this morning)
libdbi-cvs-20080421
libdbi-drivers-cvs-20080421
sqlite-3.5.8
Linux acws-0175 2.6.9-67.0.7.ELsmp #1 SMP Sat Mar 15 06:54:55 EDT 2008 i686 i686 i386 GNU/Linux

EXAMPLE:

mycomp% cat thisisatest2.risx
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE ris PUBLIC "-//Markus Hoenicka//DTD Ris V1.2.0//EN" "http://refdb.sourceforge.net/dtd/risx-1.2.0/risx.dtd" [
<!ENTITY lt "&#38;#60;">
<!ENTITY gt "&#62;">
<!ENTITY amp "&#38;#38;">
<!ENTITY mdash "&#x2014;">
<!ENTITY lsquo "&#x2018;">
<!ENTITY rsquo "&#x2019;">
]>
<ris>



  <entry type="CONF" citekey="THISISATEST">
    <part>
      <title type="full">A New Extension of the Kalman Filter to Nonlinear Systems</title>
      <author role="author">
        <name>Simon J. Julier</name>
      </author>
      <author role="author">
        <name>Jeffrey K. Uhlmann</name>
      </author>
    </part>
    <publication>
      <title type="full">Int. Symp. Aerospace/Defense Sensing, Simul. and Controls</title>
      <pubinfo>
        <pubdate type="primary">
          <date><year>1997</year><month>00</month><day>00</day></date>
        </pubdate>
        <city>Orlando, Florida</city>
        <link type="url">http://www.cs.unc.edu/~welch/kalman/media/pdf/Julier1997_SPIE_KF.pdf</link>
      </pubinfo>
    </publication>
    <libinfo user="djd">
      <notes></notes>
      <reprint status="INFILE"/>
      <availability type="useroot"/>
    </libinfo>
    <contents>
      <keyword>bayesian</keyword>
      <keyword>kalman</keyword>
      <keyword>non-linear</keyword>
      <keyword>nonlinear</keyword>
      <keyword>probability</keyword>
      <keyword>recursive estimation</keyword>
      <keyword>tracking</keyword>
      <keyword>unscented</keyword>
    </contents>
  </entry>
</ris>

mycomp% refdbc -d djdphd -u djd -w abc -C addref -A risx < thisisatest2.risx
999:1 added:0 skipped:0 failed
mycomp% refdbc -d djdphd -u djd -w abc -C getref -t risx :CK:=THISISATEST > testout1.risx
999:1 retrieved:0 failed
mycomp% cat testout1.risx
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE ris PUBLIC "-//Markus Hoenicka//DTD Ris V1.2.0//EN" "http://refdb.sourceforge.net/dtd/risx-1.2.0/risx.dtd" [
<!ENTITY lt "&#38;#60;">
<!ENTITY gt "&#62;">
<!ENTITY amp "&#38;#38;">
<!ENTITY mdash "&#x2014;">
<!ENTITY lsquo "&#x2018;">
<!ENTITY rsquo "&#x2019;">
]>
<ris>



  <entry type="CONF" id="209" citekey="THISISATEST">
    <part>
      <title type="full">A New Extension of the Kalman Filter to Nonlinear Systems</title>
      <author role="author">
        <name>Simon J. Julier</name>
      </author>
      <author role="author">
        <name>Jeffrey K. Uhlmann</name>
      </author>
    </part>
    <publication>
      <title type="full">Int. Symp. Aerospace/Defense Sensing, Simul. and Controls</title>
      <pubinfo>
        <pubdate type="primary">
          <date><year>1997</year><month>00</month><day>00</day></date>
        </pubdate>
        <city>Orlando, Florida</city>
        <link type="url">http://www.cs.unc.edu/~welch/kalman/media/pdf/Julier1997_SPIE_KF.pdf</link>
      </pubinfo>
    </publication>
    <libinfo user="djd">
      <reprint status="INFILE"/>
      <availability type="useroot"/>
    </libinfo>
    <contents>
      <keyword>bayesian</keyword>
      <keyword>kalman</keyword>
      <keyword>non-linear</keyword>
      <keyword>nonlinear</keyword>
      <keyword>probability</keyword>
      <keyword>recursive estimation</keyword>
      <keyword>tracking</keyword>
      <keyword>unscented</keyword>
    </contents>
  </entry>
</ris>

mycomp% cat thisisatest.risx
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE ris PUBLIC "-//Markus Hoenicka//DTD Ris V1.2.0//EN" "http://refdb.sourceforge.net/dtd/risx-1.2.0/risx.dtd" [
<!ENTITY lt "&#38;#60;">
<!ENTITY gt "&#62;">
<!ENTITY amp "&#38;#38;">
<!ENTITY mdash "&#x2014;">
<!ENTITY lsquo "&#x2018;">
<!ENTITY rsquo "&#x2019;">
]>
<ris>



  <entry type="CONF" id="196" citekey="THISISATEST">
    <part>
      <title type="full">A New Extension of the Kalman Filter to Nonlinear Systems</title>
      <author role="author">
        <name>Simon J. Julier</name>
      </author>
      <author role="author">
        <name>Jeffrey K. Uhlmann</name>
      </author>
    </part>
    <publication>
      <title type="full">Int. Symp. Aerospace/Defense Sensing, Simul. and Controls</title>
      <pubinfo>
        <pubdate type="primary">
          <date><year>1997</year><month>00</month><day>00</day></date>
        </pubdate>
        <city>Orlando, Florida</city>
        <link type="url">http://tinyurl.com/4dqojq</link>
      </pubinfo>
    </publication>
    <libinfo user="djd">
      <notes>bibtex doesn't seem to like all the escape characters refdb puts in the original URL so we switch to tinurl for now...</notes>
      <reprint status="INFILE"/>
      <availability type="useroot"/>
    </libinfo>
    <contents>
      <keyword>bayesian</keyword>
      <keyword>kalman</keyword>
      <keyword>non-linear</keyword>
      <keyword>nonlinear</keyword>
      <keyword>probability</keyword>
      <keyword>recursive estimation</keyword>
      <keyword>tracking</keyword>
      <keyword>unscented</keyword>
    </contents>
  </entry>
</ris>

mycomp% refdbc -d djdphd -u djd -w abc -C updateref -A risx < thisisatest.risx
999:1 updated:0 added:0 skipped:0 failed
mycomp% refdbc -d djdphd -u djd -w abc -C getref -t risx :CK:=THISISATEST > testout2.risx
999:1 retrieved:0 failed
mycomp% cat testout2.risx
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE ris PUBLIC "-//Markus Hoenicka//DTD Ris V1.2.0//EN" "http://refdb.sourceforge.net/dtd/risx-1.2.0/risx.dtd" [
<!ENTITY lt "&#38;#60;">
<!ENTITY gt "&#62;">
<!ENTITY amp "&#38;#38;">
<!ENTITY mdash "&#x2014;">
<!ENTITY lsquo "&#x2018;">
<!ENTITY rsquo "&#x2019;">
]>
<ris>



  <entry type="CONF" id="209" citekey="THISISATEST">
    <part>
      <title type="full">A New Extension of the Kalman Filter to Nonlinear Systems</title>
      <author role="author">
        <name>Simon J. Julier</name>
      </author>
      <author role="author">
        <name>Jeffrey K. Uhlmann</name>
      </author>
    </part>
    <publication>
      <title type="full">Int. Symp. Aerospace/Defense Sensing, Simul. and Controls</title>
      <pubinfo>
        <pubdate type="primary">
          <date><year>1997</year><month>00</month><day>00</day></date>
        </pubdate>
        <city>Orlando, Florida</city>
        <link type="url">http://tinyurl.com/4dqojq</link>
        <link type="url">http://www.cs.unc.edu/~welch/kalman/media/pdf/Julier1997_SPIE_KF.pdf</link>
      </pubinfo>
    </publication>
    <libinfo user="djd">
      <notes>bibtex doesn't seem to like all the escape characters refdb puts in the original URL so we switch to tinurl for now...</notes>
      <reprint status="INFILE"/>
      <availability type="useroot"/>
    </libinfo>
    <contents>
      <keyword>bayesian</keyword>
      <keyword>kalman</keyword>
      <keyword>non-linear</keyword>
      <keyword>nonlinear</keyword>
      <keyword>probability</keyword>
      <keyword>recursive estimation</keyword>
      <keyword>tracking</keyword>
      <keyword>unscented</keyword>
    </contents>
  </entry>
</ris>


----------------------------------------------------------------------

>Comment By: Markus Hoenicka (mhoenicka)
Date: 2008-04-27 22:48

Message:
Logged In: YES 
user_id=85809
Originator: NO

I guess this is sort of a duplicate of #1951049. If you missed the upgrade
notice from 0.9.8 or earlier to 0.9.9 or later, I reckon you'd see this
kind of problem. Please see the comments to bug #1951049 for further
instructions.

regards,
Markus

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=385991&aid=1951835&group_id=26091

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone