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)
  • Sonar
  • SONAR-1509

login does not work with uid values containing a whitspace

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 2.0.1
  • Fix Version/s: 2.2
  • Component/s: Authentication & Authorization
  • Labels:
    None
  • Environment:
    windows 7 x 64 , any LDAP server. tested on UnboundID Directory Server 2.2 and OpenDS 2.2

Description

Validation failed: Login use only letters, numbers, and .-_@ please.
RAILS_ROOT: C:\Users/arnaud/Documents/sonar-2.0.1/war/sonar-server/WEB-INF

Application Trace | Framework Trace | Full Trace
C:/Users/arnaud/Documents/sonar-2.0.1/war/sonar-server/WEB-INF/gems/gems/activerecord-2.2.2/lib/active_record/validations.rb:1021:in `save_with_validation!'
C:/Users/arnaud/Documents/sonar-2.0.1/war/sonar-server/WEB-INF/gems/gems/activerecord-2.2.2/lib/active_record/dirty.rb:87:in `save_with_dirty!'
C:/Users/arnaud/Documents/sonar-2.0.1/war/sonar-server/WEB-INF/gems/gems/activerecord-2.2.2/lib/active_record/transactions.rb:150:in `save_with_transactions!'
C:/Users/arnaud/Documents/sonar-2.0.1/war/sonar-server/WEB-INF/gems/gems/activerecord-2.2.2/lib/active_record/connection_adapters/abstract/database_statements.rb:66:in `transaction'
C:/Users/arnaud/Documents/sonar-2.0.1/war/sonar-server/WEB-INF/gems/gems/activerecord-2.2.2/lib/active_record/transactions.rb:129:in `transaction'
C:/Users/arnaud/Documents/sonar-2.0.1/war/sonar-server/WEB-INF/gems/gems/activerecord-2.2.2/lib/active_record/transactions.rb:138:in `transaction'
C:/Users/arnaud/Documents/sonar-2.0.1/war/sonar-server/WEB-INF/gems/gems/activerecord-2.2.2/lib/active_record/transactions.rb:150:in `save_with_transactions!'
C:/Users/arnaud/Documents/sonar-2.0.1/war/sonar-server/WEB-INF/gems/gems/activerecord-2.2.2/lib/active_record/transactions.rb:158:in `rollback_active_record_state!'
C:/Users/arnaud/Documents/sonar-2.0.1/war/sonar-server/WEB-INF/gems/gems/activerecord-2.2.2/lib/active_record/transactions.rb:150:in `save_with_transactions!'
lib/need_authentication.rb:99:in `authenticate'
app/controllers/sessions_controller.rb:30:in `login'
C:/Users/arnaud/Documents/sonar-2.0.1/war/sonar-server/WEB-INF/gems/gems/actionpack-2.2.2/lib/action_controller/base.rb:1253:in `perform_action'
C:/Users/arnaud/Documents/sonar-2.0.1/war/sonar-server/WEB-INF/gems/gems/actionpack-2.2.2/lib/action_controller/filters.rb:617:in `call_filters'
C:/Users/arnaud/Documents/sonar-2.0.1/war/sonar-server/WEB-INF/gems/gems/actionpack-2.2.2/lib/action_controller/filters.rb:610:in `perform_action_with_filters'
C:/Users/arnaud/Documents/sonar-2.0.1/war/sonar-server/WEB-INF/gems/gems/actionpack-2.2.2/lib/action_controller/benchmarking.rb:68:in `perform_action_with_benchmark'
C:/Users/arnaud/Documents/sonar-2.0.1/war/sonar-server/WEB-INF/gems/gems/actionpack-2.2.2/lib/action_controller/benchmarking.rb:68:in `perform_action_with_benchmark'
C:/Users/arnaud/Documents/sonar-2.0.1/war/sonar-server/WEB-INF/gems/gems/actionpack-2.2.2/lib/action_controller/rescue.rb:136:in `perform_action_with_rescue'
C:/Users/arnaud/Documents/sonar-2.0.1/war/sonar-server/WEB-INF/gems/gems/actionpack-2.2.2/lib/action_controller/caching/sql_cache.rb:13:in `perform_action_with_caching'
C:/Users/arnaud/Documents/sonar-2.0.1/war/sonar-server/WEB-INF/gems/gems/activerecord-2.2.2/lib/active_record/connection_adapters/abstract/query_cache.rb:34:in `cache'
C:/Users/arnaud/Documents/sonar-2.0.1/war/sonar-server/WEB-INF/gems/gems/activerecord-2.2.2/lib/active_record/query_cache.rb:8:in `cache'
C:/Users/arnaud/Documents/sonar-2.0.1/war/sonar-server/WEB-INF/gems/gems/actionpack-2.2.2/lib/action_controller/caching/sql_cache.rb:12:in `perform_action_with_caching'
C:/Users/arnaud/Documents/sonar-2.0.1/war/sonar-server/WEB-INF/gems/gems/actionpack-2.2.2/lib/action_controller/base.rb:524:in `process'
C:/Users/arnaud/Documents/sonar-2.0.1/war/sonar-server/WEB-INF/gems/gems/actionpack-2.2.2/lib/action_controller/filters.rb:606:in `process_with_filters'
C:/Users/arnaud/Documents/sonar-2.0.1/war/sonar-server/WEB-INF/gems/gems/actionpack-2.2.2/lib/action_controller/session_management.rb:134:in `process_with_session_management_support'
C:/Users/arnaud/Documents/sonar-2.0.1/war/sonar-server/WEB-INF/gems/gems/actionpack-2.2.2/lib/action_controller/base.rb:392:in `process'
:1
Request

Parameters:

{"login"=>"arnaud lacour", "password"=>"password", "remember_me"=>"1", "commit"=>"Log in"}

Show session dump

Response

Headers:

{"Cache-Control"=>"no-cache", "cookie"=>[], "Content-Type"=>""}

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Evgeny Mandrikov added a comment - 18/Apr/10 9:22 AM

Hi Arnaud,

I think that problem comes from the fact that your username contains space character. Could you please try without space?

Show
Evgeny Mandrikov added a comment - 18/Apr/10 9:22 AM Hi Arnaud, I think that problem comes from the fact that your username contains space character. Could you please try without space?
Hide
Permalink
arnaud lacour added a comment - 18/Apr/10 10:29 AM

Hi Evgeny, thanks for quick reply.
It does work without white spaces but the fact of the matter is that uid is a Directory String and can contain white spaces and often do.
I've worked around the issue temporarily by adding a white space less uid for users that I want to be able to authenticate to sonar but this isn't going to fly for a full blown deployment I don't think.

Show
arnaud lacour added a comment - 18/Apr/10 10:29 AM Hi Evgeny, thanks for quick reply. It does work without white spaces but the fact of the matter is that uid is a Directory String and can contain white spaces and often do. I've worked around the issue temporarily by adding a white space less uid for users that I want to be able to authenticate to sonar but this isn't going to fly for a full blown deployment I don't think.
Hide
Permalink
Evgeny Mandrikov added a comment - 18/Apr/10 10:37 AM

So, if LDAP authentication works with username without space, then this problem doesn't relate to LDAP plugin. And relates to Sonar Core, which doesn't allows spaces in username.

Show
Evgeny Mandrikov added a comment - 18/Apr/10 10:37 AM So, if LDAP authentication works with username without space, then this problem doesn't relate to LDAP plugin. And relates to Sonar Core, which doesn't allows spaces in username.
Hide
Permalink
Evgeny Mandrikov added a comment - 18/Apr/10 12:28 PM

So, I've moved this issue to Sonar core.

Show
Evgeny Mandrikov added a comment - 18/Apr/10 12:28 PM So, I've moved this issue to Sonar core.
Hide
Permalink
arnaud lacour added a comment - 18/Apr/10 2:11 PM

ah ok, good call, sorry for misfiling this, I had no idea. Thanks for the great turn around time!

Show
arnaud lacour added a comment - 18/Apr/10 2:11 PM ah ok, good call, sorry for misfiling this, I had no idea. Thanks for the great turn around time!

People

  • Assignee:
    Simon Brandhof
    Reporter:
    arnaud lacour
Vote (0)
Watch (0)

Dates

  • Created:
    18/Apr/10 9:15 AM
    Updated:
    30/Jun/10 4:51 AM
    Resolved:
    21/May/10 4:54 AM
  • 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.