Issue 108028 - Postgresql SDBC driver not selectable in database wizard
Summary: Postgresql SDBC driver not selectable in database wizard
Status: CLOSED FIXED
Alias: None
Product: Base
Classification: Application
Component: code (show other issues)
Version: OOo 3.2 RC1
Hardware: Unknown All
: P3 Trivial (vote)
Target Milestone: ---
Assignee: joergbudi
QA Contact: issues@dba
URL:
Keywords: regression
Depends on:
Blocks:
 
Reported: 2010-01-02 08:24 UTC by r4zoli
Modified: 2011-02-10 08:44 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
add the file to drivers zip-file (1.87 KB, text/xml)
2010-01-26 20:50 UTC, joergbudi
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description r4zoli 2010-01-02 08:24:46 UTC
I downloaded postgresql SDBC driver from dba site.
Installed with extension manager, it installs and shown up in extension window.
When I start new database wizard, the postgresql option not on selectable
drivers list when you select connect to existing database.
It works with OOo 3.1.1 and it seems to me regression, and possible showstopper.

unopkg list result:
Identifier: org.openoffice.legacy.postgresql-sdbc-0.7.6.zip
  URL:
vnd.sun.star.expand:$UNO_USER_PACKAGES_CACHE/uno_packages/0KZAaE_/postgresql-sdbc-0.7.6.zip
  is registered: yes
  Media-Type: application/vnd.sun.star.legacy-package-bundle
  Description:
  bundled Packages: {
      URL:
vnd.sun.star.expand:$UNO_USER_PACKAGES_CACHE/uno_packages/0KZAaE_/postgresql-sdbc-0.7.6.zip/postgresql-sdbc-0.7.6/DataAccess.xcu
      is registered: yes
      Media-Type: application/vnd.sun.star.configuration-data
      Description:
      URL:
vnd.sun.star.expand:$UNO_USER_PACKAGES_CACHE/uno_packages/0KZAaE_/postgresql-sdbc-0.7.6.zip/postgresql-sdbc-0.7.6/linux_x86.plt/postgresql-sdbc-impl.uno.so
      is registered: yes
      Media-Type:
application/vnd.sun.star.uno-component;type=native;platform=Linux_x86
      Description:
      URL:
vnd.sun.star.expand:$UNO_USER_PACKAGES_CACHE/uno_packages/0KZAaE_/postgresql-sdbc-0.7.6.zip/postgresql-sdbc-0.7.6/linux_x86.plt/postgresql-sdbc.uno.so
      is registered: yes
      Media-Type:
application/vnd.sun.star.uno-component;type=native;platform=Linux_x86
      Description:
  }
 
http://user.services.openoffice.org/en/forum/viewtopic.php?f=40&t=25557&p=118662#p118658
Comment 1 drewjensen.inbox 2010-01-02 20:40:12 UTC
Tested with OOO320_RC1 w/ Ubuntu 9.10 and Win XP, PostgreSQL driver 0.7.6
Confirmed
Change OS to all

Comment 2 marc.neumann 2010-01-04 13:47:13 UTC
@oj,jbu: please have a look.
Comment 3 ocke.janssen 2010-01-07 11:30:15 UTC
@jbu: Please have a look at http://www.openoffice.org/issues/show_bug.cgi?id=101587
and the corresponding feature mail.
Comment 4 joergbudi 2010-01-24 15:01:12 UTC
@oj:

the feature mail leaves me with no clue what to do. Do you have a spec (or can
you point me to a sample source file) for at least the mandatory parameters
(urlpattern,ParentURLPattern , driver) ? Shall the configuration still be passed
in the DataAccess.xcu ?

Bye,

Joerg

-------
her my old DataAccess.xcu, which used to wor.
<?xml version="1.0" encoding="UTF-8"?>
<oor:node xmlns:oor="http://openoffice.org/2001/registry"
xmlns:xs="http://www.w3.org/2001/XMLSchema" oor:name="DataAccess"
oor:package="org.openoffice.Office">
 <node oor:name="UserDefinedDriverSettings">
       <node oor:name="Postgresql Driver" oor:op="replace">
	     <prop oor:name="DriverPageDisplayName">
		   <value>Postgresql-SDBC Driver V 0.7.5</value>
	     </prop>
	     <prop oor:name="DriverTypeDisplayName">
		   <value>postgresql</value>
	     </prop>
	     <prop oor:name="DriverDsnPrefix">
		   <value>sdbc:postgresql:</value>
	     </prop>
       </node>
 </node>
</oor:node>
Comment 6 joergbudi 2010-01-26 20:50:07 UTC
Created attachment 67427 [details]
add the file to drivers zip-file
Comment 7 joergbudi 2010-01-26 21:07:30 UTC
ok, adding the attached postgresql.xcu to the drivers zip file helps.


After a short rudimentary smoke test, most functionality seems to work, but the
office loops endlessly when entering the extras/relations. Switching off the
postgresql admin tables via the table filter helps here. It seems, that the
office now does a lot of expensive lookups, will need to have a look at this. 

Will do some more qa during the next days and release a new driver version.

Bye,

Joerg
Comment 8 h0l0fernes 2010-01-30 21:10:01 UTC
Could you be more descriptive?

Should I add xml code from attached postgresql.xcu to file:
/opt/openoffice.org/basis3.2/share/registry/data/org/openoffice/Office/DataAccess.xcu
??

I would like to use OOo with postgresql in 3.2 release too.


Comment 9 drewjensen.inbox 2010-01-30 21:46:45 UTC
@ h0l0fernes what I did 
- Removed the extension from my OO.o instance
- replaced the contents of DataAccess.xcu INSIDE the extension zip file. 
- installed the extension again

did the trick for me.
Comment 10 joergbudi 2010-02-02 19:48:31 UTC
@oj: In OO3.1 and earlier, there was a user/password tab page in the connection
settings, this is gone in OOo3.2 with my minimal config file. Can I add
something in the config file, so that the user/password page appears again ? I
looked through the various options, but I didn't find a setting for it.

Otherwise the user must add the password human readable within the url ...

The performance issue in the relations dialog existed already in 3.1, I will
follow this at a later time.

Bye,

Joerg
Comment 11 ocke.janssen 2010-02-03 07:17:01 UTC
Hi Joerg,
this one should enable the user - password dialog.

<node oor:name="MetaData">
        <node oor:name="Authentication" oor:op="replace">
          <prop oor:name="Value" oor:type="xs:string">
            <value>UserPassword</value>
          </prop>
        </node>
      </node>
Comment 12 h0l0fernes 2010-02-06 07:23:09 UTC
@atjensen
Thank You!
Did the trick to me also.

@oj
Thank You also, password dialog is also usefull

3.2 runs a lot smoothier than 3.1. 
Great job!

Comment 13 joergbudi 2010-02-07 12:39:01 UTC
I have released driver version 0.7.6a which includes the fixes mentioned in this
issue. Check the drivers hompage. http://dba.openoffice.org/drivers/postgresql/
Comment 14 ocke.janssen 2011-02-10 08:44:08 UTC
So this issue can be closed I guess.