New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Data loss when processing templates #571
Comments
Here some details The data itself
That is what _fillBufferAndProcessTemplates() returns The 100% is espaced in the template "100%%". In case that matters somehow length=977
This is what it is supposed to return: length=1064
The next call returns the rest of the data and template length=446
|
It would really help to see the actual code you are using to send this especially how the data is declared / defined ...is it just in one big "String" etc? |
I wrote a small test to reproduce this bug output
expected
|
* Added method to access clients of AsyncWebSocket * #571 * Conflict with crypto library
[STALE_SET] This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions. |
I still have the same problem if i try to upload some small file via the AsyncWebServer.
Here my files with problems Uploading a new firmware using Updater.h working fine. There only problems with small textfiles for me. This is my htmlcode for uploading the files:
Im using the last master with the workaround added but without success |
[STALE_CLR] This issue has been removed from the stale queue. Please ensure activity to keep it openin the future. |
[STALE_SET] This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions. |
I think it's still relevant, no? |
[STALE_CLR] This issue has been removed from the stale queue. Please ensure activity to keep it openin the future. |
Looks like my "fix" was merged into the main branch. I guess I had that in my pull request for something else. So far this is working for me, I did not have any issue with templates anymore. |
[STALE_SET] This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions. |
[STALE_DEL] This stale issue has been automatically closed. Thank you for your contributions. |
* Added method to access clients of AsyncWebSocket * me-no-dev#571 * Conflict with crypto library
I encountered an issue when place holders get replaced by a larger chunk of data, some part of the replaced data can be missing.
It occurs inside WebResponses.cpp _fillBufferAndProcessTemplates()
In particular at this section of the code, it seems that "len" isn't updated correctly. Setting len to originalLen fixes the issue, but I do not know if it has any side effects.
The text was updated successfully, but these errors were encountered: