Bug#749592: libreoffice-mysql-connector: doesn't work ignoring server configuration

2014-06-13 Thread MAG4 Piemonte
Hi, installing libreoffice-mysql-connector_1.0.2+LibO4.3.0~beta2-2_i386.deb on 
a 4.2.4-4 suite temporary solve the problem (waiting 4.2.5 version ...).
Regards!

Guido

In data venerdì 30 maggio 2014 20:48:58, Rene Engelhard ha scritto:
 Hi,
 
 On Thu, May 29, 2014 at 02:24:27PM +0200, Rene Engelhard wrote:
  -} else if (!pIter-Name.compareToAscii(LocalSocket)) {
  +} else if (pIter-Name.equalsAscii(LocalSocket)) {
   OSL_VERIFY( pIter-Value = sUnixSocket );
   unixSocketPassed = true;
  -} else if (!pIter-Name.compareToAscii(NamedPipe)) {
  +} else if (pIter-Name.equalsAscii(NamedPipe)) {
   OSL_VERIFY( pIter-Value = sNamedPipe );
   namedPipePassed = true;
 
 Wasn't this but the place was correct. Upstream fixed it.
 (for 4.4 only for now, but that hopefully will be backported)
 
 I backported the patch[1] and it'll be in the next upload of both the 4.2 and
 4.3 branches.
 
 Regards,
  
 Rene
 
 [1] 
 http://cgit.freedesktop.org/libreoffice/core/commit/?id=6b50e21473e7d2b24b5c609d8a1c31f27644d842


--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#749592: libreoffice-mysql-connector: doesn't work ignoring server configuration

2014-05-30 Thread Rene Engelhard
Hi,

On Thu, May 29, 2014 at 02:24:27PM +0200, Rene Engelhard wrote:
 -} else if (!pIter-Name.compareToAscii(LocalSocket)) {
 +} else if (pIter-Name.equalsAscii(LocalSocket)) {
  OSL_VERIFY( pIter-Value = sUnixSocket );
  unixSocketPassed = true;
 -} else if (!pIter-Name.compareToAscii(NamedPipe)) {
 +} else if (pIter-Name.equalsAscii(NamedPipe)) {
  OSL_VERIFY( pIter-Value = sNamedPipe );
  namedPipePassed = true;

Wasn't this but the place was correct. Upstream fixed it.
(for 4.4 only for now, but that hopefully will be backported)

I backported the patch[1] and it'll be in the next upload of both the 4.2 and
4.3 branches.

Regards,
 
Rene

[1] 
http://cgit.freedesktop.org/libreoffice/core/commit/?id=6b50e21473e7d2b24b5c609d8a1c31f27644d842


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#749592: libreoffice-mysql-connector: doesn't work ignoring server configuration

2014-05-29 Thread MAG4 Piemonte
severity 749592 important

Hi Rene,

In data mercoledì 28 maggio 2014 16:15:43, hai scritto:
 Hi,
 
 [ won't be able to test it today, brief answer. ]
 
 Hi,
 
 On Wed, May 28, 2014 at 03:37:02PM +0200, MAG4 Piemonte wrote:
  Package: libreoffice-mysql-connector
  Version: 1.0.2+LibO4.2.4-3
  Severity: grave
  Justification: renders package unusable
 
 Why? How does this render the whole package unusable?

You are right, unusable on remote connections (we can not test locally because 
Libreoffice is on clients with jessie and MySQL is on server with wheezy) ...

 
  upgrading some clients with testing from version 1.0.2+LibO4.1.6~rc2-1 to
  version 1.0.2+LibO4.2.4-3 the MySQL connector start ignoring server
  configuration with error message:
 
 Do you mean it ignores what you set it to connect to and always tries to ..
 
  SQL state: HY000
  Errore code: 2002
  Can't connect to local MySQL server through socket
  '/var/run/mysqld/mysqld.sock' (2)
 
 ... do it locally?

Exactly!

 
 Then IMHO it's still not grave as you can use it locally using a socket,
 but yeah, it's bad as the normal use case is of course over the network...

Yes, we change severity to important.

 
 This sounds like
  - https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=745101 and
https://bugs.freedesktop.org/show_bug.cgi?id=77584
(which was pretty confusing, so was important only...)

Yes, but we are not over SSH tunnel ...

 
 but that one also was found in 4.1.x (and even older.) whereas this one
 is new in 4.2.x...
 
 Regards,
 
 Rene

Regards!

Guido


--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#749592: libreoffice-mysql-connector: doesn't work ignoring server configuration

2014-05-29 Thread Rene Engelhard
retitle 749592 libreoffice-mysql-connector: doesn't work with remote 
connections; ignoring server configuration and always tries socket
thanks

Hi,

On Thu, May 29, 2014 at 10:29:45AM +0200, MAG4 Piemonte wrote:
  On Wed, May 28, 2014 at 03:37:02PM +0200, MAG4 Piemonte wrote:
   Package: libreoffice-mysql-connector
   Version: 1.0.2+LibO4.2.4-3
   Severity: grave
   Justification: renders package unusable
  
  Why? How does this render the whole package unusable?
 
 You are right, unusable on remote connections (we can not test locally 
 because Libreoffice is on clients with jessie and MySQL is on server with 
 wheezy) ...

OK

I diffed mysqlc's source from 4.1.6 to 4.2.0 and saw

diff --git a/mysqlc/source/mysqlc_connection.cxx 
b/mysqlc/source/mysqlc_connection.cxx
index bd9b159..8816cb2 100644
--- a/mysqlc/source/mysqlc_connection.cxx
+++ b/mysqlc/source/mysqlc_connection.cxx
@@ -152,19 +152,19 @@ void OConnection::construct(const OUString url, const 
Sequence PropertyValue 

 m_settings.connectionURL = url;
 for (;pIter != pEnd;++pIter) {
-if (!pIter-Name.compareToAscii(user)) {
+if (pIter-Name.equalsAscii(user)) {
 OSL_VERIFY( pIter-Value = aUser );
-} else if (!pIter-Name.compareToAscii(password)) {
+} else if (pIter-Name.equalsAscii(password)) {
 OSL_VERIFY( pIter-Value = aPass );
-} else if (!pIter-Name.compareToAscii(LocalSocket)) {
+} else if (pIter-Name.equalsAscii(LocalSocket)) {
 OSL_VERIFY( pIter-Value = sUnixSocket );
 unixSocketPassed = true;
-} else if (!pIter-Name.compareToAscii(NamedPipe)) {
+} else if (pIter-Name.equalsAscii(NamedPipe)) {
 OSL_VERIFY( pIter-Value = sNamedPipe );
 namedPipePassed = true;
-} else if ( !pIter-Name.compareToAscii(PublicConnectionURL)) {
+} else if ( pIter-Name.equalsAscii(PublicConnectionURL)) {
 OSL_VERIFY( pIter-Value = m_settings.connectionURL );
-} else if ( !pIter-Name.compareToAscii(NewURL)) {// legacy name 
for PublicConnectionURL
+} else if ( pIter-Name.equalsAscii(NewURL)) {// legacy name for 
PublicConnectionURL
 OSL_VERIFY( pIter-Value = m_settings.connectionURL );
 }
 }

which upstream says is semantically ok but looks related nevertheles... Will 
try to revert.

Regards,

Rene


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#749592: libreoffice-mysql-connector: doesn't work ignoring server configuration

2014-05-28 Thread MAG4 Piemonte
Package: libreoffice-mysql-connector
Version: 1.0.2+LibO4.2.4-3
Severity: grave
Justification: renders package unusable

Dear Maintainer,
upgrading some clients with testing from version 1.0.2+LibO4.1.6~rc2-1 to
version 1.0.2+LibO4.2.4-3 the MySQL connector start ignoring server
configuration with error message:
SQL state: HY000
Errore code: 2002
Can't connect to local MySQL server through socket
'/var/run/mysqld/mysqld.sock' (2)

Searching for solutions we found
https://bugs.launchpad.net/ubuntu/+source/libreoffice/+bug/1276442 that seems
to be the same in Ubuntu ...

Regards!

Guido



-- Package-specific info:

-- System Information:
Debian Release: jessie/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 3.14-1-686-pae (SMP w/1 CPU core)
Locale: LANG=it_IT.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages libreoffice-mysql-connector depends on:
ii  libc6 2.18-7
ii  libgcc1   1:4.9.0-4
ii  libmysqlcppconn7  1.1.3-5
ii  libreoffice-core  1:4.2.4-3
ii  libstdc++64.9.0-4
ii  uno-libs3 4.2.4-3
ii  ure   4.2.4-3

libreoffice-mysql-connector recommends no packages.

Versions of packages libreoffice-mysql-connector suggests:
pn  mariadb-server | mysql-server  none

-- no debconf information


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#749592: libreoffice-mysql-connector: doesn't work ignoring server configuration

2014-05-28 Thread Rene Engelhard
Hi,

[ won't be able to test it today, brief answer. ]

Hi,

On Wed, May 28, 2014 at 03:37:02PM +0200, MAG4 Piemonte wrote:
 Package: libreoffice-mysql-connector
 Version: 1.0.2+LibO4.2.4-3
 Severity: grave
 Justification: renders package unusable

Why? How does this render the whole package unusable?

 upgrading some clients with testing from version 1.0.2+LibO4.1.6~rc2-1 to
 version 1.0.2+LibO4.2.4-3 the MySQL connector start ignoring server
 configuration with error message:

Do you mean it ignores what you set it to connect to and always tries to ..

 SQL state: HY000
 Errore code: 2002
 Can't connect to local MySQL server through socket
 '/var/run/mysqld/mysqld.sock' (2)

... do it locally?

Then IMHO it's still not grave as you can use it locally using a socket,
but yeah, it's bad as the normal use case is of course over the network...

This sounds like
 - https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=745101 and
   https://bugs.freedesktop.org/show_bug.cgi?id=77584
   (which was pretty confusing, so was important only...)

but that one also was found in 4.1.x (and even older.) whereas this one
is new in 4.2.x...

Regards,

Rene


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org