You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@olingo.apache.org by "Christian Holzer (JIRA)" <ji...@apache.org> on 2015/10/06 16:40:26 UTC

[jira] [Updated] (OLINGO-792) Improve URI parser error messages

     [ https://issues.apache.org/jira/browse/OLINGO-792?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Christian Holzer updated OLINGO-792:
------------------------------------
    Description: 
Assume "Employees" is an entity set, "my.namespace" is the service namespace and there is not Entity Type "my.namespace.Manager"

By calling the following URI:
http://myhost/myservice.svc/Employees/my.namespace.Manager

the parser return the following message: 
"Function parameters expected for type 'my.namespace.Employees'."

Obviously the paser assumes that my.namespace.Manager is a bound function. 

Issues:
1.) The message addresses the wrong resource path
2.) Syntactically the mentioned URI is more likely a type cast than a bound function.

  was:
Assume "Employees" is an entity set, "my.namespace" is the service namespace and there is not Entity Type "my.namespace.Manager"

By calling the following URI:
http://myhost/myservice.svc/Employees/my.namespace.Manager

the parser return the following message: 
"Function parameters expected for type 'my.namespace.Employee'."

Obviously the paser assumes that my.namespace.Manager is a bound function. 

Issues:
1.) The message addresses the wrong resource path
2.) Syntactically the mentioned URI is more likely a type cast than a bound function.


> Improve URI parser error messages
> ---------------------------------
>
>                 Key: OLINGO-792
>                 URL: https://issues.apache.org/jira/browse/OLINGO-792
>             Project: Olingo
>          Issue Type: Improvement
>    Affects Versions: (Java) V4 4.1.0
>            Reporter: Christian Holzer
>            Assignee: Christian Holzer
>            Priority: Minor
>             Fix For: (Java) V4 4.1.0
>
>
> Assume "Employees" is an entity set, "my.namespace" is the service namespace and there is not Entity Type "my.namespace.Manager"
> By calling the following URI:
> http://myhost/myservice.svc/Employees/my.namespace.Manager
> the parser return the following message: 
> "Function parameters expected for type 'my.namespace.Employees'."
> Obviously the paser assumes that my.namespace.Manager is a bound function. 
> Issues:
> 1.) The message addresses the wrong resource path
> 2.) Syntactically the mentioned URI is more likely a type cast than a bound function.



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