[jira] Updated: (DERBY-3848) dblook fails to connect an authenticated database

2009-07-03 Thread Kristian Waagan (JIRA)

 [ 
https://issues.apache.org/jira/browse/DERBY-3848?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Kristian Waagan updated DERBY-3848:
---


Triaged July 3, 2009:  Assigned normal urgency.

> dblook fails to connect an authenticated database
> -
>
> Key: DERBY-3848
> URL: https://issues.apache.org/jira/browse/DERBY-3848
> Project: Derby
>  Issue Type: Bug
>  Components: Tools
>Affects Versions: 10.4.1.3
> Environment: anto...@antonio-laptop:~/temp/derby$ sysinfo
> - Información de Java 
> Versión de Java: 1.6.0_06
> Proveedor de Java:   Sun Microsystems Inc.
> Inicio Java: /usr/lib/jvm/java-6-sun-1.6.0.06/jre
> Classpath de Java:   
> /usr/local/db-derby-10.4.1.3-bin/lib/derby.jar:/usr/local/db-derby-10.4.1.3-bin/lib/derbynet.jar:/usr/local/db-derby-10.4.1.3-bin/lib/derbytools.jar:/usr/local/db-derby-10.4.1.3-bin/lib/derbyclient.jar
> Nombre del SO:   Linux
> Arquitectura del SO: i386
> Versión del SO:  2.6.24-19-generic
> Nombre usuario Java: antonio
> Dir. inicial usuario:/home/antonio
> Dir. usuario:/home/antonio/temp/derby
> java.specification.name: Java Platform API Specification
> java.specification.version: 1.6
> - Información de Derby 
> JRE - JDBC: Java SE 6 - JDBC 4.0
> [/usr/local/db-derby-10.4.1.3-bin/lib/derby.jar] 10.4.1.3 - (648739)
> [/usr/local/db-derby-10.4.1.3-bin/lib/derbytools.jar] 10.4.1.3 - (648739)
> [/usr/local/db-derby-10.4.1.3-bin/lib/derbynet.jar] 10.4.1.3 - (648739)
> [/usr/local/db-derby-10.4.1.3-bin/lib/derbyclient.jar] 10.4.1.3 - (648739)
> --
> -- Información de entorno local --
> Entorno local actual:  [español/España [es_ES]]
> Se encontró soporte para el entorno local: [cs]
>versión: 10.4.1.3 - (648739)
> Se encontró soporte para el entorno local: [de_DE]
>versión: 10.4.1.3 - (648739)
> Se encontró soporte para el entorno local: [es]
>versión: 10.4.1.3 - (648739)
> Se encontró soporte para el entorno local: [fr]
>versión: 10.4.1.3 - (648739)
> Se encontró soporte para el entorno local: [hu]
>versión: 10.4.1.3 - (648739)
> Se encontró soporte para el entorno local: [it]
>versión: 10.4.1.3 - (648739)
> Se encontró soporte para el entorno local: [ja_JP]
>versión: 10.4.1.3 - (648739)
> Se encontró soporte para el entorno local: [ko_KR]
>versión: 10.4.1.3 - (648739)
> Se encontró soporte para el entorno local: [pl]
>versión: 10.4.1.3 - (648739)
> Se encontró soporte para el entorno local: [pt_BR]
>versión: 10.4.1.3 - (648739)
> Se encontró soporte para el entorno local: [ru]
>versión: 10.4.1.3 - (648739)
> Se encontró soporte para el entorno local: [zh_CN]
>versión: 10.4.1.3 - (648739)
> Se encontró soporte para el entorno local: [zh_TW]
>versión: 10.4.1.3 - (648739)
> --
>Reporter: Antonio Sánchez
>Priority: Minor
> Attachments: dblook.log, derby.log, test.sh
>
>
> dblook is not connecting an authenticated database.
> I create an authenticated database this way:
> 1. ij
> 2. connect 'jdbc:derby:dblooktest;create=true;user=test;password=test';
> 3. CALL 
> SYSCS_UTIL.SYSCS_SET_DATABASE_PROPERTY('derby.connection.requireAuthentication','true');
> 4. CALL SYSCS_UTIL.SYSCS_SET_DATABASE_PROPERTY('derby.user.test', 'test');
> 5. CREATE TABLE DBLOOKTESTTABLE(I INT NOT NULL PRIMARY KEY);
> 6. disconnect;
> 7. quit;
> And use dblook this way:
> 8. dblook -d 'jdbc:derby:dblooktest;user=test;password=test';
> Then an error is reported (dblook.log contents are at the end of this 
> description);
> Nevertheless, if I do not require authentication:
> 9. CALL 
> SYSCS_UTIL.SYSCS_SET_DATABASE_PROPERTY('derby.connection.requireAuthentication','false');
> Then dblook works properly:
> 10. dblook -d 'jdbc:derby:dblooktest;user=test;password=test'; 
> 11. dblook -d 'jdbc:derby:dblooktest'; 
> Thus, the same connection url that works in ij for an authenticated database 
> does not in dblook.
> === dblook.log
> java.sql.SQLNonTransientConnectionException: Se ha producido una anomalía de 
> autenticación de conexión.  Razón: Autenticación no válida..
>   at 
> org.apache.derby.impl.jdbc.SQLExceptionFactory40.getSQLException(Unknown 
> Source)
>   at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Unknown Source)
>   at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Unknown Source)
>   at org.apache.derby.impl.jdbc.Util.generateCsSQLException(Unknown 
> Source)
>   at org.apache.derby.impl.jdbc.EmbedConnection.newSQLException(Unknown 
> Source)
>   at 
> org.apache.derby.impl.jdbc.EmbedConnection.checkUserCredentials(Unknown 
> Source)
>   at or

