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

Lua Panic on uri.file length > 27 #68

Open
jrandombob opened this issue Oct 19, 2016 · 2 comments
Open

Lua Panic on uri.file length > 27 #68

jrandombob opened this issue Oct 19, 2016 · 2 comments
Labels

Comments

@jrandombob
Copy link

In spite of what the nodemcu doco says, it appears that filenames > 27 characters (not 32) cause file.open to throw a panic.

Utterly knucklehead patch attached;
httpserver.lua.patch.txt

@marcelstoer
Copy link
Contributor

The docs to my knowledge don't say but it's 31 chars, not 32. See nodemcu/nodemcu-firmware#1114 for details.

31 - ".lua".len() = 27?

@jrandombob
Copy link
Author

No, these files didn't have extensions.

The filenames were truncated MD5 hashes under the http/ pseudo directory.

e.g. http/5f4dcc3b5aa765d61d8327 (27 chars) worked but http/5f4dcc3b5aa765d61d8327d (28 chars) caused a panic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants