Code Monkey home page Code Monkey logo

pentaho-engineering-samples's Introduction

pentaho-engineering-samples

Samples provided by Pentaho Engineering which make use of public capabilities within the Pentaho Suite

pentaho-engineering-samples's People

Contributors

aleks-messier avatar artsiomyurhevich avatar dcleao avatar dkincade avatar graimundo avatar jonjarvis avatar lgrill-pentaho avatar nantunes avatar pamval avatar pedrofvteixeira avatar pentaho-jrice avatar pentahoadmin avatar rmansoor avatar rparaujo avatar smaring avatar stepanovdg avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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

pentaho-engineering-samples's Issues

SAML authenticated - no role in administration

The URL /pentaho/api/ldap/config/getAttributeValues returns a 404 if I am authenticated as Administrator using information from SAML with saml.role.related.user.attribute.name. So I am unable to add new roles.

Screenshot from 2020-10-04 13-19-50

Pentaho 9.0.0 - saml kar loaded in karaf

We tried to follow the doc (which is for Pentaho 6.0) in Pentaho 9.0. The Pentaho 9.0 archive installation is working okay. However when we put the kar in pentaho-solutions/system/karaf/deploy, we get this error :

13:00:19,268 ERROR [BlueprintContainerImpl] Unable to start container for blueprint bundle pentaho-saml/9.1.0.0-SNAPSHOT
org.osgi.service.blueprint.container.ComponentDefinitionException: Unable to instantiate components
	at org.apache.aries.blueprint.container.BlueprintContainerImpl.instantiateEagerComponents(BlueprintContainerImpl.java:741)
	at org.apache.aries.blueprint.container.BlueprintContainerImpl.doRun(BlueprintContainerImpl.java:433)
	at org.apache.aries.blueprint.container.BlueprintContainerImpl.run(BlueprintContainerImpl.java:298)
	at org.apache.aries.blueprint.container.BlueprintExtender.createContainer(BlueprintExtender.java:311)
	at org.apache.aries.blueprint.container.BlueprintExtender.createContainer(BlueprintExtender.java:280)
	at org.apache.aries.blueprint.container.BlueprintExtender.createContainer(BlueprintExtender.java:276)
	at org.apache.aries.blueprint.container.BlueprintExtender.modifiedBundle(BlueprintExtender.java:266)
	at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.customizerModified(BundleHookBundleTracker.java:500)
	at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.customizerModified(BundleHookBundleTracker.java:433)
	at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$AbstractTracked.track(BundleHookBundleTracker.java:725)
	at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.bundleChanged(BundleHookBundleTracker.java:463)
	at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$BundleEventHook.event(BundleHookBundleTracker.java:422)
	at org.apache.felix.framework.util.SecureAction.invokeBundleEventHook(SecureAction.java:1179)
	at org.apache.felix.framework.EventDispatcher.createWhitelistFromHooks(EventDispatcher.java:730)
	at org.apache.felix.framework.EventDispatcher.fireBundleEvent(EventDispatcher.java:485)
	at org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:4579)
	at org.apache.felix.framework.Felix.startBundle(Felix.java:2174)
	at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1373)
	at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:308)
	at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.NoClassDefFoundError: org/pentaho/platform/proxy/impl/ProxyException
	at java.lang.Class.getDeclaredConstructors0(Native Method)
	at java.lang.Class.privateGetDeclaredConstructors(Class.java:2671)
	at java.lang.Class.getConstructors(Class.java:1651)
	at org.apache.aries.blueprint.utils.generics.TypeInference.findConstructors(TypeInference.java:180)
	at org.apache.aries.blueprint.utils.generics.TypeInference.findMatchingConstructors(TypeInference.java:124)
	at org.apache.aries.blueprint.container.BeanRecipe.findMatchingConstructors(BeanRecipe.java:373)
	at org.apache.aries.blueprint.container.BeanRecipe.getInstanceFromType(BeanRecipe.java:346)
	at org.apache.aries.blueprint.container.BeanRecipe.getInstance(BeanRecipe.java:283)
	at org.apache.aries.blueprint.container.BeanRecipe.internalCreate2(BeanRecipe.java:685)
	at org.apache.aries.blueprint.container.BeanRecipe.internalCreate(BeanRecipe.java:666)
	at org.apache.aries.blueprint.di.AbstractRecipe$1.call(AbstractRecipe.java:81)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:90)
	at org.apache.aries.blueprint.container.BlueprintRepository.createInstances(BlueprintRepository.java:360)
	at org.apache.aries.blueprint.container.BlueprintRepository.createAll(BlueprintRepository.java:190)
	at org.apache.aries.blueprint.container.BlueprintContainerImpl.instantiateEagerComponents(BlueprintContainerImpl.java:737)
	... 19 more
