[DebianGIS-dev] Bug#532145: Bug#532145: Acknowledgement ([osm2pgsql] osm2pgsql: always forces a password prompt - breaks unassisted map generation)

Eddy Petrișor eddy.petrisor at gmail.com
Tue Jun 9 00:24:57 UTC 2009


Andreas Putzo a scris:
> tags 532145 + fixed-upstream pending
> thanks
> 
> Hi,
> 
> On Jun 07  04:08, Eddy Petrișor wrote:
>> Package: osmqpgsql
>> I just looked into the code and it seems that whenever the user
>> parameter was given, the password prompt appeared, evn if not necessary.
> 
> Thanks for your bug report and the patch. The bug is already fixed
> upstream the same way as you did. Please expect an updated packages soon.

Are you planning to do "official" backports, too?

I made my own patched package, but maybe other people would find them
useful.

>> (D)Patch is attached, I tested it on my password-less config on a lenny
>> machine (made a local backport) and it works properly. If used without a
>> password when is actually needed this message appears, (which, imo,
>> could be improved to add a hint, if -W wasn't present - "maybe a
>> password is required?"), so I'd say the fix makes sense and doesn't
>> break anything that worked before:
>>
>>
>> 0 eddy at heidi ~/usr/src/osm/planet/git-planet-rom $ osm2pgsql -d gis -m
>> -U osm planet-rom.osm
>> osm2pgsql SVN version 0.52-20090607 $Rev: 7141 $
>>
>> Connection to database failed: FATAL:  Ident authentication failed for
>> user "osm"
> 
> The error message comes from postgres, i guess that's nothing osm2pgsql
> should deal with :)

Well, is, imo, sufficient to indicate the possible cause of the login
issue. Better handling is preferable, but I don't this is crucial to
improve this, especially if it complicates the code a lot (I haven't
looked).

-- 
Regards,
EddyP
=============================================
"Imagination is more important than knowledge" A.Einstein

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-grass-devel/attachments/20090609/a4eef134/attachment.pgp>


More information about the Pkg-grass-devel mailing list