Focal Point
[CLOSED] Webfocus Server - Download file with authentication

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/4997055686

May 30, 2017, 02:21 PM
Amom
[CLOSED] Webfocus Server - Download file with authentication
Hey all,

Could you help me with the following scenario.

I had a procedure that:
1 - creates a txt file in the disk
2 - This txt file is then compacted with UNIX command (zip); and]
3 - Send a e-mail with the link (for example, http://server/approot/application_name/file.zip) to user get the file.

However, the customer needs that the users authenticate before downloading the file.

Is there some way to implement this using Webfocus?

Some background:

Webfocus version: 8105m
Server: RHEL 6


Thanks in advance

This message has been edited. Last edited by: FP Mod Chuck,


WebFOCUS 8
Windows, All Outputs
May 30, 2017, 03:25 PM
MartinY
Nothing related to Focus, it's a question of security. If the server/path is not accessible to outside users, they cannot open the file.

Focus (via Report Caster) can send email with attachment. This could be an option.


WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF
In Focus since 2007
June 01, 2017, 11:32 AM
FP Mod Chuck
Hi Amom

Using ReportCaster as Martin has advised is the answer it even has the ability to zip the file before sending.


Thank you for using Focal Point!

Chuck Wolff - Focal Point Moderator
WebFOCUS 7x and 8x, Windows, Linux All output Formats
June 01, 2017, 01:40 PM
Amom
Thanks guys.

But, the file size does not fit the attachment limit size.
Probably, we will implement this with the security options from webserver.

This message has been edited. Last edited by: Amom,


WebFOCUS 8
Windows, All Outputs
June 01, 2017, 03:04 PM
MartinY
quote:
But, the file size does not fit the attachment limit size.

Even with the attached file zipped is too large ?

You will may have to look at your internal policies as for maximum size limit for file attachment. I know that some companies limit to 10M per example.

If it's the case and that zip file still over the limit, you will need to consider other options.


WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF
In Focus since 2007
June 02, 2017, 09:22 AM
jgelona
Why not just ftp/sftp the file? If you are using a UNIX script to zip the file, why not just add ftp/sftp to send it to user or to a folder the user has access to? We do this all the time.


In FOCUS since 1985. Prod WF 8.0.08 (z90/Suse Linux) DB (Oracle 11g), Self Serv, Report Caster, WebServer Intel/Linux.
June 02, 2017, 09:45 AM
Amom
Hi jgelona,
Thanks by your answer.
We're doing now something alike. Serving the file through browser under the /approot path to the file. However, this path is managed by webserver, so probably we'll try to implement security features of apache, as LDAP.


WebFOCUS 8
Windows, All Outputs