Skip to main content
Question

Access to download logs from notification url without logging in.

  • September 23, 2019
  • 4 replies
  • 42 views

jdh
Contributor
Forum|alt.badge.img+38

Scenario, we have a webapp that uses the rest api to run workspaces.

 

 

User does not have an account on FME Server.

 

User interacts with the web app. User receives an email that includes a link to the log file.

 

 

How can I set up FME Server permissions so that the user can simply download the log file from the email link without having to enter a username/password?

 

 

This should be the absolute minimum required permissions. Ie there should be no unauthenticated access to run the jobs themselves.

 

 

 

 

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

4 replies

itay
Supporter
Forum|alt.badge.img+18
  • Supporter
  • September 23, 2019

Hi @jdh,

What about sending the log as an attachment instead of the link to it?


jdh
Contributor
Forum|alt.badge.img+38
  • Author
  • Contributor
  • September 23, 2019

Hi @jdh,

What about sending the log as an attachment instead of the link to it?

That becomes problematic as the log hasn't finished writing when the notification is triggered.

 

 

The workspace has a Terminator immediately after the FMEServerNotifier that triggers the email, so I'm not terribly concerned about race conditions.

 

 


itay
Supporter
Forum|alt.badge.img+18
  • Supporter
  • September 23, 2019

That becomes problematic as the log hasn't finished writing when the notification is triggered.

 

 

The workspace has a Terminator immediately after the FMEServerNotifier that triggers the email, so I'm not terribly concerned about race conditions.

 

 

I see, this is not the best solution for such a construction. I would trigger the topic once the workspace is done.


jdh
Contributor
Forum|alt.badge.img+38
  • Author
  • Contributor
  • September 23, 2019

I see, this is not the best solution for such a construction. I would trigger the topic once the workspace is done.

So the problem with triggering the topic when the workspace is done, is that the "Post Data from Writer" setting only works on Success, not on Failure.

 

 

Otherwise I would absolutely use a FeatureWriter -> Terminator, Post to Topics on Failure solution.

 

 

(Which is how the emails are set up when the workspace is successful).