Skip to content

Commit

Permalink
Adapt webSpoon to 7.1 (repositories-plugin)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hiromu Hota committed May 23, 2017
1 parent 6b9694c commit 5b14e57
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
4 changes: 4 additions & 0 deletions assembly/WEB-INF/web.xml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@
<servlet-name>reverseProxy</servlet-name>
<servlet-class>org.pentaho.di.ui.spoon.WebSpoonProxyServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>reverseProxy</servlet-name>
<url-pattern>/cxf/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>reverseProxy</servlet-name>
<url-pattern>/repositories/*</url-pattern>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -416,10 +416,6 @@ public void save() {
}
}

private Spoon getSpoon() {
return Spoon.getInstance();
}

@SuppressWarnings( "unchecked" )
private Repository wrapWithRepositoryTimeoutHandler( ReconnectableRepository repository ) {
List<Class<?>> repositoryIntrerfaces = ClassUtils.getAllInterfaces( repository.getClass() );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ define( [

repoConnectionApp.service("repositoriesService", function($http) {

this.baseUrl = "/cxf/repositories";
// this.baseUrl = "/cxf/repositories";
// Add context path
this.baseUrl = window.location.pathname.substring( 0, window.location.pathname.indexOf( "/", 2 ) ) + "/cxf/repositories";

this.login = function(username, password)
{
Expand Down

0 comments on commit 5b14e57

Please sign in to comment.