openwrt / packages

Community maintained packages for OpenWrt. Documentation for submitting pull requests is in CONTRIBUTING.md
GNU General Public License v2.0
4.02k stars 3.49k forks source link

cgi-io: Reading part data, byte offset 199489, the value exceeds the maximum allow size. #25276

Open peterwillcn opened 1 week ago

peterwillcn commented 1 week ago
for e in fs.dir("/etc/test") do
     glist = m:field(TextValue, e, e, nil)
     glist.rmempty = false
     glist.rows = 12

     function glist.cfgvalue()
        return nixio.fs.readfile("/etc/test/" .. e) or ""
     end
     function glist.write(self, section, value)
        sync_value_to_file(value, "/etc/test/" .. e)
     end
 end

At reading part data, byte offset 199489, the value exceeds the maximum allow size

In mimedecode_message_body(), file /usr/share/ucode/luci/http.uc, line 112, byte 11:
  called from function parse_message_body (/usr/share/ucode/luci/http.uc:180:51)
  called from function [anonymous function] (/usr/share/ucode/luci/http.uc:450:3)
  called from function [anonymous function] (/usr/share/ucode/luci/http.uc:374:22)
  called from function require_post_security (/usr/share/ucode/luci/dispatcher.uc:680:47)
  called from function [anonymous function] (/usr/share/ucode/luci/dispatcher.uc:1000:35)
  called from anonymous function (/www/cgi-bin/luci:39:13)
brada4 commented 1 week ago

How did you get there?