Git Product home page Git Product logo

testcases's People

Contributors

coheigea avatar dependabot[bot] avatar fredrikbakken avatar rsvoboda avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

testcases's Issues

Apache Ranger: No transaction in progress error

Hi,

Thank you for your repo, I have tried to build and use the docker compose script and I am getting the below error (just keeps on repeating these lines over and over):

postgres-server_1  | 2019-08-28 14:40:20.852 UTC [203] WARNING:  there is no transaction in progress
postgres-server_1  | 2019-08-28 14:40:20.907 UTC [203] WARNING:  there is no transaction in progress
postgres-server_1  | 2019-08-28 14:40:20.912 UTC [203] WARNING:  there is no transaction in progress
postgres-server_1  | 2019-08-28 14:40:20.918 UTC [203] WARNING:  there is no transaction in progress
postgres-server_1  | 2019-08-28 14:40:20.923 UTC [203] WARNING:  there is no transaction in progress
ranger-admin_1     | 2019-08-28 14:40:20,935  [I] xa_core_db_postgres.sql file imported successfully
ranger-admin_1     | 2019-08-28 14:40:20,935  [JISQL] /usr/lib/jvm/java-8-openjdk-amd64/bin/java  -cp /opt/postgresql-42.2.2.jar:/opt/ranger-2.0.0-admin/jisql/lib/* org.apache.util.sql.Jisql -driver postgresql -cstring jdbc:postgresql://postgres-server/ranger -u ranger -p '********' -noheader -trim -c \;  -query "update x_db_version_h set inst_by='Ranger 2.0.0' where active='Y' and updated_by='localhost';"
ranger-admin_1     | 2019-08-28 14:40:21,489  [I] Patches status entries updated from base ranger version to current installed ranger version:Ranger 2.0.0
ranger-admin_1     | 2019-08-28 14:40:21,489  [JISQL] /usr/lib/jvm/java-8-openjdk-amd64/bin/java  -cp /opt/postgresql-42.2.2.jar:/opt/ranger-2.0.0-admin/jisql/lib/* org.apache.util.sql.Jisql -driver postgresql -cstring jdbc:postgresql://postgres-server/ranger -u ranger -p '********' -noheader -trim -c \;  -query "select * from (select table_name from information_schema.tables where table_catalog='ranger' and table_name = 'x_portal_user') as temp;"
ranger-admin_1     | 2019-08-28 14:40:22,069  [I] Table x_portal_user already exists in database 'ranger'
ranger-admin_1     | 2019-08-28 14:40:22,069  [JISQL] /usr/lib/jvm/java-8-openjdk-amd64/bin/java  -cp /opt/postgresql-42.2.2.jar:/opt/ranger-2.0.0-admin/jisql/lib/* org.apache.util.sql.Jisql -driver postgresql -cstring jdbc:postgresql://postgres-server/ranger -u ranger -p '********' -noheader -trim -c \;  -query "select * from (select table_name from information_schema.tables where table_catalog='ranger' and table_name = 'x_policy_ref_group') as temp;"
ranger-admin_1     | 2019-08-28 14:40:22,639  [I] Table x_policy_ref_group does not exist in database ranger
ranger-admin_1     | 2019-08-28 14:40:22,639  [JISQL] /usr/lib/jvm/java-8-openjdk-amd64/bin/java  -cp /opt/postgresql-42.2.2.jar:/opt/ranger-2.0.0-admin/jisql/lib/* org.apache.util.sql.Jisql -driver postgresql -cstring jdbc:postgresql://postgres-server/ranger -u ranger -p '********' -noheader -trim -c \;  -query "select version from x_db_version_h where version = 'DB_PATCHES' and active = 'Y';"
ranger-admin_1     | 2019-08-28 14:40:23,240  [JISQL] /usr/lib/jvm/java-8-openjdk-amd64/bin/java  -cp /opt/postgresql-42.2.2.jar:/opt/ranger-2.0.0-admin/jisql/lib/* org.apache.util.sql.Jisql -driver postgresql -cstring jdbc:postgresql://postgres-server/ranger -u ranger -p '********' -noheader -trim -c \;  -query "select version from x_db_version_h where version = 'JAVA_PATCHES' and active = 'Y';"
ranger-admin_1     | 2019-08-28 14:40:23,851  [I] Importing DB schema to database ranger from file: xa_core_db_postgres.sql
ranger-admin_1     | 2019-08-28 14:40:23,852  [JISQL] /usr/lib/jvm/java-8-openjdk-amd64/bin/java  -cp /opt/postgresql-42.2.2.jar:/opt/ranger-2.0.0-admin/jisql/lib/* org.apache.util.sql.Jisql -driver postgresql -cstring jdbc:postgresql://postgres-server/ranger -u ranger -p '********' -noheader -trim -c \; -input /opt/ranger-2.0.0-admin/db/postgres/xa_core_db_postgres.sql 

Any help would be really helpful :) thanks heaps in advance!

Apache Ranger - Broken docker image

Got this error when trying to build an image from https://github.com/coheigea/testcases/tree/master/apache/docker/ranger/ranger-admin.

My Changes:

  • Dockerfile:
    • Isolated the apt-get -q update && apt-get install -y -q python gcc to a separate RUN command
    • Added -X flag to mvn package assembly:assembly -DskipTests (for debugging)
  • No changes to pom.xml

Output of docker build . -t coheigea/ranger-admin (with deugging on):

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 11:59 min
[INFO] Finished at: 2019-05-24T13:45:15Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project ranger-tagsync: Could not resolve dependencies for project org.apache.ranger:ranger-tagsync:jar:1.1.0: The following artifacts could not be resolved: org.apache.atlas:atlas-notification:jar:2.0.0-SNAPSHOT, org.apache.atlas:atlas-intg:jar:2.0.0-SNAPSHOT, org.apache.atlas:atlas-client-v1:jar:2.0.0-SNAPSHOT, org.apache.atlas:atlas-client-v2:jar:2.0.0-SNAPSHOT, org.apache.atlas:atlas-common:jar:2.0.0-SNAPSHOT: Could not find artifact org.apache.atlas:atlas-notification:jar:2.0.0-SNAPSHOT in apache.snapshots.https (https://repository.apache.org/content/repositories/snapshots) -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project ranger-tagsync: Could not resolve dependencies for project org.apache.ranger:ranger-tagsync:jar:1.1.0: The following artifacts could not be resolved: org.apache.atlas:atlas-notification:jar:2.0.0-SNAPSHOT, org.apache.atlas:atlas-intg:jar:2.0.0-SNAPSHOT, org.apache.atlas:atlas-client-v1:jar:2.0.0-SNAPSHOT, org.apache.atlas:atlas-client-v2:jar:2.0.0-SNAPSHOT, org.apache.atlas:atlas-common:jar:2.0.0-SNAPSHOT: Could not find artifact org.apache.atlas:atlas-notification:jar:2.0.0-SNAPSHOT in apache.snapshots.https (https://repository.apache.org/content/repositories/snapshots)
    at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies (LifecycleDependencyResolver.java:269)
    at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolveProjectDependencies (LifecycleDependencyResolver.java:147)
    at org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAreResolved (MojoExecutor.java:246)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:200)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:154)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:146)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:290)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:194)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:498)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356)
Caused by: org.apache.maven.project.DependencyResolutionException: Could not resolve dependencies for project org.apache.ranger:ranger-tagsync:jar:1.1.0: The following artifacts could not be resolved: org.apache.atlas:atlas-notification:jar:2.0.0-SNAPSHOT, org.apache.atlas:atlas-intg:jar:2.0.0-SNAPSHOT, org.apache.atlas:atlas-client-v1:jar:2.0.0-SNAPSHOT, org.apache.atlas:atlas-client-v2:jar:2.0.0-SNAPSHOT, org.apache.atlas:atlas-common:jar:2.0.0-SNAPSHOT: Could not find artifact org.apache.atlas:atlas-notification:jar:2.0.0-SNAPSHOT in apache.snapshots.https (https://repository.apache.org/content/repositories/snapshots)
    at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve (DefaultProjectDependenciesResolver.java:208)
    at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies (LifecycleDependencyResolver.java:243)
    at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolveProjectDependencies (LifecycleDependencyResolver.java:147)
    at org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAreResolved (MojoExecutor.java:246)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:200)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:154)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:146)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:290)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:194)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:498)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356)
Caused by: org.eclipse.aether.resolution.DependencyResolutionException: The following artifacts could not be resolved: org.apache.atlas:atlas-notification:jar:2.0.0-SNAPSHOT, org.apache.atlas:atlas-intg:jar:2.0.0-SNAPSHOT, org.apache.atlas:atlas-client-v1:jar:2.0.0-SNAPSHOT, org.apache.atlas:atlas-client-v2:jar:2.0.0-SNAPSHOT, org.apache.atlas:atlas-common:jar:2.0.0-SNAPSHOT: Could not find artifact org.apache.atlas:atlas-notification:jar:2.0.0-SNAPSHOT in apache.snapshots.https (https://repository.apache.org/content/repositories/snapshots)
    at org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveDependencies (DefaultRepositorySystem.java:355)
    at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve (DefaultProjectDependenciesResolver.java:202)
    at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies (LifecycleDependencyResolver.java:243)
    at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolveProjectDependencies (LifecycleDependencyResolver.java:147)
    at org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAreResolved (MojoExecutor.java:246)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:200)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:154)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:146)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:290)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:194)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:498)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356)
Caused by: org.eclipse.aether.resolution.ArtifactResolutionException: The following artifacts could not be resolved: org.apache.atlas:atlas-notification:jar:2.0.0-SNAPSHOT, org.apache.atlas:atlas-intg:jar:2.0.0-SNAPSHOT, org.apache.atlas:atlas-client-v1:jar:2.0.0-SNAPSHOT, org.apache.atlas:atlas-client-v2:jar:2.0.0-SNAPSHOT, org.apache.atlas:atlas-common:jar:2.0.0-SNAPSHOT: Could not find artifact org.apache.atlas:atlas-notification:jar:2.0.0-SNAPSHOT in apache.snapshots.https (https://repository.apache.org/content/repositories/snapshots)
    at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve (DefaultArtifactResolver.java:422)
    at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts (DefaultArtifactResolver.java:224)
    at org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveDependencies (DefaultRepositorySystem.java:338)
    at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve (DefaultProjectDependenciesResolver.java:202)
    at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies (LifecycleDependencyResolver.java:243)
    at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolveProjectDependencies (LifecycleDependencyResolver.java:147)
    at org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAreResolved (MojoExecutor.java:246)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:200)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:154)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:146)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:290)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:194)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:498)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356)
Caused by: org.eclipse.aether.transfer.ArtifactNotFoundException: Could not find artifact org.apache.atlas:atlas-notification:jar:2.0.0-SNAPSHOT in apache.snapshots.https (https://repository.apache.org/content/repositories/snapshots)
    at org.eclipse.aether.connector.basic.ArtifactTransportListener.transferFailed (ArtifactTransportListener.java:48)
    at org.eclipse.aether.connector.basic.BasicRepositoryConnector$TaskRunner.run (BasicRepositoryConnector.java:365)
    at org.eclipse.aether.util.concurrency.RunnableErrorForwarder$1.run (RunnableErrorForwarder.java:75)
    at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:624)
    at java.lang.Thread.run (Thread.java:748)
[ERROR] 
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :ranger-tagsync
The command '/bin/sh -c tar zxvf apache-ranger-${RANGER_VERSION}.tar.gz  && cd apache-ranger-${RANGER_VERSION}  && mv /opt/pom.xml knox-agent  && mvn package assembly:assembly -DskipTests -X logfile  && cp target/ranger-${RANGER_VERSION}-admin.tar.gz /opt  && cd /opt  && tar zxvf ranger-${RANGER_VERSION}-admin.tar.gz  && chmod +x /opt/ranger-entrypoint.sh' returned a non-zero code: 1

cxf-jmh benchmark is failing to compile because of removal of deprecated methods in wss4j

https://github.com/coheigea/testcases/tree/master/apache/cxf/cxf-benchmarks/cxf-jmh benchmark is failing to compile because of removal of deprecated methods in org/apache/wss4j/dom/handler/RequestData class.
Removal happened on Jul 18, commit is https://github.com/apache/wss4j/commit/45b3de892cb3671a7fb9493a566550c9cdc4c698

All 5 *Benchmark.java files in https://github.com/coheigea/testcases/tree/master/apache/cxf/cxf-benchmarks/cxf-jmh/src/main/java/org/apache/coheigea/cxf/jmh/benchmark/wssec are affected

Algorithm constraints check failed: MD5withRSA for 2 cxf/wss4j microbenchmarks

When running https://github.com/coheigea/testcases/tree/master/apache/cxf/cxf-benchmarks/cxf-jmh with Java 8 I see 2 failures because of Caused by: java.security.cert.CertPathValidatorException: Algorithm constraints check failed: MD5withRSA

Benchmarks:

  • org.apache.coheigea.cxf.jmh.benchmark.wssec.SignatureReferenceBenchmark.signatureX509KeyIdentifier
  • org.apache.coheigea.cxf.jmh.benchmark.wssec.SignatureReferenceBenchmark.signatureBST

It could be related to changes in Java (7u40) - restrictions on x.509 certificates with RSA keys and minimal length.
I tried to use Java 7 update 25 and all tests went well without any exception.

Full stacktrace

org.apache.wss4j.common.ext.WSSecurityException: Error during certificate path validation: Algorithm constraints check failed: MD5withRSA
Original Exception was java.security.cert.CertPathValidatorException: Algorithm constraints check failed: MD5withRSA
    at org.apache.wss4j.common.crypto.Merlin.verifyTrust(Merlin.java:933)
    at org.apache.wss4j.dom.validate.SignatureTrustValidator.verifyTrustInCerts(SignatureTrustValidator.java:108)
    at org.apache.wss4j.dom.validate.SignatureTrustValidator.validate(SignatureTrustValidator.java:64)
    at org.apache.wss4j.dom.processor.SignatureProcessor.handleToken(SignatureProcessor.java:184)
    at org.apache.wss4j.dom.engine.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:344)
    at org.apache.coheigea.cxf.jmh.benchmark.wssec.SignatureReferenceBenchmark.doSignature(SignatureReferenceBenchmark.java:117)
    at org.apache.coheigea.cxf.jmh.benchmark.wssec.SignatureReferenceBenchmark.signatureBST(SignatureReferenceBenchmark.java:80)
    at org.apache.coheigea.cxf.jmh.benchmark.wssec.generated.SignatureReferenceBenchmark_signatureBST_jmhTest.signatureBST_avgt_jmhStub(SignatureReferenceBenchmark_signatureBST_jmhTest.java:182)
    at org.apache.coheigea.cxf.jmh.benchmark.wssec.generated.SignatureReferenceBenchmark_signatureBST_jmhTest.signatureBST_AverageTime(SignatureReferenceBenchmark_signatureBST_jmhTest.java:146)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at org.openjdk.jmh.runner.BenchmarkHandler$BenchmarkTask.call(BenchmarkHandler.java:464)
    at org.openjdk.jmh.runner.BenchmarkHandler$BenchmarkTask.call(BenchmarkHandler.java:448)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)
Caused by: java.security.cert.CertPathValidatorException: Algorithm constraints check failed: MD5withRSA
    at sun.security.provider.certpath.PKIXMasterCertPathValidator.validate(PKIXMasterCertPathValidator.java:135)
    at sun.security.provider.certpath.PKIXCertPathValidator.validate(PKIXCertPathValidator.java:219)
    at sun.security.provider.certpath.PKIXCertPathValidator.validate(PKIXCertPathValidator.java:140)
    at sun.security.provider.certpath.PKIXCertPathValidator.engineValidate(PKIXCertPathValidator.java:79)
    at java.security.cert.CertPathValidator.validate(CertPathValidator.java:292)
    at org.apache.wss4j.common.crypto.Merlin.verifyTrust(Merlin.java:911)
    ... 20 more

Build failure for cxf-jaxrs-xmlsecurity

Hi,

I am having problem building the project, with the following errors:
testXMLEncryptionDOM(org.apache.coheigea.cxf.jaxrs.xmlsecurity.xmlencryption.XMLEncryptionDOMTest): java.lang.RuntimeException: Illegal key size, stacktrace: org.apache.xml.security.encryption.XMLEncryptionException: Illegal key size(..)
testXMLEncryption9002:dom: java.lang.RuntimeException: Illegal key size, stacktrace: org.apache.xml.security.encryption.XMLEncryptionException: Illegal key size(..)
testXMLEncryption9003:dom: java.lang.RuntimeException: Illegal key size, stacktrace: org.apache.xml.security.encryption.XMLEncryptionException: Illegal key size(..)
testXMLEncryption9002:streaming: org.apache.cxf.interceptor.Fault: No message body writer has been found for class org.apache.coheigea.cxf.jaxrs.xmlsecurity.common.Number, ContentType: application/xml
testXMLEncryption9003:streaming: org.apache.cxf.interceptor.Fault: No message body writer has been found for class org.apache.coheigea.cxf.jaxrs.xmlsecurity.common.Number, ContentType: application/xml
testXMLEncryption(org.apache.coheigea.cxf.jaxrs.xmlsecurity.xmlencryption.XMLEncryptionStaxTest): org.apache.cxf.interceptor.Fault: No message body writer has been found for class org.apache.coheigea.cxf.jaxrs.xmlsecurity.common.Number, ContentType: application/xml

No license

Is it possible you could add a license to this? We want to use this but we aren't able to due to the lack of a license (i.e. BSD, etc.).

ZOOKEEPER: cnxn object did not initialize its saslServer properly

Hello,

I'm following this post:
http://coheigea.blogspot.com/2017/05/securing-apache-kafka-with-kerberos.html

and have a kdc running on my local machine (Mac OS high sierra)

the scenario is as follows:

  1. the KDC is up and I can authenticate with client
  2. launch zookeeper without error
  3. launch kafka and get an authentication error to zookeeper

NOTE: some logs captured at different times, but same error messages regardless

[2017-10-24 12:49:53,819] INFO Socket connection established to localhost/0:0:0:0:0:0:0:1:2181, initiating session (org.apache.zookeeper.ClientCnxn)
[2017-10-24 12:49:53,839] INFO Session establishment complete on server localhost/0:0:0:0:0:0:0:1:2181, sessionid = 0x15f4fece1660000, negotiated timeout = 6000 (org.apache.zookeeper.ClientCnxn)
[2017-10-24 12:49:53,840] INFO zookeeper state changed (SyncConnected) (org.I0Itec.zkclient.ZkClient)
[2017-10-24 12:49:53,892] ERROR SASL authentication failed using login context 'Client'. (org.apache.zookeeper.client.ZooKeeperSaslClient)
[2017-10-24 12:49:53,892] INFO zookeeper state changed (AuthFailed) (org.I0Itec.zkclient.ZkClient)
[2017-10-24 12:49:53,893] INFO Terminate ZkClient event thread. (org.I0Itec.zkclient.ZkEventThread)
[2017-10-24 12:49:53,894] FATAL Fatal error during KafkaServer startup. Prepare to shutdown (kafka.server.KafkaServer)
org.I0Itec.zkclient.exception.ZkAuthFailedException: Authentication failure
	at org.I0Itec.zkclient.ZkClient.waitForKeeperState(ZkClient.java:947)
	at org.I0Itec.zkclient.ZkClient.waitUntilConnected(ZkClient.java:924)
	at org.I0Itec.zkclient.ZkClient.connect(ZkClient.java:1231)
	at org.I0Itec.zkclient.ZkClient.<init>(ZkClient.java:157)
	at org.I0Itec.zkclient.ZkClient.<init>(ZkClient.java:131)
	at kafka.utils.ZkUtils$.createZkClientAndConnection(ZkUtils.scala:103)
	at kafka.utils.ZkUtils$.apply(ZkUtils.scala:85)
	at kafka.server.KafkaServer.initZk(KafkaServer.scala:338)
	at kafka.server.KafkaServer.startup(KafkaServer.scala:191)
	at kafka.server.KafkaServerStartable.startup(KafkaServerStartable.scala:38)
	at kafka.Kafka$.main(Kafka.scala:65)
	at kafka.Kafka.main(Kafka.scala)
[2017-10-24 12:49:53,896] INFO shutting down (kafka.server.KafkaServer)
[2017-10-24 12:49:53,900] INFO shut down completed (kafka.server.KafkaServer)
[2017-10-24 12:49:53,900] FATAL Exiting Kafka. (kafka.server.KafkaServerStartable)
[2017-10-24 12:49:53,902] INFO shutting down (kafka.server.KafkaServer)

zookeeper:

[2017-10-24 12:51:20,294] INFO Established session 0x15f4fece1660001 with negotiated timeout 30000 for client /0:0:0:0:0:0:0:1:55895 (org.apache.zookeeper.server.ZooKeeperServer)
[2017-10-24 12:51:20,361] ERROR cnxn.saslServer is null: cnxn object did not initialize its saslServer properly. (org.apache.zookeeper.server.ZooKeeperServer)
[2017-10-24 12:51:20,719] WARN caught end of stream exception (org.apache.zookeeper.server.NIOServerCnxn)
EndOfStreamException: Unable to read additional data from client sessionid 0x15f4fece1660001, likely client has closed socket
	at org.apache.zookeeper.server.NIOServerCnxn.doIO(NIOServerCnxn.java:239)
	at org.apache.zookeeper.server.NIOServerCnxnFactory.run(NIOServerCnxnFactory.java:203)
	at java.lang.Thread.run(Thread.java:748)
[2017-10-24 12:51:20,720] INFO Closed socket connection for client /0:0:0:0:0:0:0:1:55895 which had sessionid 0x15f4fece1660001 (org.apache.zookeeper.server.NIOServerCnxn)
[2017-10-24 12:51:51,003] INFO Expiring session 0x15f4fece1660001, timeout of 30000ms exceeded (org.apache.zookeeper.server.ZooKeeperServer)
[2017-10-24 12:51:51,003] INFO Processed session termination for sessionid: 0x15f4fece1660001 (org.apache.zookeeper.server.PrepRequestProcessor)

Unable to verify big xml file with StAX (OutOfMemory exception)

Hi!

With StAX version of signature verification I get OutOfMemory exception. I'm using xmlsec-2.0.8.jar. Exception is thrown at line "inboundXMLSec.processInMessage(xmlStreamReader);" (file: SignatureUtils, method verifyUsingStAX).

XML file size is ~900 MB.

Apache CXF - Kerberos Authentication Invocation error

We have a Restful webservice[developed using Apache CXF] which is protected by kerberos, below are the cxf configurations,
jaxrs:serviceBeans

/jaxrs:serviceBeans

                        <jaxrs:providers>
                                        <ref bean="kerberosFilter"/>
                                        <ref bean="jsonProvider" />
                                        <ref bean="xmlProvider" />
                        </jaxrs:providers>

                        <jaxrs:extensionMappings>
                                        <entry key="json" value="application/json" />
                                        <entry key="xml" value="application/xml" />
                        </jaxrs:extensionMappings>

                        <jaxrs:inInterceptors>
                                        <ref bean="restInInterceptor" />
                        </jaxrs:inInterceptors>
                        <jaxrs:outFaultInterceptors>
                                        <ref bean="errorOutFaultInterceptor" />
                        </jaxrs:outFaultInterceptors>
        </jaxrs:server>

        <bean id="kerberosFilter" class="org.apache.cxf.jaxrs.security.KerberosAuthenticationFilter">

Also "spnego-server" from login config which is spnego-client {
com.sun.security.auth.module.Krb5LoginModule required; };

spnego-server {
com.sun.security.auth.module.Krb5LoginModule required
storeKey=true
useKeyTab=true
keyTab="FILE:/etc/hellokeytab.keytab"
principal=HTTP/hostname.india.com
isInitiator=false;
};
We have a webapplication which is trying to invoke this kerberos protected webservices, through org.apache.commons.httpclient.HttpClient , but we are getting "401 UnAuthorized Exception" error every time.

HttpClient httpclient = new HttpClient();
GetMethod get = new GetMethod(resourceURL);
get.setRequestHeader(entry.getKey(), value);

Since the service is protected by kerberos, i found that we need to set the below as headers in client - Authorization: Negotiate "the encrypted service ticket"

But how can we get the "the encrypted service ticket" and set it explicity into HTTPclient headers?
We are using thirdparty REST clients(Example: Mozilla REST client & Chrome's REST CLIENT) there also , how to set the Authorization Negotiate ?

Using santuario in android

I'm having major trouble making santuario work with android, the problem is (probably) that the stax api is a core part of the Java JDK (JVM) but not the Dalvik Virtual Machine (which is the VM that runs android code).

Is there anyway I can use apache santuario with android?
OR
Is there a way for me to get the santuario lib without stax?

Thanks in advance

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.