Ashutosh Singh created OLINGO-766:
-------------------------------------

             Summary: JPA Processor linkage issue
                 Key: OLINGO-766
                 URL: https://issues.apache.org/jira/browse/OLINGO-766
             Project: Olingo
          Issue Type: Bug
          Components: odata2-jpa
            Reporter: Ashutosh Singh


I am using Olingo JPA processor and facing an issue. 
We have APIProxy  as a main entity which has ConditionalFlow as entity within 
APIProxyEndPoint entity. I have linked a step(Policy1) entity to a 
conditionalFlow (Resource1) entity but did not link any step to other 
conditionalFlow (Resource2) entity.
But JPA processor is creating the linkage of Policy1 to Resource2 as well which 
should not happen.{APIPortalManagementServiceProcessor}

Request :
{
    "conditionalFlows": [
        {
            "name": "Resource1",
            "conditions": "(proxy.pathsuffix MatchesPath \"/Resource1\" OR 
proxy.pathsuffix MatchesPath \"/Resource1/**\" OR proxy.pathsuffix MatchesPath 
\"/Resource1(**\")AND(request.verb = \"DELETE\" OR request.verb = \"POST\" OR 
request.verb = \"PUT\" OR request.verb = \"GET\")",
            "readOnly": true,
            "sequence": 1,
            "request": {
                "steps": [
                    {
                        "condition": "",
                        "policy_name": "Policy1",
                        "sequence": 1
                    }
                ]
            }
        },
        {
            "name": "Resource2",
            "conditions": "(proxy.pathsuffix MatchesPath \"/Resource2\" OR 
proxy.pathsuffix MatchesPath \"/Resource2/**\" OR proxy.pathsuffix MatchesPath 
\"/Resource2(**\")AND(request.verb = \"DELETE\" OR request.verb = \"POST\" OR 
request.verb = \"PUT\" OR request.verb = \"GET\")",
            "readOnly": true,
            "sequence": 2
        }
    ]
}






--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to