Skip to Content
author's profile photo Former Member
Former Member

Update,Create and Delete with ODATA service result in 403 Forbidden Error

Hi,

I have a Hana XS Engine with an odata service. The service allows me to read the data of my tables. As soon as I want to Create, Update or Delete an entry I get the 403 - Forbidden error Page returned.

My user actually has the required rights to execute one of these actions (it works in Hana Studio with the sql command line), but I additionally tested it with the system user and got the same result.

Is this a known issue or is there a solution to my problem?

Thank you in advance!

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Posted on Sep 01, 2015 at 02:09 PM

    I suggest you activate trace for this service and see what is being logged. It will show you the user running the request and generated SQL. Perhaps you have a technical user running this service. You also haven't posted your XSODATA definition. Are the entities directly against tables or views? Create/Update/Delete against views only work with implemented exits otherwise they return forbidden.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 02, 2015 at 02:29 PM

    I got it to work now. My mistake was that I only allowed the GET method (in the xsaccess).

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 05, 2015 at 09:55 AM

    Hi Yannick,

    Even i'm facing the same issue. I have updated my xsaccess file too.

    {
        "exposed": true,
        "authentication": [{
            "method": "Basic"
        }],
        "default_file": "index.html",
          "cors" : { "enabled" : true, "allowMethod":["GET","POST","HEAD","DELETE","OPTIONS"]}  
    }
    

    Could you please explain how you resolved the issue..?

    Regards,

    ThamizharasaN.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.