You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@olingo.apache.org by "Naman Jain (JIRA)" <ji...@apache.org> on 2019/02/21 04:28:00 UTC
[jira] [Created] (OLINGO-1341) Bad Request returned when value of
String type Key is empty string
Naman Jain created OLINGO-1341:
----------------------------------
Summary: Bad Request returned when value of String type Key is empty string
Key: OLINGO-1341
URL: https://issues.apache.org/jira/browse/OLINGO-1341
Project: Olingo
Issue Type: Bug
Affects Versions: V2 2.0.11
Reporter: Naman Jain
I'm using MS SQL database.
In one of the tables it has a key column of type *varchar(5).* Empty Strings are valid values for such a type of column. Let's say the name of this column is *Unit.*
When I want to access a particular entry through olingo I do something like
[http://localhost:8080/servletDest/MyODataDest.svc/Table2(Charid=3,Chaid=1,Kid=1,Mdt='000',Objid=2,Statnr=0,Symbolid=1,Unit='')|http://localhost:8080/commCFGDest/MyODataDest.svc/CommCfgclvals(Charid=3,Charkbid=1,Kbid=1,Mandt='000',Objid=2,Statnr=0,Symbolid=1,Unit='')]
As you can see I pass an empty string for Unit.
It returns me a bad request error (400)
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)