Details
-
Fix
-
Status: Released (View Workflow)
-
Major
-
Resolution: Fixed
-
None
-
None
Description
Current Situation
If the JobScheduler has a HTTPS configuration
... <config http_port="localhost:40411" https_port="oh.sos:48411" mail_xslt_stylesheet="config/scheduler_mail.xsl"> .... </config>
and the "set run time" or "Reset run time" function is called at a job or order then the DailyPlan raises
REQUEST: ./jobs/set_run_time PARAMS: {"jobschedulerId":"scheduler.1.11.oh","jobs":[{"job":"/sos/housekeeping/scheduler_dequeue_mail","runTime":"<run_time><date date='2017-08-18'><period single_start='12:00'/></date></run_time>"}],"auditLog":{}} USER: root 2017-08-19 17:43:31,877 ERROR qtp1174290147-15 c.s.j.e.BulkError - SchedulerObjectFactory::run: java.io.IOException: Server returned HTTP response code: 401 for URL: https://oh.sos:48411/jobscheduler/master/api/command (java.io.IOException: Server returned HTTP response code: 401 for URL: https://oh.sos:48411/jobscheduler/master/api/command) com.sos.joc.exceptions.JobSchedulerInvalidResponseDataException: SchedulerObjectFactory::run: java.io.IOException: Server returned HTTP response code: 401 for URL: https://oh.sos:48411/jobscheduler/master/api/command (java.io.IOException: Server returned HTTP response code: 401 for URL: https://oh.sos:48411/jobscheduler/master/api/command) at com.sos.joc.jobs.impl.JobsResourceModifyJobImpl.executeModifyJobCommand(JobsResourceModifyJobImpl.java:197) at com.sos.joc.jobs.impl.JobsResourceModifyJobImpl.postJobsCommand(JobsResourceModifyJobImpl.java:258) at com.sos.joc.jobs.impl.JobsResourceModifyJobImpl.postJobsSetRunTime(JobsResourceModifyJobImpl.java:88) at com.sos.joc.jobs.impl.JobsResourceModifyJobImpl.postJobsSetRunTime(JobsResourceModifyJobImpl.java:83) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory$1.invoke(ResourceMethodInvocationHandlerFactory.java:81) at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher$1.run(AbstractJavaResourceMethodDispatcher.java:144) at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:161) at org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$ResponseOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:160) at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:99) at org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:389) at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:347) at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:102) at org.glassfish.jersey.server.ServerRuntime$2.run(ServerRuntime.java:326) at org.glassfish.jersey.internal.Errors$1.call(Errors.java:271) at org.glassfish.jersey.internal.Errors$1.call(Errors.java:267) at org.glassfish.jersey.internal.Errors.process(Errors.java:315) at org.glassfish.jersey.internal.Errors.process(Errors.java:297) at org.glassfish.jersey.internal.Errors.process(Errors.java:267) at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:317) at org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:305) at org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:1154) at org.glassfish.jersey.servlet.WebComponent.serviceImpl(WebComponent.java:473) at org.glassfish.jersey.servlet.WebComponent.service(WebComponent.java:427) at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:388) at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:341) at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:228) at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:837) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:583) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143) at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1180) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:511) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1112) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:213) at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:119) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:134) at org.eclipse.jetty.rewrite.handler.RewriteHandler.handle(RewriteHandler.java:335) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:134) at org.eclipse.jetty.server.Server.handle(Server.java:524) at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:319) at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:253) at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:273) at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:95) at org.eclipse.jetty.io.SelectChannelEndPoint$2.run(SelectChannelEndPoint.java:93) at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.executeProduceConsume(ExecuteProduceConsume.java:303) at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceConsume(ExecuteProduceConsume.java:148) at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:136) at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:671) at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:589) at java.lang.Thread.run(Thread.java:748) Caused by: com.sos.JSHelper.Exceptions.JobSchedulerException: SchedulerObjectFactory::run: java.io.IOException: Server returned HTTP response code: 401 for URL: https://oh.sos:48411/jobscheduler/master/api/command (java.io.IOException: Server returned HTTP response code: 401 for URL: https://oh.sos:48411/jobscheduler/master/api/command) at com.sos.scheduler.model.SchedulerObjectFactory.run(SchedulerObjectFactory.java:269) at com.sos.scheduler.model.answers.JSCmdBase.run(JSCmdBase.java:52) at com.sos.jitl.dailyplan.db.Calendar2DB.getSchedulerId(Calendar2DB.java:336) at com.sos.jitl.dailyplan.db.Calendar2DB.initSchedulerConnection(Calendar2DB.java:263) at com.sos.jitl.dailyplan.db.Calendar2DB.addDailyplan2DBFilter(Calendar2DB.java:125) at com.sos.joc.classes.JOCResourceImpl.updateDailyPlan(JOCResourceImpl.java:344) at com.sos.joc.jobs.impl.JobsResourceModifyJobImpl.executeModifyJobCommand(JobsResourceModifyJobImpl.java:191) ... 56 more
Desired Behavior
DailyPlan should use the authentication credentials with HTTPS