cancel
Showing results for 
Search instead for 
Did you mean: 

error during execution of java script on rev66 on rev60 its ok

Former Member
0 Kudos

i tried to execute a java script *.xsjs

i got  Access denied you do not have the permissions to access this resource

on a rev60 system the script is ok but on rev66 i got this error

in the trace data  dev_webdisp i got the error

*** ERROR => Content filter matched: Permission denied {0002575a} [http_auth.c 680]

Accepted Solutions (0)

Answers (1)

Answers (1)

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

Please provide more details.  Why you say access, do you mean via HTTP?  Is this error: "Access denied you do not have the permissions to access this resource" what you are seeing in the browser?  What are the .xsaccess settings for this package?  What authorization does your user have?

Former Member
0 Kudos

1) Yes access was made over http

2) The error was: Access denied you do not have the permissions to access this resource"

3) Nothing. it seems that the script is running but nothing was happening

4) .xsaccess settings ???? where to look ?

5) all I could imagine ( system ) same authorizations as on the rev60 system

<https://www.facebook.com/ConcatAG> <https://www.xing.com/companies/concatag>

Concat AG

Gottlieb-Daimler-Straße 7

64319 Pfungstadt

www.concat.de

Tel.: +49 6157 919412

Fax: +49 6157 919428

Mobil: +49 172 7081005

joerg.dillenburger@concat.de

Hauptsitz Bensheim a. d. Bergstraße | Vorstand Dexter McGinnis, Olaf von Heyer

Aufsichtsratsvorsitzender Ian Pye | Amtsgericht Darmstadt (HRB 25326)

<http://www.concat.de/loesungsportfolio/cloud-services.html>

HINWEIS: Diese E-Mail ist nur für den Adressaten bestimmt und kann Geschäftsgeheimnisse oder sonstige vertrauliche Informationen enthalten. Sollten Sie diese Nachricht irrtümlich erhalten haben, benachrichtigen Sie bitte sofort den Absender und vernichten Sie diese E-Mail. Es ist streng untersagt, diese Nachricht zu kopieren oder Dritten zugänglich zu machen. Vielen Dank.

NOTICE: This e-mail is intended for the addressee only and may contain business secrets or other confidential information. If you have received this message in error please notify the sender immediately and destroy this e-mail. It is strictly forbidden to copy this e-mail or disclose it to third parties. Thank you.

Von: Thomas Jung

Gesendet: Dienstag, 12. November 2013 15:43

An: Joerg Dillenburger

Betreff: Re: - error during execution of java script on rev66 on rev60 its ok

SAP HANA<http://www.saphana.com/index.jspa>

error during execution of java script on rev66 on rev60 its ok

created by Thomas Jung<http://www.saphana.com/people/I809764> in SAP HANA One Support - View the full discussion<http://www.saphana.com/message/6451#6451>

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

> .xsaccess settings   ???? where to look ?

In the .xsaccess file in your project.  There must be a .xsapp and .xsaccess file somewhere in the package hierarchy in order to expose the xsjs service over http.

Former Member
0 Kudos

The content of the .xsaccess file is

"exposed" : true,
"authentication":
[
{"method" : "Form"}
],
"authorization":
[
"vms.net.yana.dp_model.admin::Admin"
]

The authorization "vms.net.yana.dp_model.admin::Admin", which is mentioned here, is granted to the user by the sql-command
call "_SYS_REPO"."GRANT_APPLICATION_PRIVILEGE"('"vms.net.yana.dp_model.admin::Admin"','<username>')

Former Member
0 Kudos

it is not an authorization problem:

we found out

The procedure "dynamic_table_creation_head" causes a crash of the xs-engine. Due to the crash and the restart, the session becomes invalid and all following requests for "table-refreshs" are refused as unauthorized.
The reason for the xs-engine crash is the "EXEC 'COMMIT'". If one removes the "EXEC 'COMMIT'" from the procedure, it works fine. If one adds an "EXEC 'COMMIT'" to a different procedure, it also crashes the xs-engine.
If one executes the procedure directly in the HANA-Studio, it works fine - it is a xs-engine only problem.