Â
Â
We have a small app that sends jobs to FME Server 2018, it worked in FME server 2016, but now that we upgraded to 2018, we are getting a failure when it tries to use the upload service, basically the app says FME failed to provide a cookie.Â
When I look at the Data Upload Service documentation, under Reponses Elements, I see this, which is what I guess the cookie is about.A session identifier that is always included in each data upload response as an HTTP cookie as well as in the body of the response.
Â
looking at the Service logs in FME Server 2018, I see this:Â
This is the Data Upload log for your runue-09-Apr-2019 10:36:34.982 AM INFORM http-nio-80-exec-3 419011 : Creating new request object: path level = "1", requested path = "/NRM_AQS_TD_Export_Survey.xml", session ID = "user_public", uploaded files = e], workspace path = "/NRM Workbench/NRM_AQS_TD_Export_Survey.fmw", retrieve absolute paths = "false", extract files = "false"
Â
Tue-09-Apr-2019 10:36:34.984 AM INFORM http-nio-80-exec-3 419016 : Writing single file from incoming request stream to "NRM_AQS_TD_Export_Survey.xml"Â
Tue-09-Apr-2019 10:36:34.992 AM INFORM http-nio-80-exec-3 419014 : Retrieving contents for workspace path "/NRM Workbench/NRM_AQS_TD_Export_Survey.fmw", found 0 archives, 1 directories, and 1 filesÂ
Tue-09-Apr-2019 10:51:38.171 AM INFORM http-nio-80-exec-7 419011 : Creating new request object: path level = "1", requested path = "/NRM_AQS_TD_Export_Survey.xml", session ID = "user_public", uploaded files = f], workspace path = "/NRM Workbench/NRM_AQS_TD_Export_Survey.fmw", retrieve absolute paths = "false", extract files = "false"Â
Tue-09-Apr-2019 10:51:38.174 AM INFORM http-nio-80-exec-7 419016 : Writing single file from incoming request stream to "NRM_AQS_TD_Export_Survey.xml"Â
Tue-09-Apr-2019 10:51:38.201 AM INFORM http-nio-80-exec-7 419014 : Retrieving contents for workspace path "/NRM Workbench/NRM_AQS_TD_Export_Survey.fmw", found 0 archives, 1 directories, and 1 filesÂ
This is the Token log:Â
Tue-09-Apr-2019 10:33:36.993 AM INFORM http-nio-80-exec-9 420006 : Token "dd0b****" was generated for user "user_public" from client address "" for 86400 seconds.Â
This is the Rest LogÂ
Tue-09-Apr-2019 10:52:32.512 AM FATAL http-nio-80-exec-2 418007 : Service failed: COM.safe.fmeserver.api.FMEServerException: Unauthorized request by user user_public due to lack of proper permissions.Â
Tue-09-Apr-2019 10:52:32.594 AM INFORM http-nio-80-exec-2 418008 : Request handling completed.Â
Tue-09-Apr-2019 10:52:51.690 AM INFORM http-nio-80-exec-8 418003 : Request received from "10.250.152.186"Â
Tue-09-Apr-2019 10:52:51.691 AM INFORM http-nio-80-exec-8 418005 : Use response format: htmlÂ
Tue-09-Apr-2019 10:52:51.693 AM INFORM http-nio-80-exec-8 418048 : Using HTTP Basic authenticationÂ
Tue-09-Apr-2019 10:52:51.694 AM FATAL http-nio-80-exec-8 418007 : Service failed: nullÂ
Tue-09-Apr-2019 10:52:51.720 AM INFORM http-nio-80-exec-8 418008 : Request handling completed.Â
I see this in the tomcat logs:Â
10.250.152.186 - - /09/Apr/2019:10:51:38 -0500] "PUT /fmedataupload/NRM%20Workbench/NRM_AQS_TD_Export_Survey.fmw/NRM_AQS_TD_Export_Survey.xml HTTP/1.1" 200 257Â
10.250.152.186 - - <09/Apr/2019:10:52:32 -0500] "GET /fmerest/jobs/running?token=dd0b648bc333682e96e71c9d740eb75c468e5cb8 HTTP/1.1" 401 1680Â
10.250.152.186 - - 09/Apr/2019:10:52:32 -0500] "GET /fmerest/images/textLogoDraftWhite.png HTTP/1.1" 404 1119Â
When I look, I do see that the file is successfully uploaded, but the process fails, I assume because FME Server or tomcat, is failing to provide the cookie.Â
So this sure looks like some sort of permission issue, the user account in FME Server that generated the token,, I have tried with various roles, including giving it Admin, but that did not helpÂ
Any thoughts on what permissions may be lacking and where, assuming it is a permission issue ?