Skip to content

Using native client, password is limited to 255 bytes #925

@asfernandes

Description

@asfernandes

Tested with 5.0.11.

fbclient has not this limitation.

    java.lang.IllegalArgumentException: byte array derived from String value should not be longer than 255 bytes, length was 1340
        at org.firebirdsql.gds.impl.argument.StringArgument.<init>(StringArgument.java:65)
        at org.firebirdsql.gds.impl.ParameterBufferBase.addArgument(ParameterBufferBase.java:97)
        at org.firebirdsql.gds.impl.ParameterBufferBase.addArgument(ParameterBufferBase.java:92)
        at org.firebirdsql.gds.ng.jna.JnaParameterConverter.populateAuthenticationProperties(JnaParameterConverter.java:49)
        at org.firebirdsql.gds.ng.AbstractParameterConverter.populateDefaultProperties(AbstractParameterConverter.java:83)
        at org.firebirdsql.gds.ng.AbstractParameterConverter.toDatabaseParameterBuffer(AbstractParameterConverter.java:62)
        at org.firebirdsql.gds.ng.jna.JnaDatabase.attach(JnaDatabase.java:113)
        at org.firebirdsql.jaybird.xca.FBManagedConnection.<init>(FBManagedConnection.java:124)
        at org.firebirdsql.jaybird.xca.FBManagedConnectionFactory.createManagedConnection(FBManagedConnectionFactory.java:375)
        at org.firebirdsql.jaybird.xca.FBStandAloneConnectionManager.allocateConnection(FBStandAloneConnectionManager.java:48)
        at org.firebirdsql.jdbc.FBDataSource.getConnection(FBDataSource.java:72)
        at org.firebirdsql.jdbc.FBDriver.connect(FBDriver.java:137)
        at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:613)
        at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:160)

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions