This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 204282 - org.apache.derby.client.am.SqlException: Syntax error: Encountered "2" at line 1, column 15.
Summary: org.apache.derby.client.am.SqlException: Syntax error: Encountered "2" at lin...
Status: RESOLVED FIXED
Alias: None
Product: db
Classification: Unclassified
Component: Derby (show other bugs)
Version: 7.0
Hardware: All All
: P3 normal (vote)
Assignee: Jaroslav Havlin
URL:
Keywords:
: 214924 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-10-26 14:40 UTC by Jiri Rechtacek
Modified: 2012-06-28 16:08 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 182332


Attachments
stacktrace (2.11 KB, text/plain)
2011-10-26 14:40 UTC, Jiri Rechtacek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Rechtacek 2011-10-26 14:40:10 UTC
Build: NetBeans IDE Dev (Build 20111017-edb4ff1754ef)
VM: Java HotSpot(TM) 64-Bit Server VM, 21.0-b17, Java(TM) SE Runtime Environment, 1.7.0-b147
OS: Linux

User Comments:
jrechtacek: Creating Derby database with '2' as username and database name as well.




Stacktrace: 
org.apache.derby.client.am.SqlException: Syntax error: Encountered "2" at line 1, column 15.
   at org.apache.derby.client.am.Statement.completeSqlca(Statement.java:0)
   at org.apache.derby.client.net.NetStatementReply.parsePrepareError(NetStatementReply.java:0)
   at org.apache.derby.client.net.NetStatementReply.parsePRPSQLSTTreply(NetStatementReply.java:0)
   at org.apache.derby.client.net.NetStatementReply.readPrepareDescribeOutput(NetStatementReply.java:0)
   at org.apache.derby.client.net.StatementReply.readPrepareDescribeOutput(StatementReply.java:0)
   at org.apache.derby.client.net.NetStatement.readPrepareDescribeOutput_(NetStatement.java:0)
Comment 1 Jiri Rechtacek 2011-10-26 14:40:13 UTC
Created attachment 112462 [details]
stacktrace
Comment 2 Jaroslav Havlin 2012-04-23 13:43:08 UTC
http://hg.netbeans.org/core-main/rev/bb6053ba48db
Fixed. Usernames are validated.
Comment 3 Quality Engineering 2012-04-25 10:00:53 UTC
Integrated into 'main-golden', will be available in build *201204250400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/bb6053ba48db
User: Jaroslav Havlin <jhavlin@netbeans.org>
Log: #204282 - Validate user name
Comment 4 Jaroslav Havlin 2012-06-28 16:08:16 UTC
*** Bug 214924 has been marked as a duplicate of this bug. ***