-
Notifications
You must be signed in to change notification settings - Fork 275
Commit 1f5b34d
Fix two small bugs with the RestAPI Datasource
First bug:
Spring automatically transforms binary content to base64, therefore the
logic in the RestApiExecutor was causing the data to be encoded twice,
causing much confusion and frustration for several weeks actually.
Second bug:
the fileUtils#saveDataAsFile function was not actually setting the type
correctly when attempting to convert the base64 data to a binary blob,
thus the files would _always_ download as a 'dms' file and it would
never actually be openable. This also caused a lot of confusion. Both of
these bugs together made it impossible to tell why stuff was broken.
Combined this means that anytime you were trying to download binary data
you would never actually be able to open the file, as it would be only
base64 data inside of it.1 parent 42be426 commit 1f5b34d
File tree
2 files changed
+2
-2
lines changed- client/packages/lowcoder/src/util
- server/api-service/lowcoder-plugins/restApiPlugin/src/main/java/org/lowcoder/plugin/restapi
2 files changed
+2
-2
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
48 | 48 |
| |
49 | 49 |
| |
50 | 50 |
| |
51 | - | ||
51 | + | ||
52 | 52 |
| |
53 | 53 |
| |
54 | 54 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
426 | 426 |
| |
427 | 427 |
| |
428 | 428 |
| |
429 | - | ||
429 | + | ||
430 | 430 |
| |
431 | 431 |
| |
432 | 432 |
| |
|
0 commit comments