{"action":"created","issue":{"url":"https://api.github.com/repos/ow2-proactive/scheduling/issues/1951","labels_url":"https://api.github.com/repos/ow2-proactive/scheduling/issues/1951/labels{/name}","comments_url":"https://api.github.com/repos/ow2-proactive/scheduling/issues/1951/comments","events_url":"https://api.github.com/repos/ow2-proactive/scheduling/issues/1951/events","html_url":"https://github.com/ow2-proactive/scheduling/issues/1951","id":87797876,"number":1951,"title":"When using credentials file to login, Studio saves workflows in \"null\" directory","user":{"login":"activeeon-bot","id":12379036,"avatar_url":"https://avatars.githubusercontent.com/u/12379036?v=3","gravatar_id":"","url":"https://api.github.com/users/activeeon-bot","html_url":"https://github.com/activeeon-bot","followers_url":"https://api.github.com/users/activeeon-bot/followers","following_url":"https://api.github.com/users/activeeon-bot/following{/other_user}","gists_url":"https://api.github.com/users/activeeon-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/activeeon-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/activeeon-bot/subscriptions","organizations_url":"https://api.github.com/users/activeeon-bot/orgs","repos_url":"https://api.github.com/users/activeeon-bot/repos","events_url":"https://api.github.com/users/activeeon-bot/events{/privacy}","received_events_url":"https://api.github.com/users/activeeon-bot/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ow2-proactive/scheduling/labels/severity:minor","name":"severity:minor","color":"ffb2b2"},{"url":"https://api.github.com/repos/ow2-proactive/scheduling/labels/type:bug","name":"type:bug","color":"c7def8"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/ow2-proactive/scheduling/milestones/38","html_url":"https://github.com/ow2-proactive/scheduling/milestones/7.X","labels_url":"https://api.github.com/repos/ow2-proactive/scheduling/milestones/38/labels","id":1326898,"number":38,"title":"7.X","description":"","creator":{"login":"bamedro","id":1952557,"avatar_url":"https://avatars.githubusercontent.com/u/1952557?v=3","gravatar_id":"","url":"https://api.github.com/users/bamedro","html_url":"https://github.com/bamedro","followers_url":"https://api.github.com/users/bamedro/followers","following_url":"https://api.github.com/users/bamedro/following{/other_user}","gists_url":"https://api.github.com/users/bamedro/gists{/gist_id}","starred_url":"https://api.github.com/users/bamedro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bamedro/subscriptions","organizations_url":"https://api.github.com/users/bamedro/orgs","repos_url":"https://api.github.com/users/bamedro/repos","events_url":"https://api.github.com/users/bamedro/events{/privacy}","received_events_url":"https://api.github.com/users/bamedro/received_events","type":"User","site_admin":false},"open_issues":105,"closed_issues":18,"state":"open","created_at":"2015-09-28T14:04:06Z","updated_at":"2016-02-01T12:33:04Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2014-10-08T08:02:01Z","updated_at":"2016-02-01T12:38:26Z","closed_at":null,"body":"<a href=\"https://jira.activeeon.com/browse/SCHEDULING-2186\" title=\"SCHEDULING-2186\">Original issue</a> created by <a href=\"mailto:mauricio.jost_AT_activeeon.com\">Mauricio Jost</a> on 08, Oct 2014 at 10:02 AM - SCHEDULING-2186\n\n<hr />\n\nTo reproduce: login to Scheduler or RM web portal using credentials file. Then go to the Studio portal, you will be logged in but under user \"undefined\". Then if you save any workflow the Studio will either throw these exceptions: \n\n\n```\n[2014-10-08 07:30:33,674 INFO              o.o.p.s.StudioRest] Updating job name from  to Job\n[2014-10-08 07:30:33,674 INFO              o.o.p.s.StudioRest] Writing file /home_nfs/home_jostm/mj/projects_studio/null/workflows/1/name\n[2014-10-08 07:30:33,674 WARN              o.o.p.s.StudioRest] Could not write file /home_nfs/home_jostm/mj/projects_studio/null/workflows/1/name\njava.io.FileNotFoundException: /home_nfs/home_jostm/mj/projects_studio/null/workflows/1/name (No such file or directory)\n        at java.io.FileOutputStream.open(Native Method)\n        at java.io.FileOutputStream.<init>(FileOutputStream.java:221)\n        at java.io.FileOutputStream.<init>(FileOutputStream.java:171)\n        at org.ow2.proactive_grid_cloud_portal.studio.StudioRest.writeFileContent(StudioRest.java:146)\n        at org.ow2.proactive_grid_cloud_portal.studio.StudioRest.updateWorkflow(StudioRest.java:319)\n        at sun.reflect.GeneratedMethodAccessor121.invoke(Unknown Source)\n        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n        at java.lang.reflect.Method.invoke(Method.java:606)\n        at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:137)\n        at org.jboss.resteasy.core.ResourceMethodInvoker.invokeOnTarget(ResourceMethodInvoker.java:280)\n        at org.jboss.resteasy.core.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:234)\n        at org.jboss.resteasy.core.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:221)\n        at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:356)\n        at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:179)\n        at org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:220)\n        at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:56)\n        at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:51)\n        at javax.servlet.http.HttpServlet.service(HttpServlet.java:770)\n        at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:684)\n        at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:503)\n        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)\n        at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:557)\n        at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)\n        at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086)\n        at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:429)\n        at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)\n        at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020)\n        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)\n        at org.eclipse.jetty.server.handler.HandlerList.handle(HandlerList.java:52)\n        at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)\n        at org.eclipse.jetty.server.Server.handle(Server.java:370)\n        at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:494)\n        at org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:982)\n        at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:1043)\n        at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:865)\n        at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:240)\n        at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)\n        at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:696)\n        at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:53)\n        at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)\n        at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)\n        at java.lang.Thread.run(Thread.java:744)\n```\n\n\nor save the files in directory:\n\n\n```\nnull/workflows/1/\n```\n\n"},"comment":{"url":"https://api.github.com/repos/ow2-proactive/scheduling/issues/comments/177955253","html_url":"https://github.com/ow2-proactive/scheduling/issues/1951#issuecomment-177955253","issue_url":"https://api.github.com/repos/ow2-proactive/scheduling/issues/1951","id":177955253,"user":{"login":"fviale","id":3063713,"avatar_url":"https://avatars.githubusercontent.com/u/3063713?v=3","gravatar_id":"","url":"https://api.github.com/users/fviale","html_url":"https://github.com/fviale","followers_url":"https://api.github.com/users/fviale/followers","following_url":"https://api.github.com/users/fviale/following{/other_user}","gists_url":"https://api.github.com/users/fviale/gists{/gist_id}","starred_url":"https://api.github.com/users/fviale/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fviale/subscriptions","organizations_url":"https://api.github.com/users/fviale/orgs","repos_url":"https://api.github.com/users/fviale/repos","events_url":"https://api.github.com/users/fviale/events{/privacy}","received_events_url":"https://api.github.com/users/fviale/received_events","type":"User","site_admin":false},"created_at":"2016-02-01T12:38:26Z","updated_at":"2016-02-01T12:38:26Z","body":"related to #1015"}}