Skip to main content

OCAP: File Permission;

6 replies [Last post]
chetanharsh
Offline
Joined: 2008-07-24
Points: 0

Hi,

I'm trying to download a file from a server; which is successful. However, i'm not able to save it as it says that i dont permission to write a file.
My .perm looks like:

<?xml version="1.0" ?>

47.152.236.199
47.152.227.11

I guess i need to add something here for file permissions; however i'm aware of the syntax.
Kindly help.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
anujverma000
Offline
Joined: 2007-07-30
Points: 0

I am trying to read a image from the network. But I am facing the AccessDenied exception while reading even.
My .perm file looks like this:
------------------------------------------------------------------------------------------------------------------------

"-//OCAP//DTD Permission Request File 1.0//EN"
"http://www.cablelabs.com/ocap/dtd/permissionrequestfile-1-0.dtd">


10.76.122.2

------------------------------------------------------------------------------------------------------------------------

Can you please let me know how u read.
Thanks in advance.

krishnaveni17
Offline
Joined: 2008-09-24
Points: 0

Hi ,
did you check whether your application is reading your permission file?

I see your appID is having 5 digits. but i think appID should be the last four digits of your application identifier.
i.e if your appidentifier is 0x000000015460 , then the orgID = 0x00000001 and appID would be 0x5460. So check your appid value once?

also to make sure instead of giving ,
give ipaddress

Let me know how it goes.

thanks,
krishnaveni.

anujverma000
Offline
Joined: 2007-07-30
Points: 0

Thanks for your kind help.
I have made those changes but still the same problem is there.AccessDenied Exception.

Is there any way(through java coding) we can know what permission we are getting througn .perm file

dirkse
Offline
Joined: 2003-09-09
Points: 0

You can check whether your permission is being granted or not, but not that it is specifically being granted through the PRF (that I know of)...however, you know that your permission is being denied, so chances are good that you have a problem with your PRF.

Some questions: 1) what is the name of your PRF and where is it located in relation to your main Xlet class? and
2) are you signaling your app with the same app and org id that you specify in the PRF?

Also, are you using a development environment or running this on a STB?

anujverma000
Offline
Joined: 2007-07-30
Points: 0

1. My PRF name is ocap..perm
2. It is located in the same directory in which the Xlet class is.
3. I am using Vidiom simulator.

chetanharsh
Offline
Joined: 2008-07-24
Points: 0

Typo [last line] - "I'm NOT aware of the syntax".
Any help will be appreciated.
Thanks.