Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1056462

Summary: apache-commons-logging: SecurityAllowedTestCase test fails on mock rebuild
Product: Red Hat Enterprise Linux 7 Reporter: Tuomo Soini <tis>
Component: apache-commons-loggingAssignee: Mikolaj Izdebski <mizdebsk>
Status: CLOSED CURRENTRELEASE QA Contact: Jan Kepler <jkejda>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.0CC: jkejda, mizdebsk, riehecky, sochotni, tis
Target Milestone: rcKeywords: Patch
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 1.1.2-7 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-06-13 12:47:58 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
log from failed build
none
Build log from x86_64 mock root
none
Proposed patch none

Description Tuomo Soini 2014-01-22 09:25:21 UTC
Description of problem:

mock rebuild of apache-commons-logging-1.1.2-5.el7 always fails on %check
when running SecurityAllowedTestCase.java testcase.

Fedora has work around for the problem, remove the testcase.

Comment 1 Mikolaj Izdebski 2014-01-22 09:37:45 UTC
Tuomo, I can't reproduce the problem you described. The test case succeeds for me (see below).  Can you try verifying this issue on a different system or provide a reproducer?


Running org.apache.commons.logging.security.SecurityAllowedTestCase
testing permission:class java.util.PropertyPermission:("java.util.PropertyPermission" "org.apache.commons.logging.diagnostics.dest" "read")
1:java.lang.SecurityManager.checkPropertyAccess:1302
2:java.lang.System.getProperty:744
3:org.apache.commons.logging.LogFactory$6.run:1488
Permission in allowed set for JCL class
4:java.security.AccessController.doPrivileged:-2
Access controller found: returning
testing permission:class java.util.PropertyPermission:("java.util.PropertyPermission" "org.apache.commons.logging.LogFactory.HashtableImpl" "read")
1:java.lang.SecurityManager.checkPropertyAccess:1302
2:java.lang.System.getProperty:744
3:org.apache.commons.logging.LogFactory$6.run:1488
Permission in allowed set for JCL class
4:java.security.AccessController.doPrivileged:-2
Access controller found: returning
testing permission:class java.lang.reflect.ReflectPermission:("java.lang.reflect.ReflectPermission" "suppressAccessChecks")
1:java.lang.reflect.AccessibleObject.setAccessible:128
2:java.lang.Class$1.run:353
3:java.lang.Class$1.run:351
4:java.security.AccessController.doPrivileged:-2
Access controller found: returning
testing permission:class java.util.PropertyPermission:("java.util.PropertyPermission" "org.apache.commons.logging.LogFactory" "read")
1:java.lang.SecurityManager.checkPropertyAccess:1302
2:java.lang.System.getProperty:744
3:org.apache.commons.logging.LogFactory$6.run:1488
Permission in allowed set for JCL class
4:java.security.AccessController.doPrivileged:-2
Access controller found: returning
testing permission:class java.lang.reflect.ReflectPermission:("java.lang.reflect.ReflectPermission" "suppressAccessChecks")
1:java.lang.reflect.AccessibleObject.setAccessible:128
2:java.lang.Class$1.run:353
3:java.lang.Class$1.run:351
4:java.security.AccessController.doPrivileged:-2
Access controller found: returning
testing permission:class java.util.PropertyPermission:("java.util.PropertyPermission" "org.apache.commons.logging.Log.allowFlawedContext" "read")
1:java.lang.SecurityManager.checkPropertyAccess:1302
2:java.lang.System.getProperty:744
3:org.apache.commons.logging.impl.LogFactoryImpl$2.run:619
Permission in allowed set for JCL class
4:java.security.AccessController.doPrivileged:-2
Access controller found: returning
testing permission:class java.util.PropertyPermission:("java.util.PropertyPermission" "org.apache.commons.logging.Log.allowFlawedDiscovery" "read")
1:java.lang.SecurityManager.checkPropertyAccess:1302
2:java.lang.System.getProperty:744
3:org.apache.commons.logging.impl.LogFactoryImpl$2.run:619
Permission in allowed set for JCL class
4:java.security.AccessController.doPrivileged:-2
Access controller found: returning
testing permission:class java.util.PropertyPermission:("java.util.PropertyPermission" "org.apache.commons.logging.Log.allowFlawedHierarchy" "read")
1:java.lang.SecurityManager.checkPropertyAccess:1302
2:java.lang.System.getProperty:744
3:org.apache.commons.logging.impl.LogFactoryImpl$2.run:619
Permission in allowed set for JCL class
4:java.security.AccessController.doPrivileged:-2
Access controller found: returning
testing permission:class java.util.PropertyPermission:("java.util.PropertyPermission" "org.apache.commons.logging.Log" "read")
1:java.lang.SecurityManager.checkPropertyAccess:1302
2:java.lang.System.getProperty:744
3:org.apache.commons.logging.impl.LogFactoryImpl$2.run:619
Permission in allowed set for JCL class
4:java.security.AccessController.doPrivileged:-2
Access controller found: returning
testing permission:class java.util.PropertyPermission:("java.util.PropertyPermission" "org.apache.commons.logging.log" "read")
1:java.lang.SecurityManager.checkPropertyAccess:1302
2:java.lang.System.getProperty:744
3:org.apache.commons.logging.impl.LogFactoryImpl$2.run:619
Permission in allowed set for JCL class
4:java.security.AccessController.doPrivileged:-2
Access controller found: returning
testing permission:class java.util.logging.LoggingPermission:("java.util.logging.LoggingPermission" "control")
1:java.util.logging.LogManager.checkPermission:1358
2:java.util.logging.Logger.setParent:1560
3:java.util.logging.LogManager$6.run:990
4:java.security.AccessController.doPrivileged:-2
Access controller found: returning
Dec 27, 2013 11:27:26 AM org.apache.commons.logging.security.SecurityAllowedTestCase testAllAllowed
INFO: testing
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.048 sec - in org.apache.commons.logging.security.SecurityAllowedTestCase

Comment 2 Tuomo Soini 2014-01-22 11:36:30 UTC
Created attachment 853822 [details]
log from failed build

Here is build log which shows the failure.

Latest rawhide package builds fine on same environment

Comment 4 Mikolaj Izdebski 2014-01-22 11:59:26 UTC
From the build logs I can that the failed build was on i386 system.  I was able to reproduce it on i386 too, but not on x86_64.

RHEL 7 beta was released only for ppc64, s390x and x86_64.  Can you reproduce this failure on one of these architectures?

Comment 5 Tuomo Soini 2014-01-22 12:15:57 UTC
Created attachment 853843 [details]
Build log from x86_64 mock root

Comment 7 Mikolaj Izdebski 2014-01-23 14:56:43 UTC
Reported upstream: https://issues.apache.org/jira/browse/LOGGING-156

Comment 8 Mikolaj Izdebski 2014-01-27 13:06:42 UTC
Fixed in apache-commons-logging-1.1.2-7

Comment 10 Mikolaj Izdebski 2014-01-27 13:08:18 UTC
Created attachment 856039 [details]
Proposed patch

Comment 12 Ludek Smid 2014-06-13 12:47:58 UTC
This request was resolved in Red Hat Enterprise Linux 7.0.

Contact your manager or support representative in case you have further questions about the request.