OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



Fix for harvester to work with IPv6 addresses

Open Harvester Systems support questions and answers, bug reports, and development issues.

Moderators: jmacgreg, michael, John

Forum rules
Developer Resources:

Git: You can access our public Git Repository here. Comprehensive Git usage instructions are available on the wiki.

Bugzilla: You can access our Bugzilla report tracker here.

Search: You can use our Google Custom Search to search across our main website, the support forum, and Bugzilla.

Questions and discussion are welcome.

Fix for harvester to work with IPv6 addresses

Postby hydra » Mon Jun 23, 2008 6:53 am

Hi list

I have found a bug which results in an error message " value too long for type character varying(15)" when trying to access the PKP harvester using an IPv6 address. The reason for this behavior lies in the "sessions" table which stores the IP address of each client in the column "ip_address". This column is of type varchar(15), which is not suitable for IPv6 addresses, which can consist of up to 39 characters.

Resolution:

Change the value in dbscripts/xml/harvester2_schema.xml before generating the database:
Code: Select all
        <table name="sessions">
                <field name="ip_address" type="C2" size="39">
                        <NOTNULL/>
                </field>
        </table>


Is there a possibilty for me to submit this bugfix to the code repository or maybe a ticketing system?

Best regards
Christian
hydra
 
Posts: 2
Joined: Tue Apr 15, 2008 6:01 am

Re: Fix for harvester to work with IPv6 addresses

Postby asmecher » Mon Jun 23, 2008 8:46 am

Hi Christian,

Thanks! I've submitted this bug to Bugzilla at http://pkp.sfu.ca/bugzilla/show_bug.cgi?id=3602. FYI for next time, you should be able to submit entries there yourself (or, if you're not sure whether you're dealing with a bug or a support question, the forum here is good too).

Regards,
Alec Smecher
Public Knowledge Project Team
asmecher
 
Posts: 8860
Joined: Wed Aug 10, 2005 12:56 pm


Return to Open Harvester Systems Support and Development

Who is online

Users browsing this forum: No registered users and 1 guest