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-2929

Improve NT scripts to fail with an error message in case UAC is enabled and not ran as administrator

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Improvement Improvement
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: 2.12
  • Component/s: Wrapper
  • Labels:
    None
  • Environment:
    Windows >= Vista
    Windows Server >= 2008
    both with UAC enabled.

Description

When running the service install/uninstall/start or stop scripts of Sonar on a system with UAC enabled, without running them as administrator, there is a failure without any error message.

An error message should be displayed to guide the user and have him/her run the script as administrator.

Issue Links

is related to

Improvement - An improvement or enhancement to an existing feature or task. SONAR-2794 Improve NT Service scripts to support UAC on Windows >= Vista / Server 2008

  • Major - Major loss of function.
  • Open - The issue is open and ready for the assignee to start work on it.

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Dinesh Bolkensteyn added a comment - 21/Oct/11 7:30 AM

Just like Nexus does.

Show
Dinesh Bolkensteyn added a comment - 21/Oct/11 7:30 AM Just like Nexus does.
Hide
Permalink
Evgeny Mandrikov added a comment - 25/Oct/11 1:09 PM

Manually tested on Windows XP and on Windows 7 :

  1. StartSonar.bat as non-admin => OK
  2. StartNTService.bat as admin => message in console:
    wrapper  | The Sonar service is not installed - The specified service does not exist as an installed service. (0x424)
    Press any key to continue . . .
    
  3. InstallNTService.bat as non-admin => message in console:
    wrapper  | OpenSCManager failed - Access is denied. (0x5)
    Press any key to continue . . .
    
  4. InstallNTService.bat as admin => OK
  5. StartNTService.bat as non-admin => message in console:
    wrapper  | OpenSCManager failed - Access is denied. (0x5)
    Press any key to continue . . .
    
  6. StartNTService.bat => OK
  7. UninstallNTService.bat as non-admin => message in console:
    wrapper  | OpenSCManager failed - Access is denied. (0x5)
    Press any key to continue . . .
    
  8. UninstallNTService.bat as admin => OK
  9. UninstallNTService.bat as admin => message in console:
    wrapper  | The Sonar service is not installed - The specified service does not exist as an installed service. (0x424)
    Press any key to continue . . .
    

Well done Dinesh!

Show
Evgeny Mandrikov added a comment - 25/Oct/11 1:09 PM Manually tested on Windows XP and on Windows 7 :
  1. StartSonar.bat as non-admin => OK
  2. StartNTService.bat as admin => message in console:
    wrapper  | The Sonar service is not installed - The specified service does not exist as an installed service. (0x424)
    Press any key to continue . . .
    
  3. InstallNTService.bat as non-admin => message in console:
    wrapper  | OpenSCManager failed - Access is denied. (0x5)
    Press any key to continue . . .
    
  4. InstallNTService.bat as admin => OK
  5. StartNTService.bat as non-admin => message in console:
    wrapper  | OpenSCManager failed - Access is denied. (0x5)
    Press any key to continue . . .
    
  6. StartNTService.bat => OK
  7. UninstallNTService.bat as non-admin => message in console:
    wrapper  | OpenSCManager failed - Access is denied. (0x5)
    Press any key to continue . . .
    
  8. UninstallNTService.bat as admin => OK
  9. UninstallNTService.bat as admin => message in console:
    wrapper  | The Sonar service is not installed - The specified service does not exist as an installed service. (0x424)
    Press any key to continue . . .
    
Well done Dinesh!

People

  • Assignee:
    Dinesh Bolkensteyn
    Reporter:
    Dinesh Bolkensteyn
Vote (0)
Watch (0)

Dates

  • Created:
    21/Oct/11 7:29 AM
    Updated:
    25/Oct/11 1:09 PM
    Resolved:
    21/Oct/11 9:26 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.