How to provide security to a file.
Hi Experts,
We have a web application and we open the word file, excel file, wri file.. from a jsp using sendRedirect method. these files are opening in a browser. once we close the applciation, if we have the file link open in a browser we are able to open the file directly. But we want file to be open only from the web application.
If any one know who to achieve, please reply.
thanks,
swpana soni.
suppose you have a button in a jsp page , by clicking that you get an excel file opened in a new window (with a different url).
if you use that url alone ,then also you get that file opened. and you want that to be happened.
if(request.getRequestURL() ==expected page ( I mean the page with the button) )
response.senRedirect(content);
I think this will will solve that issue. and no need to edit web.xml also.
Similar Messages
-
How to have Secure Connection for File Adapter.Pls help
Hi All,
For File to File Scenario
How to have Secure Connection for File Adapter.
Pls send links/blogs explaining this scenario.
Regardshi rich
go through these links
FTPs connection failed - error ".. certificate rejected by ChainVerifier"
Re: What is SFTP, FTI channels
http://help.sap.com/saphelp_erp2005/helpdata/en/e3/94007075cae04f930cc4c034e411e1/frameset.htm
http://help.sap.com/saphelp_erp2005/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/frameset.htm
FTPS implementation question.
http://help.sap.com/saphelp_nw04s/helpdata/en/43/0e16bfd7b021aee10000000a1553f6/frameset.htm
Server certificate rejected by ChainVerifier:FTPS server(Points Guaranteed)
/people/krishna.moorthyp/blog/2007/07/31/sftp-vs-ftps-in-sap-pi
File adapter
thanks
Kunaal -
How to provide security settings for the adobe form using livecycleDesigner
Hello,
I am very new to form designing,
can any one please tell me how to provide security settings for the adobe forms at client side?
Regards,
MenakaHi,
that is a good topic for the ADFS forum.
ADFS forum - http://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=Geneva
But you could pass the user-agent as incoming claim type Client User agent. User-agents can be manipulated, so if that is an issue you can look into Device Registration and the Device OS type from there. That is also a incoming claim but requires DRS and
DRS is not available for all plattforms.
Hth,
Lutz -
How to provide security to application
Hai to ALL
Can any one suggest me for Securites in BPC Application
How to provide security to application in user, Admin levels,
what are the privelliages to user, admin
Cheers
SRMHi,
When you talk about application level security, it is nothing but member access profile. This profile determines, whether you will have the authorization to post a value / read a value from a particular member of the dimension or not.
Hope this helps. -
How to Provide search Help for files on Application Server
Hi Guys,
Can anyone tell me How to Provide search Help for files on Application Server. I have put a file name on selection screen. I want to give search help for files on application server.
Thanks & Regards.
Harish.Hi Harish,
Use the following code,
tables sxpgcotabe.
data: lt_execprot LIKE btcxpm OCCURS 0 WITH HEADER LINE,
w_filepath(60) TYPE c, --> length depending on your Directory path.
SELECT SINGLE *
FROM sxpgcotabe
WHERE name = 'LIST_DB2DUMP'
AND opsystem = sy-opsys.
IF sy-subrc <> 0.
SELECT SINGLE *
FROM sxpgcotabe
WHERE name = 'LIST_DB2DUMP'
AND opsystem = 'UNIX'.
IF sy-subrc <> 0.
MESSAGE e000 WITH 'External operating system command '
'LIST_DB2DUMP not found'.
ENDIF.
ENDIF.
sxpgcotabe-parameters = p_filepath. --> provide the directory path.
CALL FUNCTION 'SXPG_COMMAND_EXECUTE'
EXPORTING
commandname = sxpgcotabe-name
additional_parameters = sxpgcotabe-parameters
operatingsystem = sxpgcotabe-opsystem
TABLES
exec_protocol = lt_execprot
EXCEPTIONS
no_permission = 1
command_not_found = 2
parameters_too_long = 3
security_risk = 4
wrong_check_call_interface = 5
program_start_error = 6
program_termination_error = 7
x_error = 8
parameter_expected = 9
too_many_parameters = 10
illegal_command = 11
wrong_asynchronous_parameters = 12
cant_enq_tbtco_entry = 13
jobcount_generation_error = 14
OTHERS = 15.
IF sy-subrc <> 0.
MESSAGE e000 WITH text-e01 p_filepath. "Directory failed
ENDIF.
Loop round the directory list, split each line up into a line table
and get the last data for each line, should be the filename
Then build the dirlist.
REFRESH t_dirlist.
LOOP AT lt_execprot.
REFRESH t_dirline.
SPLIT lt_execprot-message AT space INTO TABLE t_dirline.
DESCRIBE TABLE t_dirline LINES w_nolines.
READ TABLE t_dirline INDEX w_nolines.
MOVE t_dirline-data TO t_dirlist-filename.
APPEND t_dirlist.
ENDLOOP.
Here you will get all the files in the directory mentioned in Application server.
For displaying them as a Search help use the FM '/BMC/ZPOPUP_GET_VALUE'
Pass the Internal table to this FM.
Regards,
Paul. -
How to provide Security to Enterprise Archive
Hi All,
I have a very queer requirement. Application security.
Question : "Can we provide security to .ear (J2EE enterprise archive) file so that no body can open it except say the SYSTEM ?".
The Need : Our's is a product based company, we give our application packaged as an EAR file to many clients and channel partners for demo, trial, production, etc. We don't want anybody to open the .ear and see the contents. Even thought we are doing obfuscation to prevent pilferage (and/or manipulation) of sensitive source code.
The EAR file locking is desired as another layer of security.
Any tips or resources on this will be welcome.
Thanks.
Madhu VHi,
If you need to prevent your clients from viewing the contents of the EAR, you could make use of the WIN-ZIP security technique since the "EAR" also follows a "ZIP" format.You can thus effectively manage access-control to the zipped contents of your EAR file.
Furthermore, if you need to encrypt your java class files you could use obfuscators which are available on the NET both as freeware and buyables though its preferable if you could go in for the latter.
Hopefully this should resolve your problem !!! -
I am unable to secure delete those files in the Trash. Many files are marked as "locked" Is this way I cannot secure delete these files?
Can you not just select them and remove the locked flag?
-
How to create security for flat files under a Webserver Directory?
Hello,
I have an Application where I need to show a Flat Excel File (with open/save option) from a URL from Portal.
This works fine.
But a user can view this file without login to Portal.
Though we restricted the directory, file access is uncontrolled.
What should we do?
Thanks
MadhavI mean, how to enforce Login to Portal on flat files in the Web Server Directory(if the users are accessing directly from URL), they should be accessible as long as they logged into Oracle Portal. But right now, they can access by typing the URL for this flat file directly into browser.
Thanks for your time
Madhav -
How can I secure/encrypt a file held on an external HD
I would like to put items on my external wireless networked lacie HD which cannot be accessed by others who use it. I thought creating a disk image would work but after putting the files and transferring to the public folder on the HD, I want to delete the files from my local drive as they take up so much room. When I then log back into the Lacie the files I put there have disappeared. I've re-created this a few times and it seems that the image on the network drives mimics what I do locally.
Am I doing something wrong? I know how to set encryption and unchecking the pswd in keychain.
Thanks
StuartHi Matt
I create using disk utility. I then drag and drop the file into the disk image.
I thought about this (shortcut) and yes the first time it was a shortcut, next time I copied and pasted.
However, now it appears as a folder on the Lacie and not as a mount.
Q - should I be moving the xxx.dmg file over to the HDD? I am currently moving the mounted drive that appears on the desktop
S -
I am using a USB-TEMP-AI board from MCC with Labview 8.6
This necessitates using VInDLL.vi and TIn.vi to read my signals.
When I log using "write to measurement file", I would like headings
above the data such as:
Tcold.in, Tcold.out, Thot.in, Thot.out, Flow.cold, Flow.hot
instead I get:
Untitled, Untitled 1, Untitled 2, etc.
For some cases I need scaling, after which I get headings such as:
Scaled (Scaled), Scaled (Scaled) 1, Scaled (Scaled) 2, etc.
How can I fix this?
Thanks,
Jon SnyderOne way is to use an NI data acquisition board and then you would probably be using the DAQ Assistant which would create the column names for you. A second way would be to just not use the Write to Measurement File and use one or more of the lower level file write functions (i.e. Write to Spreadsheet File) and write the column headers separately. The last way, would be to make sure the data from the mcc function is a waveform data type and set an NI_ChannelName attribure to what you want before passing the data to the Write to Measurement File.
This question has been asked numerous times and code for setting the attribute has been posted numerous times. -
How to enforce security for flat files under a Webserver Directory?
Hello,
I have an Application where I need to show a Flat Excel File (with open/save option) from a URL from Portal.
This works fine.
But a user can view this file without login to Portal.
Though we restricted the directory, file access is uncontrolled.
What should we do?
Thanks
MadhavAccording to something I read, protecting files through SSO should be available in release 2 of 9iAS (should be real soon now). It's done through an Apache module mod_sso.
-
How to give the application server file path in the module pool programming
Hi,
Could somebody help me how to provide the application server file path in module pool programming once the logo is uploaded to sap system.
For eg I have imported a logo name owens into sap system by using transaction se78; now I need to call the path in the below url,
if container2 is initial.
CREATE OBJECT CONTAINER2
EXPORTING
CONTAINER_NAME = 'PICTURE_CONTAINER2'.
CREATE OBJECT PICTURE2
EXPORTING
PARENT = CONTAINER2.
CALL METHOD PICTURE2->SET_DISPLAY_MODE
EXPORTING
DISPLAY_MODE = CL_GUI_PICTURE=>display_mode_fit_center
EXCEPTIONS
ERROR = 1.
CALL METHOD PICTURE2->LOAD_PICTURE_FROM_URL
EXPORTING
URL = " ? "
EXCEPTIONS
ERROR = 1
Others = 2.
endif.
Thanks in advance
Deepuhi Deepu,
Use FM '/SAPDMC/LSM_F4_FRONTEND_FILE' for fetching the data from the application server path/presentation server path
Regards,
Santosh -
Hi guys,
here i amproviding some sample code.
requirement is uploading data from xl to internal table.
problem is how to provide f4 help for file name.
using cl_gui_frontend_services.
type mismatching is occuring.
DATA: wa_filename1 TYPE file_table, "for method
wa_filename2 TYPE rlgrap-filename, "for function module
wa_data TYPE alsmex_tabline.
DATA: t_data TYPE STANDARD TABLE OF alsmex_tabline.
DATA: file_count TYPE i.
selection-screen begin of block bk1 with frame title text-001.
parameters:p_fname type char10.
selection-screen end of block bk1.
at selection-screen on value-request for p_fname.
Method to get filename
CALL METHOD cl_gui_frontend_services=>file_open_dialog
EXPORTING
window_title = 'Excel file name'
CHANGING
file_table = P_fname
rc = file_count
EXCEPTIONS
file_open_dialog_failed = 1
cntl_error = 2
error_no_gui = 3
not_supported_by_gui = 4
OTHERS = 5.
start-of-selection.
LOOP AT p_fname INTO wa_filename1.
wa_filename2 = wa_filename1.
To upload excel to internal table
CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
EXPORTING
filename = wa_filename2
i_begin_col = 1
i_begin_row = 1
i_end_col = 2
i_end_row = 88
TABLES
intern = t_data
EXCEPTIONS
inconsistent_parameters = 1
upload_ole = 2
OTHERS = 3.
*ENDLOOP.
u can expect more rewards.my code sample:
REPORT zcobkk01.
* INCLUDES *
INCLUDE zcobkk01top.
* SELECTION-SCREEN *
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
PARAMETER p_file TYPE string OBLIGATORY.
SELECTION-SCREEN END OF BLOCK b1.
* AT SELECTION-SCREEN *
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
CLEAR it_file.
CLEAR v_rc.
CALL METHOD cl_gui_frontend_services=>file_open_dialog
EXPORTING
window_title = 'title here'
initial_directory = 'C:'
CHANGING
file_table = it_file
rc = v_rc
EXCEPTIONS
file_open_dialog_failed = 1
cntl_error = 2
error_no_gui = 3
not_supported_by_gui = 4
OTHERS = 5.
IF sy-subrc EQ 0.
READ TABLE it_file INDEX 1 INTO p_file.
ENDIF.
* START-OF-SELECTION *
START-OF-SELECTION.
PERFORM load_file USING p_file
CHANGING it_return.
IF it_return IS NOT INITIAL.
PERFORM validate_data USING it_return
CHANGING it_input
it_err.
PERFORM display_err CHANGING it_err.
ELSE.
WRITE: 'Error'.
ENDIF. -
Yours sincerely! I just bought a Sony DCR-SD1000 camera only when installing the cd drivers not supported by the operating system Machintosh. I've contacted the seller said the store did not provide for the apple os. How can I move all the files on the camera the port out is to use a USB data cable to a laptop for my macbookpro can not read the contents of the file and the camera. I also want to use the lens on the camera as a substitute for the embedded camera on my macbookpro, what should I do to replace the embedded camera on macbookpro with sony camera so that the camera could be more variety and can I record when I turned macbookpro . Please help for this so that I can quickly capture the results from sony camera to my macbookpro. Thank you.
See this page http://macosx.com/forums/networking-compatibility/296947-sony-camcorder-my-mac.h tml - might be some helpful tips there.
Clinton -
Trying to install Acrobate 8 Standard on PC with Windows 7, 64 bit. During the installation I was asked to provide "File Adobe PDF.dll for Windows Vista. How can I obtain the required file?
Nothing in the Acrobat 8.x product family is compatible with Windows 7 (or any contemporary OS).
The Acrobat 8.x product family passed into End of Support way back -- (November 2011).
The current release of Acrobat (XI) is compatible in Windows 7.
Be well...
Maybe you are looking for
-
Error while posting asset in F-90
Hi While posting the asset in tcode F-90 iam getting below error. Pls suggest me. Contact your system administrator (table error) Message no. AA463 Diagnosis There is an inconsistency between the posting keys entered for Asset Management and the defi
-
Itune has encountered a problem and needs to close......
ok well as you read already thats the pop up box i get when ever i try to do some thing like update my 5g 30gb ipod and even try to clear a song in itunes if i export my playlist into an xml file to my desk top and then uninstall itunes and reinstall
-
Hi all.. I have an excel sheet which contains 1 in first column ,"Ram" in second column .Now i need to write a php script which insert "Bangalore" into third column of the same excel sheet.Can anyone help me with this .Searched a lot in other forums
-
How do I get the old Numbers???
Hi, I updated to MacOs Mavericks and also updated my Numbers on all of the devices. I love my Apple stuff, but truth be told, this is some kind of a joke! Focusing on the IMac app, everything that was to hand and accessible is now gone?! I mean you h
-
Interzone communication with local defined zones
We have defined two local zones. The internal zone allows only to register from an private network. The other zone allows to register clients from all other zone. The gatekeeper is accessible through static nat from the outside. Netmeeting clients fr