{"action":"created","issue":{"url":"https://api.github.com/repos/HiromuHota/pentaho-kettle/issues/36","repository_url":"https://api.github.com/repos/HiromuHota/pentaho-kettle","labels_url":"https://api.github.com/repos/HiromuHota/pentaho-kettle/issues/36/labels{/name}","comments_url":"https://api.github.com/repos/HiromuHota/pentaho-kettle/issues/36/comments","events_url":"https://api.github.com/repos/HiromuHota/pentaho-kettle/issues/36/events","html_url":"https://github.com/HiromuHota/pentaho-kettle/issues/36","id":211577278,"number":36,"title":"BrowserFunctions are not injected to a new repository dialog","user":{"login":"HiromuHota","id":20668349,"avatar_url":"https://avatars2.githubusercontent.com/u/20668349?v=3","gravatar_id":"","url":"https://api.github.com/users/HiromuHota","html_url":"https://github.com/HiromuHota","followers_url":"https://api.github.com/users/HiromuHota/followers","following_url":"https://api.github.com/users/HiromuHota/following{/other_user}","gists_url":"https://api.github.com/users/HiromuHota/gists{/gist_id}","starred_url":"https://api.github.com/users/HiromuHota/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HiromuHota/subscriptions","organizations_url":"https://api.github.com/users/HiromuHota/orgs","repos_url":"https://api.github.com/users/HiromuHota/repos","events_url":"https://api.github.com/users/HiromuHota/events{/privacy}","received_events_url":"https://api.github.com/users/HiromuHota/received_events","type":"User","site_admin":false},"labels":[{"id":549157598,"url":"https://api.github.com/repos/HiromuHota/pentaho-kettle/labels/7.0","name":"7.0","color":"1d76db","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-03-03T02:21:50Z","updated_at":"2017-03-06T22:13:03Z","closed_at":"2017-03-06T22:13:03Z","body":"Symptom: the new repository dialog is not fully rendered.\r\n\r\nHow to reproduce:\r\n- Click \"Connect\" on the top-right corner\r\n- Click \"Repository Manager\"\r\n\r\nWorkaround: use url query parameters to specify a repository to connect ([Query-parameters-for-File-open](https://github.com/HiromuHota/pentaho-kettle/wiki/Query-parameters-for-File-open)).\r\n\r\n![screen shot 2017-03-02 at 5 55 14 pm](https://cloud.githubusercontent.com/assets/20668349/23535172/ae962c58-ff71-11e6-8330-aca63854a9c7.png)\r\n![screen shot 2017-03-02 at 5 54 59 pm](https://cloud.githubusercontent.com/assets/20668349/23535174/af954a76-ff71-11e6-9725-ca93a7cc87b0.png)\r\n"},"comment":{"url":"https://api.github.com/repos/HiromuHota/pentaho-kettle/issues/comments/284550877","html_url":"https://github.com/HiromuHota/pentaho-kettle/issues/36#issuecomment-284550877","issue_url":"https://api.github.com/repos/HiromuHota/pentaho-kettle/issues/36","id":284550877,"user":{"login":"HiromuHota","id":20668349,"avatar_url":"https://avatars2.githubusercontent.com/u/20668349?v=3","gravatar_id":"","url":"https://api.github.com/users/HiromuHota","html_url":"https://github.com/HiromuHota","followers_url":"https://api.github.com/users/HiromuHota/followers","following_url":"https://api.github.com/users/HiromuHota/following{/other_user}","gists_url":"https://api.github.com/users/HiromuHota/gists{/gist_id}","starred_url":"https://api.github.com/users/HiromuHota/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HiromuHota/subscriptions","organizations_url":"https://api.github.com/users/HiromuHota/orgs","repos_url":"https://api.github.com/users/HiromuHota/repos","events_url":"https://api.github.com/users/HiromuHota/events{/privacy}","received_events_url":"https://api.github.com/users/HiromuHota/received_events","type":"User","site_admin":false},"created_at":"2017-03-06T22:13:03Z","updated_at":"2017-03-06T22:13:03Z","body":"The root-cause was that a cross-site scripting (XSS) between webSpoon (e.g., 8080) and OSGi (e.g., 9051) is prohibited by RWT.\r\nI tried to loose the security restriction about XSS in RWT, but not succeeded for some reason.\r\n\r\nThe solution I took at this moment was to have a reverse proxy that forwards requests to the OSGi service port (e.g., 9051).\r\nFor example, a request to `http://localhost:8080/repositories/web/index.html#/repository-connect` is forwarded to `http://localhost:9051/repositories/web/index.html#/repository-connect`.\r\nFrom the RepositoryDialog perspective, it just loads pages, scripts from the same domain (same host and same port).\r\n\r\nI use [J2EP](http://j2ep.sourceforge.net/) (jEasy Extensible Proxy), which is a reverse proxy running in tomcat or any other J2EE container, with the following configuration.\r\n```\r\n<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n<config>\r\n    <server className=\"net.sf.j2ep.servers.BaseServer\"\r\n        domainName=\"localhost:9051\"\r\n        isRewriting=\"true\">\r\n        <rule className=\"net.sf.j2ep.rules.AcceptEverythingRule\"/>\r\n    </server>\r\n</config>\r\n```\r\n\r\nJust simply deploy `j2ep-1.0.war` to `webapps/ROOT.war` (make sure it is running in the ROOT)"}}
{"actor":{"display_login":"HiromuHota"}}