Caused by: java.lang.ClassNotFoundException: org.pentaho.platform.proxy.impl.ProxyException not found by pentaho-saml [270]
	at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1639)
	at org.apache.felix.framework.BundleWiringImpl.access$200(BundleWiringImpl.java:80)
	at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:2053)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
	... 35 more

But the pentaho-proxy-factory jar is in the tomcat WEB-INF lib folder and seems to be loaded.

Failed to execute goal on project pentaho-saml: Could not resolve dependencies for project pentaho:pentaho-saml:bundle:8.1.0.0-SNAPSHOT

Hello,

I need to build Pentaho SAML plugin .kar file for pentaho server 8.1.
So I import the project in a new maven project in Eclipse. I build it with goal "compile", eclipse download some dependencies.... but seems 3 are missing :

SCREEN CAPTURE : https://i.goopics.net/8b7v6b.jpg

Do you know how I can resolve this problem ?

Thanks for your help πŸ‘


SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in 
[jar:file:/Users/nico/.p2/pool/plugins/org.eclipse.m2e.maven.runtime.slf4j.simple_1.18.0.20210618-2246/jars/slf4j-simple-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [file:/Users/nico/eclipse/jee-2021-09/Eclipse.app/Contents/Eclipse/configuration/org.eclipse.osgi/6/0/.cp/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.SimpleLoggerFactory]
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/Users/nico/.p2/pool/plugins/org.eclipse.m2e.maven.runtime.slf4j.simple_1.18.0.20210618-2246/jars/slf4j-simple-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [file:/Users/nico/eclipse/jee-2021-09/Eclipse.app/Contents/Eclipse/configuration/org.eclipse.osgi/6/0/.cp/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.SimpleLoggerFactory]
[INFO] Scanning for projects...
[INFO] Downloading from : http://nexus.pentaho.org/content/groups/omni/org/pentaho/pentaho-ce-jar-parent-pom/8.1.0.0-SNAPSHOT/maven-metadata.xml
[INFO] Downloaded from : http://nexus.pentaho.org/content/groups/omni/org/pentaho/pentaho-ce-jar-parent-pom/8.1.0.0-SNAPSHOT/maven-metadata.xml (839 B at 595 B/s)
[INFO] Downloading from : http://nexus.pentaho.org/content/groups/omni/org/pentaho/pentaho-ce-parent-pom/8.1.0.0-SNAPSHOT/maven-metadata.xml
[INFO] Downloaded from : http://nexus.pentaho.org/content/groups/omni/org/pentaho/pentaho-ce-parent-pom/8.1.0.0-SNAPSHOT/maven-metadata.xml (835 B at 550 B/s)
[INFO] Downloading from : http://nexus.pentaho.org/content/groups/omni/org/pentaho/pentaho-parent-pom/8.1.0.0-SNAPSHOT/maven-metadata.xml
[INFO] Downloaded from : http://nexus.pentaho.org/content/groups/omni/org/pentaho/pentaho-parent-pom/8.1.0.0-SNAPSHOT/maven-metadata.xml (614 B at 634 B/s)
[INFO] 
[INFO] ------------------------< pentaho:pentaho-saml >------------------------
[INFO] Building Pentaho SAML Authentication provider 8.1.0.0-SNAPSHOT
[INFO] -------------------------------[ bundle ]-------------------------------
[INFO] Downloading from : http://nexus.pentaho.org/content/groups/omni/org/pentaho/maven/plugins/license-helper-maven-plugin/1.26/license-helper-maven-plugin-1.26.pom
[INFO] Downloaded from : http://nexus.pentaho.org/content/groups/omni/org/pentaho/maven/plugins/license-helper-maven-plugin/1.26/license-helper-maven-plugin-1.26.pom (5.3 kB at 4.3 kB/s)
...
[INFO] Downloaded from : http://nexus.pentaho.org/content/groups/omni/pentaho/pentaho-platform-ce-parent/8.1.0.0-SNAPSHOT/maven-metadata.xml (618 B at 330 B/s)
[INFO] Downloading from : http://nexus.pentaho.org/content/groups/omni/pentaho/pentaho-platform-core/8.1.0.0-SNAPSHOT/maven-metadata.xml
[INFO] Downloaded from : http://nexus.pentaho.org/content/groups/omni/pentaho/pentaho-platform-core/8.1.0.0-SNAPSHOT/maven-metadata.xml (1.2 kB at 701 B/s)
**[INFO] Downloading from : http://nexus.pentaho.org/content/groups/omni/pentaho/pentaho-platform-core/8.1.0.0-SNAPSHOT/pentaho-platform-core-8.1.0.0-20180413.133543-270.pom
[WARNING] The POM for pentaho:pentaho-platform-core:jar:8.1.0.0-20180413.133543-270 is missing, no dependency information available**
[INFO] Downloading from : http://nexus.pentaho.org/content/groups/omni/pentaho/pentaho-platform-repository/8.1.0.0-SNAPSHOT/maven-metadata.xml
[INFO] Downloaded from : http://nexus.pentaho.org/content/groups/omni/pentaho/pentaho-platform-repository/8.1.0.0-SNAPSHOT/maven-metadata.xml (1.2 kB at 806 B/s)
**[INFO] Downloading from : http://nexus.pentaho.org/content/groups/omni/pentaho/pentaho-platform-repository/8.1.0.0-SNAPSHOT/pentaho-platform-repository-8.1.0.0-20180413.133841-269.pom
[WARNING] The POM for pentaho:pentaho-platform-repository:jar:8.1.0.0-20180413.133841-269 is missing, no dependency information available**
[INFO] Downloading from : http://nexus.pentaho.org/content/groups/omni/pentaho/pentaho-proxy-factory/8.1.0.0-SNAPSHOT/maven-metadata.xml
[INFO] Downloaded from : http://nexus.pentaho.org/content/groups/omni/pentaho/pentaho-proxy-factory/8.1.0.0-SNAPSHOT/maven-metadata.xml (1.0 kB at 645 B/s)
**[INFO] Downloading from : http://nexus.pentaho.org/content/groups/omni/pentaho/pentaho-proxy-factory/8.1.0.0-SNAPSHOT/pentaho-proxy-factory-8.1.0.0-20180413.113100-167.pom
[WARNING] The POM for pentaho:pentaho-proxy-factory:jar:8.1.0.0-20180413.113100-167 is missing, no dependency information available**
[INFO] Downloading from : http://nexus.pentaho.org/content/groups/omni/pentaho/pentaho-platform-core/8.1.0.0-SNAPSHOT/pentaho-platform-core-8.1.0.0-20180413.133543-270.jar
[INFO] Downloading from : http://nexus.pentaho.org/content/groups/omni/pentaho/pentaho-proxy-factory/8.1.0.0-SNAPSHOT/pentaho-proxy-factory-8.1.0.0-20180413.113100-167.jar
[INFO] Downloading from : http://nexus.pentaho.org/content/groups/omni/pentaho/pentaho-platform-repository/8.1.0.0-SNAPSHOT/pentaho-platform-repository-8.1.0.0-20180413.133841-269.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  23.716 s
[INFO] Finished at: 2021-11-09T12:27:43+01:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project pentaho-saml: Could not resolve dependencies for project pentaho:pentaho-saml:bundle:8.1.0.0-SNAPSHOT: The following artifacts could not be resolved: pentaho:pentaho-platform-core:jar:8.1.0.0-SNAPSHOT, pentaho:pentaho-platform-repository:jar:8.1.0.0-SNAPSHOT, pentaho:pentaho-proxy-factory:jar:8.1.0.0-SNAPSHOT: Could not find artifact pentaho:pentaho-platform-core:jar:8.1.0.0-20180413.133543-270 in pentaho.resolve.repo (http://nexus.pentaho.org/content/groups/omni) -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[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


Problem configuring ACS URL on pentaho 7 EE

HI,
I'm trying to configure SAML with pentaho 7 EE.
I made all the necessay configuration but it looks there is a problem with ACS url configuration: in fact , pentaho is not processing my ACS url but redirect me again to the IdP

Error resolving artifactpentaho:pentaho-saml:jar:7.0-SNAPSHOT

Hi, I'm getting the error below on 7.0, CE and EE:
[AetherBasedResolver] Error resolving artifactpentaho:pentaho-saml:jar:7.0-SNAPSHOT:Could not find artifact pentaho:pentaho-saml:jar:7.0-SNAPSHOT
shaded.org.eclipse.aether.resolution.ArtifactResolutionException: Could not find artifact pentaho:pentaho-saml:jar:7.0-SNAPSHOT
Caused by: shaded.org.eclipse.aether.transfer.ArtifactNotFoundException: Could not find artifact pentaho:pentaho-saml:jar:7.0-SNAPSHOT

Build failure for Pentaho 8.1

I'm getting the following error when trying to build the .kar file for Pentaho 8.1 with "mvn clean package"

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 26.872 s
[INFO] Finished at: 2020-05-28T09:23:57-03:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.karaf.tooling:karaf-maven-plugin:3.0.3:features-create-kar (default-features-create-kar) on project pentaho-saml-sample: Failed to create archive: Could not find artifact pentaho:pentaho-saml:jar:8.1.0.0-SNAPSHOT in pentaho.resolve.repo (http://nexus.pentaho.org/content/groups/omni)
[ERROR]
[ERROR] Try downloading the file manually from the project website.
[ERROR]
[ERROR] Then, install it using the command:
[ERROR] mvn install:install-file -DgroupId=pentaho -DartifactId=pentaho-saml -Dversion=8.1.0.0-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file
[ERROR]
[ERROR] Alternatively, if you host your own repository you can deploy the file there:
[ERROR] mvn deploy:deploy-file -DgroupId=pentaho -DartifactId=pentaho-saml -Dversion=8.1.0.0-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
[ERROR]
[ERROR]
[ERROR] pentaho:pentaho-saml:jar:8.1.0.0-SNAPSHOT
[ERROR]
[ERROR] from the specified remote repositories:
[ERROR] pentaho.resolve.repo (http://nexus.pentaho.org/content/groups/omni, releases=true, snapshots=true)
[ERROR] -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.karaf.tooling:karaf-maven-plugin:3.0.3:features-create-kar (default-features-create-kar) on project pentaho-saml-sample: Failed to create archive
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
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:957)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
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:282)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
Caused by: org.apache.maven.plugin.MojoExecutionException: Failed to create archive
at org.apache.karaf.tooling.features.CreateKarMojo.createArchive (CreateKarMojo.java:349)
at org.apache.karaf.tooling.features.CreateKarMojo.execute (CreateKarMojo.java:161)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
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:957)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
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:282)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
Caused by: org.apache.maven.artifact.resolver.ArtifactNotFoundException: Could not find artifact pentaho:pentaho-saml:jar:8.1.0.0-SNAPSHOT in pentaho.resolve.repo (http://nexus.pentaho.org/content/groups/omni)

Try downloading the file manually from the project website.

Only the 6.1 snapshot is available in https://nexus.pentaho.org .

Any suggestion on how I can solve this problem?

Does anyone have the compiled .kar file for Pentaho 8.1?

Thanks!

spring 2 section should be removed

Please remove this section the "Activating SAML sample" PDF and DOCX:

  1. Edit pentaho-solutions/system/karaf/etc/custom.properties: a. find β€œorg.springframework.security.context, \” and replace it with β€œorg.springframework.security.context; version="2.0.8.RELEASE", \” b. below the line above add a new one: β€œorg.springframework.security.ui; version="2.0.8.RELEASE", \”
    please ensure that both lines end with the β€œ, \” ( comma, whitespace, backward slash ), as stated above.

Known Security Vulnerabilities to be fixed

Hello,
version 9.0 (and uppers) of Pentaho and of Pentaho SAML plugin have few known CVEs (Common Vulnerabilities and Exposures) due to their dependencies.

Is possible to fix those security issues by updating the versions reported below?

Dependencies inherited from Pentaho

  • Has been already requested a fix on Pentaho Platform side.
  • Issue: 4788

Dependencies specific of Pentaho SAML Plugin

the version of dependencies reported below is overwritten by the plugin and needs to be fixed because doesn't inherit those of Pentaho Platform.


Apache Commons FileUpload

  • CVE - 1 issue: CVE-2016-1000031
  • Used Version: 1.3.2
  • Fix Version: 1.3.3
  • update requested on Pentaho: >1.4

karaf

org.apache.xmlgraphics:batik-bridge

Spring Security

  • CVE - 2 issues: CVE-2014-3527, CVE-2014-0097
  • Used Version: 3.1.4.RELEASE
  • Fix Version: 3.1.7.RELEASE
  • update requested on Pentaho: >4.2.9.RELEASE

spring-framework

  • CVE - 2 issues: CVE-2014-3625, CVE-2014-3578
  • Used Version: 3.2.11.RELEASE
  • Fix Version: 3.2.12.RELEASE (last minor: EOL 3.2.18.RELEASE)
  • update requested on Pentaho: >4.3.22.RELEASE

Deployment failure after build

17:47:24,404 INFO [FeaturesServiceImpl] Installing feature pentaho-saml-sample 8.3.0.0-SNAPSHOT
17:47:24,452 WARN [AetherBasedResolver] Error resolving artifactpentaho:pentaho-saml:jar:8.3.0.0-SNAPSHOT:Could not find artifact pentaho:pentaho-saml:jar:8.3.0.0-SNAPSHOT
shaded.org.eclipse.aether.resolution.ArtifactResolutionException: Could not find artifact pentaho:pentaho-saml:jar:8.3.0.0-SNAPSHOT
at shaded.org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:444)

    ... 29 more

