seatable-api-python icon indicating copy to clipboard operation
seatable-api-python copied to clipboard

table names 4 characters long are erroneously parsed as table ids

Open jefferis opened this issue 2 years ago • 2 comments

2.6.3 has introduced a bug that causes table names that match the regular expression r'^[-0-9a-zA-Z]{4}$' in the new like_table_id() function to be parsed as ids rather than tables, which in turns leads to list_rows giving errors about not finding the requested table.

cc @schlegelp who may be able to give a full example.

jefferis avatar Jan 16 '23 13:01 jefferis

You may re-test it with version 3.4 server after it is released. In version 3.4, the server will use the parameter both as table_id and table_name to find a table.

freeplant avatar Jan 17 '23 02:01 freeplant

I see. Would you be open to a PR that changes the behaviour to only use like_table_id if the server is version 3.4.0 or higher?

schlegelp avatar Jan 17 '23 09:01 schlegelp