Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#37 PHP inventory action requires namespace prefix to be dwc:

closed-fixed
nobody
6
2004-05-17
2003-11-24
Donald Hobern
No

The PHP Provider seems not to accept inventory requests
if my namespace prefix is darwin: rather than dwc:.

This works:

<request xmlns='http://digir.net/schema/protocol/2003/1.0'
xmlns:xsd='http://www.w3.org/2001/XMLSchema'
xmlns:digir='http://digir.net/schema/protocol/2003/1.0'
xmlns:dwc='http://digir.net/schema/conceptual/darwin/2003/1.0'><header><version>1.0.0</version>
<sendTime>20030421T170441.431Z</sendTime><source>127.0.0.1</source><destination
resource='MammalsDwC2'>http://localhost/digir/DiGIR.php</destination><type>inventory</type>
</header><inventory><dwc:Genus
/><count>true</count></inventory></request>

This doesn't:

<request xmlns='http://digir.net/schema/protocol/2003/1.0'
xmlns:xsd='http://www.w3.org/2001/XMLSchema'
xmlns:digir='http://digir.net/schema/protocol/2003/1.0'
xmlns:darwin='http://digir.net/schema/conceptual/darwin/2003/1.0'><header><version>1.0.0</version>
<sendTime>20030421T170441.431Z</sendTime><source>127.0.0.1</source><destination
resource='MammalsDwC2'>http://localhost/digir/DiGIR.php</destination><type>inventory</type>
</header><inventory><darwin:Genus/><count>true</count></inventory></request>

It results in the following bad SQL:

SELECT Count(*) AS cnt FROM (SELECT ., count(.) as cnt
FROM mammalsdarwincorev2 GROUP BY .) AS sub)

Both were submitted through:

http://speciesanalyst.net/digir/test/eg_inventory.php

I can use either prefix for my namespace on a search
operation.

Discussion

  • regiov
    regiov
    2004-05-17

    Logged In: YES
    user_id=62350

    Already fixed in CVS

     
  • regiov
    regiov
    2004-05-17

    • status: open --> closed
     
  • regiov
    regiov
    2004-05-17

    • status: closed --> closed-fixed