17:47:24,453 WARN [KarServiceImpl] Unable to install Kar feature pentaho-saml-sample/8.3.0.0-SNAPSHOT
java.io.IOException: Error resolving artifact pentaho:pentaho-saml:jar:8.3.0.0-SNAPSHOT: Could not find artifact pentaho:pentaho-saml:jar:8.3.0.0-SNAPSHOT

nexus.pentaho.org changes no longer let you reach the pentaho maven items needed for building the SAML plugin

The settings file here
pentaho-engineering-samples/Samples_for_Extending_Pentaho/Reference Implementations/Security/SAML 2.0/
references the settings file at https://bintray.com/pentaho/public-maven/download_file?file_path=settings.xml
That file references http://nexus.pentaho.org/content/groups/omni
However that now gives a 404 error. It appears the nexus page was down for a couple days, and now with whatever changes happend, the Omni is not longer accessible by that URL

SAML 2.0 - BeanDefinitionParsingException - Problem with spring security namespace

Hi,

I've been working on set up SAML for the pentaho server CE 8. I followed the documentation:
https://help.pentaho.com/Documentation/8.0/Setup/Administration/User_Security/Implement_Advanced_Security/Set_Up_SAML_for_the_Pentaho_Server

In the last step of Activate the Pentaho Server SAML Sample the following error was thrown:
Bean 'filterChainProxy'; nested exception is org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: You cannot use a spring-security-2.0.xsd or spring-security-3.0.xsd or spring-security-3.1.xsd schema or spring-security-3.2.xsd schema or spring-security-4.0.xsd schema with Spring Security 4.1. Please update your schema declarations to the 4.1 schema. Offending resource: file [/home/pablowork/Programs/pentaho-ce8/pentaho-server/pentaho-solutions/system/applicationContext-spring-security-saml.xml] at org.springframework.beans.factory.parsing.FailFastProblemReporter.error(FailFastProblemReporter.java:70)
Please see the attachment for the full log file. pentaho.log

I tried two possible solution, but they didn't worked... ;(

  1. Change the version of the dependency.spring.framework.version and dependency.spring.security.version in the pom
  2. Change the schema version of spring.security in the applicationContext-spring-security-saml.xml.

OS: Ubuntu 14.04
Java: 1.8
Maven: 3.3.9

I appreciate your help with the issue, thanks!

Kind regards,
Pablo.

Allow SAML authentication process for deep URLs

Using the last code, seens that I got the same problem reported by bcolas on PR #63.
If im alredy logged on SSO, cant access a deep url directly at first (without pass the /home) it asks for user/password.

Integration scenario with SAML authentication

While accessing the URL https://my_pentaho_server/pentaho/ leads to ADFS login page, trying to access directly a report or a cde dashboard (for example https://my_pentaho_server/pentaho/api/repos...) or integration resources (https://my_pentaho_server/pentaho/plugin/pentaho-cdf-dd/api/renderer/cde-embed.js?protocol=HTTPS&port=443), pops up a authentification windows and not use SAML authentification process

NullPointerException while instantiating samlAuthenticationManager

Hi!

Following the documentation: https://help.pentaho.com/Documentation/6.1/0P0/150/010/Set_Up_SAML_for_BA_Server

We found out the following exception:

27-Oct-2017 11:46:39.853 INFO [Thread-18] org.pentaho.caching.impl.PentahoCacheManagerFactory$RegistrationHandler$1.onSuccess New Caching Service registered
11:46:40,512 ERROR [BlueprintContainerImpl] Unable to start blueprint container for bundle pentaho-saml
org.osgi.service.blueprint.container.ComponentDefinitionException: Error when instantiating bean samlAuthenticationManager of class org.pentaho.platform.spring.security.saml.PentahoAuthen$
        at org.apache.aries.blueprint.container.BeanRecipe.getInstance(BeanRecipe.java:333)
        at org.apache.aries.blueprint.container.BeanRecipe.internalCreate2(BeanRecipe.java:806)
        at org.apache.aries.blueprint.container.BeanRecipe.internalCreate(BeanRecipe.java:787)
        at org.apache.aries.blueprint.di.AbstractRecipe$1.call(AbstractRecipe.java:79)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
