Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 599039 - Apache: check syntax Op fails
Apache: check syntax Op fails
Product: RHQ Project
Classification: Other
Component: Plugins (Show other bugs)
All Linux
high Severity high (vote)
: ---
: ---
Assigned To: Filip Drabek
Corey Welton
Depends On:
Blocks: jon24-apache
  Show dependency treegraph
Reported: 2010-06-02 11:03 EDT by Corey Welton
Modified: 2010-08-12 12:51 EDT (History)
0 users

See Also:
Fixed In Version: 2.4
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Fedora 12 x86_64
Last Closed: 2010-08-12 12:51:02 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Corey Welton 2010-06-02 11:03:39 EDT
Description of problem:

Version-Release number of selected component (if applicable):

How reproducible:
Every time.

Steps to Reproduce:
1.  Assure you don't have Augeas turned on in configuration.
2.  Attempt a "check syntax" op on your apache server.
3.  View results
Actual results:
Operation Fails:

Close Window
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
	at java.util.ArrayList.rangeCheck(ArrayList.java:571)
	at java.util.ArrayList.get(ArrayList.java:349)
	at org.rhq.plugins.apache.ApacheServerComponent.getControlScriptPath(ApacheServerComponent.java:605)
	at org.rhq.plugins.apache.ApacheServerOperationsDelegate.invokeOperation(ApacheServerOperationsDelegate.java:71)
	at org.rhq.plugins.apache.ApacheServerComponent.invokeOperation(ApacheServerComponent.java:297)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:616)
	at org.rhq.core.pc.inventory.ResourceContainer$ComponentInvocationThread.call(ResourceContainer.java:525)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
	at java.util.concurrent.FutureTask.run(FutureTask.java:166)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
	at java.lang.Thread.run(Thread.java:636)

Expected results:

Operation successful.

Additional info:
Comment 1 Corey Welton 2010-06-02 11:26:57 EDT
Fedora 12 x86_64

Updating bug -- actually it does not appear to matter whether or not you have augeas enabled or disabled in connection props.  Error happens regardless.
Comment 2 Filip Drabek 2010-06-02 15:58:18 EDT
commit 3d3de0ee4bf6d78e14bb8ad9b1228e6f364744f2
Comment 3 Corey Welton 2010-06-03 09:37:44 EDT
QA Verified.
Comment 4 Corey Welton 2010-08-12 12:51:02 EDT
Mass-closure of verified bugs against JON.

Note You need to log in before you can comment on or make changes to this bug.