Skip to content
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

Fix Basic_IFS sample and TemplateStream #2324

Merged
merged 4 commits into from
May 1, 2021

Conversation

mikee47
Copy link
Contributor

@mikee47 mikee47 commented Apr 30, 2021

Tests with stupidly large directory listings revealed a couple of bugs in the TemplateStream code. Attempting to generate a large (1MB) JSON listing showed as corrupted in the browser, and there were a few incorrect tags which this PR fixes.

The Basic_IFS sample also no longer builds correctly for ESP32 since adding a LittleFS partition, so hardware configurations are now specialised for each arch.

@mikee47 mikee47 force-pushed the fix/basicifs-templatestream branch from 66e6474 to c73dbb6 Compare April 30, 2021 19:31
Tested against large (1MB) JSON listing generated from templates, issues arising.

Need to check for remaining plain data before continuing with next tag search
Move check for missing end tag after `evaluate`
Verified that debug statements #1, #3 and #4 are triggered by the test.
Use smaller read buffers for testing to stress code more
@mikee47 mikee47 force-pushed the fix/basicifs-templatestream branch from c73dbb6 to 32cbfda Compare May 1, 2021 06:22
@slaff slaff added this to the 4.3.1 milestone May 1, 2021
@slaff slaff merged commit b879d29 into SmingHub:develop May 1, 2021
@slaff slaff mentioned this pull request May 5, 2021
5 tasks
@mikee47 mikee47 deleted the fix/basicifs-templatestream branch July 9, 2021 05:10
slaff pushed a commit that referenced this pull request Sep 27, 2021
* Use per-arch hardware configs, and reduce ESP32 app. partition size

* Fix bug in ReadWriteStream::copyFrom()

* Fix TemplateStream

Tested against large (1MB) JSON listing generated from templates, issues arising.

Need to check for remaining plain data before continuing with next tag search
Move check for missing end tag after `evaluate`

* Add test for fragmented read of variable values

Verified that debug statements #1, #3 and #4 are triggered by the test.
Use smaller read buffers for testing to stress code more
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants