Hi,
I've looked into what you report; and it does indeed appear we have a small
issue ;)
For now you can amend the /WEB-INF/classes/url_filter.yaml file in the WAR
to remove the Maven Repository from authentication (see the exclusion
below):-
filter:
- pattern: /rest/**
exclude:
- /*.ico
- /org.drools.workbench.DroolsWorkbench/images/**
- /org.drools.workbench.DroolsWorkbench/css/**
- /css/**
- /images/**
* - /maven2/***
With kind regards,
Mike
On 3 December 2013 08:22, marjan.sterjev <sterjevm(a)mt.net.mk> wrote:
I have installed drools-wb-6.0.0.Final-tomcat7.0 on Tomcat 7.0 with
all
default settings. The OS platform is windows 7.
I’m trying to access the internal KIE M2-Repository in order to dynamically
load (re-load with KieScanner) Kie Modules. The repository is defined in
the
POM the following way:
<repository>
<id>kie-wb</id>
<url>
http://kie-server:8080/drools-wb-6.0.0.Final-tomcat7.0/maven2/</url>
</repository>
The maven build fails with Unauthorized error:
Could not transfer artifact com.masterit.labs:my-model:pom:0.0.1-SNAPSHOT
from/to kie-wb
(
http://kie-server:8080/drools-wb-6.0.0.Final-tomcat7.0/maven2): Not
authorized , ReasonPhrase:Unauthorized. -> [Help 1]
If I access the maven2 repository directly in the browser the error is:
java.io.FileNotFoundException: repositories\kie (Access is denied)
java.io.RandomAccessFile.open(Native Method)
java.io.RandomAccessFile.<init>(RandomAccessFile.java:216)
org.guvnor.m2repo.backend.server.FileDownloadServlet.serveResource(FileDownloadServlet.java:166)
org.guvnor.m2repo.backend.server.FileDownloadServlet.doGet(FileDownloadServlet.java:65)
javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
org.uberfire.security.server.UberFireSecurityFilter.doFilter(UberFireSecurityFilter.java:266)
However, manually I can always type the path to some M2 resource in the
browser and get the result. For example the URL below returns the required
artifact:
http://kie-server:8080/drools-wb-6.0.0.Final-tomcat7.0/maven2/com/interwo...
--
View this message in context:
http://drools.46999.n3.nabble.com/KIE-Internal-M2-Repository-Access-Denie...
Sent from the Drools: User forum mailing list archive at
Nabble.com.
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users