[jira] Updated: (DERBY-3848) dblook fails to connect an authenticated database

2008-08-27 Thread JIRA

 [ 
https://issues.apache.org/jira/browse/DERBY-3848?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Antonio Sánchez updated DERBY-3848:
---

Attachment: dblook.log
derby.log

I am attaching both logs.

I'm going to try this at other system(s) and will let you know.

This is the OUTPUT:

[EMAIL PROTECTED]:~/temp/derby$ ./test.sh
Versión ij 10.4
ij> ij> 0 filas insertadas/actualizadas/suprimidas
ij> 0 filas insertadas/actualizadas/suprimidas
ij> 0 filas insertadas/actualizadas/suprimidas
ij> ij> ERROR XJ015: Conclusión del sistema Derby.
ij> -- Indicación de hora: 2008-08-27 14:37:47.679
-- Base de datos origen: dblooktest
-- URL de conexión: jdbc:derby:dblooktest
-- appendLogs: false

-- Nota: Se encontró por lo menos un mensaje de error/aviso
-- en la generación de DLL.  Consulte el archivo dblook.log
-- para ver los mensajes.


> dblook fails to connect an authenticated database
> -
>
> Key: DERBY-3848
> URL: https://issues.apache.org/jira/browse/DERBY-3848
> Project: Derby
>  Issue Type: Bug
>  Components: Tools
>Affects Versions: 10.4.1.3
> Environment: [EMAIL PROTECTED]:~/temp/derby$ sysinfo
> - Información de Java 
> Versión de Java: 1.6.0_06
> Proveedor de Java:   Sun Microsystems Inc.
> Inicio Java: /usr/lib/jvm/java-6-sun-1.6.0.06/jre
> Classpath de Java:   
> /usr/local/db-derby-10.4.1.3-bin/lib/derby.jar:/usr/local/db-derby-10.4.1.3-bin/lib/derbynet.jar:/usr/local/db-derby-10.4.1.3-bin/lib/derbytools.jar:/usr/local/db-derby-10.4.1.3-bin/lib/derbyclient.jar
> Nombre del SO:   Linux
> Arquitectura del SO: i386
> Versión del SO:  2.6.24-19-generic
> Nombre usuario Java: antonio
> Dir. inicial usuario:/home/antonio
> Dir. usuario:/home/antonio/temp/derby
> java.specification.name: Java Platform API Specification
> java.specification.version: 1.6
> - Información de Derby 
> JRE - JDBC: Java SE 6 - JDBC 4.0
> [/usr/local/db-derby-10.4.1.3-bin/lib/derby.jar] 10.4.1.3 - (648739)
> [/usr/local/db-derby-10.4.1.3-bin/lib/derbytools.jar] 10.4.1.3 - (648739)
> [/usr/local/db-derby-10.4.1.3-bin/lib/derbynet.jar] 10.4.1.3 - (648739)
> [/usr/local/db-derby-10.4.1.3-bin/lib/derbyclient.jar] 10.4.1.3 - (648739)
> --
> -- Información de entorno local --
> Entorno local actual:  [español/España [es_ES]]
> Se encontró soporte para el entorno local: [cs]
>versión: 10.4.1.3 - (648739)
> Se encontró soporte para el entorno local: [de_DE]
>versión: 10.4.1.3 - (648739)
> Se encontró soporte para el entorno local: [es]
>versión: 10.4.1.3 - (648739)
> Se encontró soporte para el entorno local: [fr]
>versión: 10.4.1.3 - (648739)
> Se encontró soporte para el entorno local: [hu]
>versión: 10.4.1.3 - (648739)
> Se encontró soporte para el entorno local: [it]
>versión: 10.4.1.3 - (648739)
> Se encontró soporte para el entorno local: [ja_JP]
>versión: 10.4.1.3 - (648739)
> Se encontró soporte para el entorno local: [ko_KR]
>versión: 10.4.1.3 - (648739)
> Se encontró soporte para el entorno local: [pl]
>versión: 10.4.1.3 - (648739)
> Se encontró soporte para el entorno local: [pt_BR]
>versión: 10.4.1.3 - (648739)
> Se encontró soporte para el entorno local: [ru]
>versión: 10.4.1.3 - (648739)
> Se encontró soporte para el entorno local: [zh_CN]
>versión: 10.4.1.3 - (648739)
> Se encontró soporte para el entorno local: [zh_TW]
>versión: 10.4.1.3 - (648739)
> --
>Reporter: Antonio Sánchez
>Priority: Minor
> Attachments: dblook.log, derby.log, test.sh
>
>
> dblook is not connecting an authenticated database.
> I create an authenticated database this way:
> 1. ij
> 2. connect 'jdbc:derby:dblooktest;create=true;user=test;password=test';
> 3. CALL 
> SYSCS_UTIL.SYSCS_SET_DATABASE_PROPERTY('derby.connection.requireAuthentication','true');
> 4. CALL SYSCS_UTIL.SYSCS_SET_DATABASE_PROPERTY('derby.user.test', 'test');
> 5. CREATE TABLE DBLOOKTESTTABLE(I INT NOT NULL PRIMARY KEY);
> 6. disconnect;
> 7. quit;
> And use dblook this way:
> 8. dblook -d 'jdbc:derby:dblooktest;user=test;password=test';
> Then an error is reported (dblook.log contents are at the end of this 
> description);
> Nevertheless, if I do not require authentication:
> 9. CALL 
> SYSCS_UTIL.SYSCS_SET_DATABASE_PROPERTY('derby.connection.requireAuthentication','false');
> Then dblook works properly:
> 10. dblook -d 'jdbc:derby:dblooktest;user=test;password=test'; 
> 11. dblook -d 'jdbc:derby:dblooktest'; 
> Thus, the same connection url that works in ij for an authenticated database 
> does not in dblook.
> === dblook.log
> java.sql.SQLNonTra

[jira] Updated: (DERBY-3848) dblook fails to connect an authenticated database

2008-08-25 Thread Dag H. Wanvik (JIRA)

 [ 
https://issues.apache.org/jira/browse/DERBY-3848?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Dag H. Wanvik updated DERBY-3848:
-

Attachment: test.sh

I enclose a bash script which I used to try to reproduce the error on 10.4 
trunk,
but I failed. Notice that I included an explicit shutdown. If you add that, 
does it
still fail?


> dblook fails to connect an authenticated database
> -
>
> Key: DERBY-3848
> URL: https://issues.apache.org/jira/browse/DERBY-3848
> Project: Derby
>  Issue Type: Bug
>  Components: Tools
>Affects Versions: 10.4.1.3
> Environment: [EMAIL PROTECTED]:~/temp/derby$ sysinfo
> - Información de Java 
> Versión de Java: 1.6.0_06
> Proveedor de Java:   Sun Microsystems Inc.
> Inicio Java: /usr/lib/jvm/java-6-sun-1.6.0.06/jre
> Classpath de Java:   
> /usr/local/db-derby-10.4.1.3-bin/lib/derby.jar:/usr/local/db-derby-10.4.1.3-bin/lib/derbynet.jar:/usr/local/db-derby-10.4.1.3-bin/lib/derbytools.jar:/usr/local/db-derby-10.4.1.3-bin/lib/derbyclient.jar
> Nombre del SO:   Linux
> Arquitectura del SO: i386
> Versión del SO:  2.6.24-19-generic
> Nombre usuario Java: antonio
> Dir. inicial usuario:/home/antonio
> Dir. usuario:/home/antonio/temp/derby
> java.specification.name: Java Platform API Specification
> java.specification.version: 1.6
> - Información de Derby 
> JRE - JDBC: Java SE 6 - JDBC 4.0
> [/usr/local/db-derby-10.4.1.3-bin/lib/derby.jar] 10.4.1.3 - (648739)
> [/usr/local/db-derby-10.4.1.3-bin/lib/derbytools.jar] 10.4.1.3 - (648739)
> [/usr/local/db-derby-10.4.1.3-bin/lib/derbynet.jar] 10.4.1.3 - (648739)
> [/usr/local/db-derby-10.4.1.3-bin/lib/derbyclient.jar] 10.4.1.3 - (648739)
> --
> -- Información de entorno local --
> Entorno local actual:  [español/España [es_ES]]
> Se encontró soporte para el entorno local: [cs]
>versión: 10.4.1.3 - (648739)
> Se encontró soporte para el entorno local: [de_DE]
>versión: 10.4.1.3 - (648739)
> Se encontró soporte para el entorno local: [es]
>versión: 10.4.1.3 - (648739)
> Se encontró soporte para el entorno local: [fr]
>versión: 10.4.1.3 - (648739)
> Se encontró soporte para el entorno local: [hu]
>versión: 10.4.1.3 - (648739)
> Se encontró soporte para el entorno local: [it]
>versión: 10.4.1.3 - (648739)
> Se encontró soporte para el entorno local: [ja_JP]
>versión: 10.4.1.3 - (648739)
> Se encontró soporte para el entorno local: [ko_KR]
>versión: 10.4.1.3 - (648739)
> Se encontró soporte para el entorno local: [pl]
>versión: 10.4.1.3 - (648739)
> Se encontró soporte para el entorno local: [pt_BR]
>versión: 10.4.1.3 - (648739)
> Se encontró soporte para el entorno local: [ru]
>versión: 10.4.1.3 - (648739)
> Se encontró soporte para el entorno local: [zh_CN]
>versión: 10.4.1.3 - (648739)
> Se encontró soporte para el entorno local: [zh_TW]
>versión: 10.4.1.3 - (648739)
> --
>Reporter: Antonio Sánchez
>Priority: Minor
> Attachments: test.sh
>
>
> dblook is not connecting an authenticated database.
> I create an authenticated database this way:
> 1. ij
> 2. connect 'jdbc:derby:dblooktest;create=true;user=test;password=test';
> 3. CALL 
> SYSCS_UTIL.SYSCS_SET_DATABASE_PROPERTY('derby.connection.requireAuthentication','true');
> 4. CALL SYSCS_UTIL.SYSCS_SET_DATABASE_PROPERTY('derby.user.test', 'test');
> 5. CREATE TABLE DBLOOKTESTTABLE(I INT NOT NULL PRIMARY KEY);
> 6. disconnect;
> 7. quit;
> And use dblook this way:
> 8. dblook -d 'jdbc:derby:dblooktest;user=test;password=test';
> Then an error is reported (dblook.log contents are at the end of this 
> description);
> Nevertheless, if I do not require authentication:
> 9. CALL 
> SYSCS_UTIL.SYSCS_SET_DATABASE_PROPERTY('derby.connection.requireAuthentication','false');
> Then dblook works properly:
> 10. dblook -d 'jdbc:derby:dblooktest;user=test;password=test'; 
> 11. dblook -d 'jdbc:derby:dblooktest'; 
> Thus, the same connection url that works in ij for an authenticated database 
> does not in dblook.
> === dblook.log
> java.sql.SQLNonTransientConnectionException: Se ha producido una anomalía de 
> autenticación de conexión.  Razón: Autenticación no válida..
>   at 
> org.apache.derby.impl.jdbc.SQLExceptionFactory40.getSQLException(Unknown 
> Source)
>   at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Unknown Source)
>   at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Unknown Source)
>   at org.apache.derby.impl.jdbc.Util.generateCsSQLException(Unknown 
> Source)
>   at org.apache.derby.impl.jdbc.EmbedConnection.newSQLException(Unkn