...
Caused by: java.lang.ClassCastException: org.springframework.security.providers.ProviderManager cannot be cast to org.springframework.security.authentication.AuthenticationManager
        at org.pentaho.platform.spring.security.saml.PentahoAuthenticationManagerDelegate.<init>(PentahoAuthenticationManagerDelegate.java:28)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
        at org.apache.aries.blueprint.utils.ReflectionUtils.newInstance(ReflectionUtils.java:329)
        at org.apache.aries.blueprint.container.BeanRecipe.newInstance(BeanRecipe.java:962)
        at org.apache.aries.blueprint.container.BeanRecipe.getInstance(BeanRecipe.java:331)
        ... 42 more

Further reading on the code showed us that

        IProxyFactory factory = PentahoSystem.get( IProxyFactory.class );

Is returning null.

Why would it be?

Is there any extraparameter we are missing?

Thank you very much and kind regards,
Jose

Integration with Identity Server (SAML): User/Role List could not be obtained

Hi,
I want to integrate WSO2 Pentaho server 8.3 on RHEL 7.7 with an identity Server.
I tried following instructions for integration with SSOCircle and then with WSO2.
But when starting the server, in both cases, I obtain the following error:

java.util.concurrent.ExecutionException: javax.jcr.LoginException: LoginModule could not perform authentication: Target of Bean was never resolved:

