jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Continuum
  • CONTINUUM-1112

Unable to use DB without username and password

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Won't Fix
  • Affects Version/s: 1.1-alpha-1
  • Fix Version/s: None
  • Component/s: Database
  • Labels:
    None
  • Environment:
    mysql jdbc driver 5.0.3, mysql server 5.0.24
  • Complexity:
    Intermediate

Description

Changed plexus.conf database definition to use mysql db that anyone can access (no user / no password) and got an error because it's trying to use a null username.

java.sql.SQLException: Access denied for user 'null'@'localhost' (using password: YES)

<resource>
<name>jdbc/continuum</name>
<type>javax.sql.DataSource</type>
<properties>
<property>
<name>driverClassName</name>
<value>com.mysql.jdbc.Driver</value>
</property>
<property>
<name>url</name>
<value>jdbc:mysql://localhost/test</value>
</property>
<property>
<name>username</name>
<value></value>
</property>
<property>
<name>password</name>
<value/>
</property>
</properties>
</resource>

  • Options
    • Sort By Name
    • Sort By Date
    • Ascending
    • Descending
    • Download All

Attachments

  1. Text File
    log.txt
    04/Jan/07 5:07 AM
    47 kB
    Carlos Sanchez

Issue Links

is related to

Improvement - An improvement or enhancement to an existing feature or task. CONTINUUM-1113 Continuum doesn't work with MySQL

  • Major - Major loss of function.
  • Closed - The issue is considered finished, the resolution is correct. Issues which are not closed can be reopened.

Improvement - An improvement or enhancement to an existing feature or task. CONTINUUM-1368 CLONE -Continuum doesn't work with MySQL

  • Major - Major loss of function.
  • Closed - The issue is considered finished, the resolution is correct. Issues which are not closed can be reopened.

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Nap Ramirez added a comment - 28/Apr/07 12:49 AM

This isn't a Continuum issue. To enable "null" users, or more known as anonymous users, privileges on the database must be granted to it. To make your configuration work, you'll have to do something like:

mysql> GRANT ALL PRIVILEGES ON test TO ''@'localhost';
mysql> FLUSH PRIVILEGES;

Show
Nap Ramirez added a comment - 28/Apr/07 12:49 AM This isn't a Continuum issue. To enable "null" users, or more known as anonymous users, privileges on the database must be granted to it. To make your configuration work, you'll have to do something like: mysql> GRANT ALL PRIVILEGES ON test TO ''@'localhost'; mysql> FLUSH PRIVILEGES;
Hide
Permalink
Carlos Sanchez added a comment - 28/Apr/07 1:26 AM

the problem was that it was trying to use the string "null" as username

Show
Carlos Sanchez added a comment - 28/Apr/07 1:26 AM the problem was that it was trying to use the string "null" as username
Hide
Permalink
Nap Ramirez added a comment - 28/Apr/07 11:42 AM

Oh I see, the database received a connection request from "null" when it should've been "". Btw, I tried it using the code from trunk, but I can't seem to reproduce the issue. Is there anything else to consider?

Show
Nap Ramirez added a comment - 28/Apr/07 11:42 AM Oh I see, the database received a connection request from "null" when it should've been "". Btw, I tried it using the code from trunk, but I can't seem to reproduce the issue. Is there anything else to consider?
Hide
Permalink
Carlos Sanchez added a comment - 28/Apr/07 11:59 AM

it could have been fixed already

Show
Carlos Sanchez added a comment - 28/Apr/07 11:59 AM it could have been fixed already

People

  • Assignee:
    Emmanuel Venisse
    Reporter:
    Carlos Sanchez
Vote (0)
Watch (0)

Dates

  • Created:
    04/Jan/07 5:07 AM
    Updated:
    06/Aug/07 12:20 AM
    Resolved:
    31/Jul/07 4:50 PM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.