Last modified: 2014-10-16 12:00:23 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T33182, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 31182 - [RDFIO] error when original URI is not given
[RDFIO] error when original URI is not given
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
Other (Other open bugs)
unspecified
All All
: Lowest normal (vote)
: ---
Assigned To: Samuel Lampa
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-09-27 09:02 UTC by Egon Willighagen
Modified: 2014-10-16 12:00 UTC (History)
4 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Egon Willighagen 2011-09-27 09:02:14 UTC
Samuel, while trying to debug the SPARQL issue, I noticed this error:

[Tue Sep 27 10:55:20 2011] [error] [client 127.0.0.1] PHP Notice:  Undefined offset: 0 in /usr/local/share/mediawiki/RDFIO/classes/RDFStore.php on line 56, referer: http://127.0.0.1/mediawiki/index.php/Special:SPARQLEndpoint

which refers to this code:

    function getOrigURIForUri( $uri ) {
        $origuri = '';
        $store = $this->m_arcstore;
        $origuriuri = $this->getOrigURIURI();
        $q = "SELECT ?origuri WHERE { <$uri> <$origuriuri> ?origuri }";
        $rs = $store->query( $q );
        if ( !$store->getErrors() ) {
            $rows = $rs['result']['rows'];
            $row = $rows[0];
            $origuri = $row['origuri'];
        } else {
            die( "Error in ARC Store: " . print_r( $store->getErrors(), true ) );
        }
        return $origuri;
    }

Line 56 is the "$row = $rows[0];" line.

Not all resources have original URIs.
Comment 1 Samuel Lampa 2013-09-19 07:55:49 UTC
Hi Egon, Turns out I have not got notification for this bug :( ... 

Most of the code was going reworked quite heavily after 2011 though, so this error might not be present anymore?
Comment 2 [[kgh]] 2014-03-06 18:22:25 UTC
I understand that this is an issue related to the RDFIO extension. Thus re-attributing this to [other] [RDFIO]. Probably we will have a cool GSoC project connected with this extension, so this issue may be revisited if still persistent.
Comment 3 zahara 2014-04-07 08:57:10 UTC
What should the behaviour be for a resource which doesn't have an original URI?

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links