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
The Public Knowledge Project Support Forum is moving to http://forum.pkp.sfu.ca

This forum will be maintained permanently as an archived historical resource, but all new questions should be added to the new forum. Questions will no longer be monitored on this old forum after March 30, 2015.

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.


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">

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

Best regards
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).

Alec Smecher
Public Knowledge Project Team
Posts: 10015
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