I spoke incorrectly. My issue is actually with installing policy. Below is the relevant output. Changes are published successfully but the install fails stating there are unpublished changes. Makes no sense and I see no unpublished changes.
--------------------------------------
2019-11-13 15:24:51,859 INFO org.apache.cxf.interceptor.LoggingInInterceptor.log:250 [qtp-760609414-28] - Inbound Message
----------------------------
ID: 5
Address: http://127.0.0.1:50276/web_api/publish
Encoding: ISO-8859-1
Http-Method: POST
Content-Type: application/json
Headers: {connection=[keep-alive], Content-Length=[6], content-type=[application/json], Expect=[100-continue], Host=[127.0.0.1:50276], User-Agent=[Mozilla/5.0 (Windows NT; Windows NT 6.3; en-US) WindowsPowerShell/4.0], X-chkp-sid=[6w_Ufijo8ElKHvds4HvgghHiSeaPsIM3ivSkCIU3HZ0], X-Forwarded-For=[10.130.187.77], X-Forwarded-Host=[10.130.181.25], X-Forwarded-Host-Port=[443], X-Forwarded-Server=[10.130.181.25]}
Payload: {
}
--------------------------------------
2019-11-13 15:24:51,865 WARN com.checkpoint.management.web_api_is.utils.helpers.RequestHeadersHelper.getMediaType_aroundBody6:9 [qtp-760609414-28] - No Accept header received. Falling back to default media type [application/json].
2019-11-13 15:24:51,866 INFO com.checkpoint.management.web_api_is.utils.helpers.ApiCache.<init>:21 [qtp-760609414-28] - Cache created and initialized
2019-11-13 15:24:51,868 INFO com.checkpoint.management.web_api.web_services.WebApiEntryPoint.logRequestedCommandInfo:51 [qtp-760609414-28] - Executing [publish] of version 1.3 (references 1)
2019-11-13 15:24:52,056 INFO com.checkpoint.management.web_api_is.utils.CsvFileWriterUtils.writeCsvLine:7 [qtp-760609414-28] - 2019-11-13,15:24:52 -0500,publish,PASSED,190
2019-11-13 15:24:52,079 INFO org.apache.cxf.interceptor.LoggingOutInterceptor.log:250 [qtp-760609414-28] - Outbound Message
---------------------------
ID: 5
Response-Code: 200
Content-Type: application/json
Headers: {Content-Type=[application/json], X-chkp-sync-task-id=[01234567-89ab-cdef-8125-6377fe3f73ca], Date=[Wed, 13 Nov 2019 20:24:52 GMT]}
Payload: {
"task-id" : "01234567-89ab-cdef-8125-6377fe3f73ca"
}
--------------------------------------
2019-11-13 15:24:52,093 INFO org.apache.cxf.interceptor.LoggingInInterceptor.log:250 [qtp-760609414-25] - Inbound Message
----------------------------
ID: 6
Address: http://127.0.0.1:50276/web_api/install-policy
Encoding: ISO-8859-1
Http-Method: POST
Content-Type: application/json
Headers: {connection=[keep-alive], Content-Length=[133], content-type=[application/json], Expect=[100-continue], Host=[127.0.0.1:50276], User-Agent=[Mozilla/5.0 (Windows NT; Windows NT 6.3; en-US) WindowsPowerShell/4.0], X-chkp-sid=[6w_Ufijo8ElKHvds4HvgghHiSeaPsIM3ivSkCIU3HZ0], X-Forwarded-For=[10.130.187.77], X-Forwarded-Host=[10.130.181.25], X-Forwarded-Host-Port=[443], X-Forwarded-Server=[10.130.181.25]}
Payload: {
"threat-prevention": false,
"targets": "FMC-Firewall",
"access": true,
"policy-package": "FMC-Policy-V2"
}
--------------------------------------
2019-11-13 15:24:52,099 WARN com.checkpoint.management.web_api_is.utils.helpers.RequestHeadersHelper.getMediaType_aroundBody6:9 [qtp-760609414-25] - No Accept header received. Falling back to default media type [application/json].
2019-11-13 15:24:52,100 INFO com.checkpoint.management.web_api_is.utils.helpers.ApiCache.<init>:21 [qtp-760609414-25] - Cache created and initialized
2019-11-13 15:24:52,113 INFO com.checkpoint.management.web_api.web_services.WebApiEntryPoint.logRequestedCommandInfo:51 [qtp-760609414-25] - Executing [install-policy] of version 1.3 (references 1.2)
2019-11-13 15:24:53,245 WARN com.checkpoint.management.web_api.utils.WebApiCommandExceptionUtils.getErrorReply:231 [qtp-760609414-25] - Unhandled exception type [com.checkpoint.web_services.faults.InvalidServiceCallRemoteFault]
2019-11-13 15:24:53,246 ERROR com.checkpoint.management.web_api.utils.WebApiCommandExceptionUtils.getErrorReply:94 [qtp-760609414-25] -
com.checkpoint.web_services.faults.InvalidServiceCallRemoteFault: This operation cannot be done when unpublished changes are present. The current session contains 1 unpublished changes.
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:88)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:57)
at java.lang.reflect.Constructor.newInstance(Constructor.java:437)
at org.apache.cxf.interceptor.ClientFaultConverter.processFaultDetail(ClientFaultConverter.java:182)
at org.apache.cxf.interceptor.ClientFaultConverter.handleMessage(ClientFaultConverter.java:82)
at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:307)
at org.apache.cxf.interceptor.AbstractFaultChainInitiatorObserver.onMessage(AbstractFaultChainInitiatorObserver.java:113)
at org.apache.cxf.binding.soap.interceptor.CheckFaultInterceptor.handleMessage(CheckFaultInterceptor.java:69)
at org.apache.cxf.binding.soap.interceptor.CheckFaultInterceptor.handleMessage(CheckFaultInterceptor.java:34)
at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:307)
at org.apache.cxf.endpoint.ClientImpl.onMessage(ClientImpl.java:802)
at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponseInternal(HTTPConduit.java:1642)
at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:1533)
at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1336)
at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:56)
at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:652)
at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62)
at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:307)
at org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:516)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:425)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:326)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:279)
at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:96)
at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:139)
at com.sun.proxy.$Proxy273.installPolicy(Unknown Source)
at com.checkpoint.management.web_api.utils.RemotePolicyInstallationUtils.installPolicy_aroundBody0(RemotePolicyInstallationUtils.java:83)
at com.checkpoint.management.web_api.utils.RemotePolicyInstallationUtils$AjcClosure1.run(RemotePolicyInstallationUtils.java:1)
at org.aspectj.runtime.reflect.JoinPointImpl.proceed(JoinPointImpl.java:149)
at com.checkpoint.management.web_api_is.aspects.logging.WebApiMethodLoggerAspect.aroundMethodLoggerTest(WebApiMethodLoggerAspect.java:13)
at com.checkpoint.management.web_api.utils.RemotePolicyInstallationUtils.installPolicy(RemotePolicyInstallationUtils.java:173)
at com.checkpoint.management.web_api.core.handler.commands.on_targets.install_policy.PolicyInstallationRequestHandler.executeImpl(PolicyInstallationRequestHandler.java:9)
at com.checkpoint.management.web_api.core.handler.commands.on_targets.install_policy.PolicyInstallationRequestHandler.executeImpl(PolicyInstallationRequestHandler.java:6)
at com.checkpoint.management.web_api.core.handler.commands.on_targets.BaseCommandRequestHandler.execute_aroundBody0(BaseCommandRequestHandler.java:3)
at com.checkpoint.management.web_api.core.handler.commands.on_targets.BaseCommandRequestHandler$AjcClosure1.run(BaseCommandRequestHandler.java:1)
at org.aspectj.runtime.reflect.JoinPointImpl.proceed(JoinPointImpl.java:149)
at com.checkpoint.management.web_api_is.aspects.logging.WebApiMethodLoggerAspect.aroundMethodLoggerTest(WebApiMethodLoggerAspect.java:13)
at com.checkpoint.management.web_api.core.handler.commands.on_targets.BaseCommandRequestHandler.execute(BaseCommandRequestHandler.java:5)
at com.checkpoint.management.web_api.core.handler.commands.on_targets.install_policy.PolicyInstallationRequestHandler.execute(PolicyInstallationRequestHandler.java:109)
at com.checkpoint.management.web_api.core.handler.commands.on_targets.install_policy.v1_2.PolicyInstallationRequestHandler.execute(PolicyInstallationRequestHandler.java:18)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:95)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
at java.lang.reflect.Method.invoke(Method.java:508)
at com.checkpoint.management.web_api_is.utils.WebApiReflectionUtils.invoke(WebApiReflectionUtils.java:7)
at com.checkpoint.management.web_api.web_services.WebApiEntryPoint.postEntryPoint(WebApiEntryPoint.java:81)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:95)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
at java.lang.reflect.Method.invoke(Method.java:508)
at org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:181)
at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:97)
at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:204)
at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:101)
at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:59)
at org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:96)
at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:307)
at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)
at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:251)
at org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:234)
at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:208)
at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:160)
at org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:171)
at org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:293)
at org.apache.cxf.transport.servlet.AbstractHTTPServlet.doPost(AbstractHTTPServlet.java:212)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:755)
at org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:268)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:686)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1494)
at org.eclipse.jetty.servlets.CrossOriginFilter.handle(CrossOriginFilter.java:247)
at org.eclipse.jetty.servlets.CrossOriginFilter.doFilter(CrossOriginFilter.java:210)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)
at com.checkpoint.management.web_api.core.filter.LogCustomDebugFieldFilter.doFilter(LogCustomDebugFieldFilter.java:19)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1474)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:499)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:557)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:428)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:255)
at org.eclipse.jetty.server.handler.IPAccessHandler.handle(IPAccessHandler.java:203)
at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:154)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
at org.eclipse.jetty.server.Server.handle(Server.java:370)
at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:489)
at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:949)
at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:1011)
at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:651)
at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)
at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:668)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)
at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)
at java.lang.Thread.run(Thread.java:785)
2019-11-13 15:24:53,248 INFO com.checkpoint.management.web_api_is.utils.CsvFileWriterUtils.writeCsvLine:7 [qtp-760609414-25] - 2019-11-13,15:24:53 -0500,install-policy,FAILED,1149
2019-11-13 15:24:53,251 INFO org.apache.cxf.interceptor.LoggingOutInterceptor.log:250 [qtp-760609414-25] - Outbound Message
---------------------------
ID: 6
Response-Code: 400
Content-Type: application/json
Headers: {Content-Type=[application/json], Date=[Wed, 13 Nov 2019 20:24:53 GMT]}
Payload: {
"code" : "generic_error",
"message" : "Runtime error: This operation cannot be done when unpublished changes are present. The current session contains 1 unpublished changes."
}