[org.pentaho.platform.plugin.services.security.userrole.CompositeUserRoleListService] User/Role List could not be obtained.

Complete stack on the attached file.
pentaho.log

Import/Export problem after integrating with SAML (Auth0)

Hi,

I used to be able to import/export reports/definitions via command lines look like this (with Pentaho 6.x without SAML).

C:\Pentaho\server\pentaho-server>import-export.bat --import --url=http://localhost:8080/pentaho --username=admin --password=xxxxxxxx --file-path="c:\pentaho\tools\PentahoReports.zip" --path=/public/ --overwrite=true --retainOwnership=true --permission=true --logfile="c:\pentaho\tools\ImportReports.log"

This command now returns authentication error when running on Pentaho 8.x with SAML integration.

DEBUG: Using PENTAHO_JAVA_HOME
DEBUG: _PENTAHO_JAVA_HOME=C:\Program Files\Java\jre1.8.0_161
DEBUG: _PENTAHO_JAVA=C:\Program Files\Java\jre1.8.0_161\bin\java.exe
DEBUG: PENTAHO_INSTALLED_LICENSE_PATH=C:\Pentaho.installedLicenses.xml
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
done response = <!doctype html><title>HTTP Status 401 ? Unauthorized</title><style type="text/css">h1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} h2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} h3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} body {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} b {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} p {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;} a {color:black;} a.name {color:black;} .line {height:1px;background-color:#525D76;border:none;}</style>

HTTP Status 401 ? Unauthorized


Type Status Report

Message No AuthenticationProvider found for org.springframework.security.authentication.UsernamePasswordAuthenticationToken

Description The request has not been applied because it lacks valid authentication credentials for the target resource.


Apache Tomcat/8.5.27

Can you guys advise what I can do to fix this?

Some more details in case they're questioned

  1. I have defined saml as

<import resource="applicationContext-spring-security-saml.xml" />

in pentaho-spring-beans.xml.

  1. The integration between SAML and Auth0 works well in login/logout, import reports/schema via PUC and such.

Regards,
Nora.

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.