-
Notifications
You must be signed in to change notification settings - Fork 55
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
I believe with the introduction of external data sources PR DELETE requests using the Literest endpoint is broken.
Following error output is observed
HTTP/1.1 500 Internal Server Error
Transfer-Encoding: chunked
Content-Type: application/json
Content-Encoding: gzip
{
"error": "SQL_PARSE_ERROR: SQL string could not be parsed: syntax error around L1:21: `.1`"
}
I believe this is down to the path parsing here, when a pk path parameter is provided it treats it as schema being provided.
To Reproduce
- Create a simple users table
create table users (id integer primary key, name text) - Insert a single row
insert into users (name) values ('Jay Jamieson') - Run the following DELETE request from documentation
curl --location --request DELETE 'http://127.0.0.1:8787/rest/users/1' \
--header 'Authorization: Bearer ABC123'Expected behavior
Resource is deleted by provided resource PK ID per the current documentation.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working