Quantcast
Channel: SCN : Discussion List - SAP HANA Cloud Platform Developer Center
Viewing all articles
Browse latest Browse all 3131

Exposing xsodata issue on HCP(not a trial)

$
0
0

Hello experts,

 

I am trying to build a test xs applicaion on HCP(hana.ondemand.com, not a trial, this issue is no problem on hanatrial.ondemand.com) and there is some problem about retrieving odata from a attribute view as public.

 

When I try to access odata's entry set by below url, it works.

1.jpg

 

but when I try to access odata's entry data by below url, it does not work.

2.jpg

 

 

but If I login to Web-based Development Workbench at least one time by HANA Login page as below, it works.

3.jpg

4.jpg

 


So I changed some files like below, but it still does not work without SAP HANA authentication.

 

//.xsaccess
{
"anonymous_connection": "KRHCP::annouser",
"authentication" : null,
"exposed": true
}

 

//annouser.xssqlcc
{
"description" : "Anon SQL connection"

}

 

//person.hdbrole
role KRHCP.roles::myrole
{

sql object KRHCP.data::person.person: SELECT, INSERT, UPDATE, DELETE;

sql object KRHCP.iview::AT_PERSON: SELECT;

application privilege: KRHCP::Basic;

package KRHCP.iview: REPO.READ, REPO.READ, REPO.EDIT_NATIVE_OBJECTS, REPO.ACTIVATE_NATIVE_OBJECTS;

}

 

//execution query for grant-role
call "_SYS_REPO"."GRANT_ACTIVATED_ROLE"('KRHCP.roles::myrole', 'hcmuser')

 


Please help me.
I want to expose xsodata's data by url without SAP HANA authentication as public.

 

 

Regards,
Insung Lee.


Viewing all articles
Browse latest Browse all 3131

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>