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