cancel
Showing results for 
Search instead for 
Did you mean: 

List contents of a directory of the J2EE engine

former_member196418
Participant
0 Kudos

Hello,

I have a requirement to list the contents of a directory of the J2EE engine of the portal. For example let's assume that there are five files in directory /user/sap/<SID>/JC02/j2ee/cluster/server0/some_directory_name. I want to be able to list the names of the five files that are stored in this directory. I have written some java code that will list the entries in a given directory and that is not the problem. The problem is that when I run this on the portal j2ee I get the message back: "You are not authorized to view the content of the requested directory. Details: Directory listing is not allowed on this server".

I know I could store these files in KM and it would be very simple to do this but due to security concerns I am told by the project management here that KM is not an option for this application.

Any suggestions or help would be greatly appreciated.

Thanks,

Bert

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Are you testing this application which has super admin rigths?

You can integrate this file system in KM and write a simple java webdynpro code with KM apis which would display the file name. I dont think there could be security problem with this option.

Regards,

Jigar Oza