Skip Menu |
 

This queue is for tickets about the DBD-Pg CPAN distribution.

Report information
The Basics
Id: 54372
Status: resolved
Priority: 0/
Queue: DBD-Pg

People
Owner: Nobody in particular
Requestors: evdb [...] ecclestoad.co.uk
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: (no value)
Fixed in: 2.17.0



Subject: tests fail when run as user 'www-data'
Date: Sat, 6 Feb 2010 22:19:25 +0000
To: bug-DBD-Pg <bug-DBD-Pg [...] rt.cpan.org>
From: Edmund von der Burg <evdb [...] ecclestoad.co.uk>
Download (untitled) / with headers
text/plain 1.5k
tests fail when run as user 'www-data' which is annoying when trying to build modules for the www-data user under debian. t/01connect.t ....... 1/13 # Failed test 'Second database connection attempt worked' # at t/01connect.t line 41. # got: 'DBI connect('dbname=postgres;port=5440;host=/var/www/.cpan/build/DBD-Pg-2.16.1-nwA4il/dbdpg_test_database/data/socket','www',...) failed: FATAL: role "www" does not exist at t/dbdpg_test_setup.pl line 154 # ' # expected: '' Can't call method "selectall_arrayref" without a package or object reference at t/01connect.t line 47. # # DBI Version 1.609 # DBD::Pg Version 2.16.1 # Perl Version 5.10.0 # OS linux # PostgreSQL (compiled) 80309 # PostgreSQL (target) 80309 # PostgreSQL (reported) PostgreSQL 8.3.9 on i486-pc-linux-gnu, compiled by GCC gcc-4.3.real (Debian 4.3.2-1.1) 4.3.2 # Default port 5432 # DBI_DSN dbi:Pg:dbname=postgres;port=5440;host=<pwd>/dbdpg_test_database/data/socket # DBI_USER www-data # Test schema dbd_pg_testschema # LANG C # Adjusted: initdb # Error was: FATAL: role "www" does not exist at t/dbdpg_test_setup.pl line 154 I suppose that it is probably some regex that is stripping out the '-data' part of the username. Renaming the 'www-data' user to 'www' in /etc/passwd allows the tests to run and pass which is a neat work-around. Cheers, Edmund.
Thanks for the report, we'll get this fixed up shortly.
Fixed in r13815. Will be a part of 2.17.1 or 2.18.0
Subject: Re: [rt.cpan.org #54372] tests fail when run as user 'www-data'
Date: Mon, 8 Feb 2010 09:55:28 +0000
To: bug-DBD-Pg <bug-DBD-Pg [...] rt.cpan.org>
From: Edmund von der Burg <evdb [...] ecclestoad.co.uk>
Download (untitled) / with headers
text/plain 209b
2010/2/7 Greg Sabino Mullane via RT <bug-DBD-Pg@rt.cpan.org>: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=54372 > > > Fixed in r13815. Will be a part of 2.17.1 or 2.18.0
Wonderful - thank you. Edmund


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.