Ticket #1228 (closed bug: fixed)

Opened 7 months ago

Last modified 7 months ago

3G webinterface page is broken in 2.3.7.0 rc1

Reported by: matthijs Owned by:
Priority: normal Milestone: Firmware 2.3.7.0
Component: fon-network-3g Version: 2.3.7.0 rc1
Severity: minor
Cc: christer.ekebom@…, ob2aryadi@… Hardware: both

Description

On the blog, two users report the 3g page gives a backtrace:


?:0: attempt to compare two table values
stack traceback:
?: in function
[C]: in function ’sort’
?: in function
(tail call): ?
?: in main chunk
?: in function ‘load’
?: in function
?: in function ‘dispatch’
?: in function

 http://blog.fonosfera.org/2370-release-candidate-released/#comment-206477

 http://blog.fonosfera.org/2370-release-candidate-released/#comment-206839

Attachments

auth.lua Download (3.5 KB) - added by matthijs 7 months ago.
Fixed auth.lua
main.lua Download (8.0 KB) - added by matthijs 7 months ago.
Fixed main.lua

Change History

Changed 7 months ago by matthijs

Fixed auth.lua

Changed 7 months ago by matthijs

Fixed main.lua

Changed 7 months ago by matthijs

  • hardware changed from unknown to both
  • status changed from new to testing-fix
  • severity changed from unknown to minor

Turns out the 3G code was using the same country list as the wifi code, which got changed in r2169. I've attached a fixed version of two of the 3G files involved.

To install the fix, run the following two commands:

root@Fonera:~# wget -O /usr/lib/lua/luci/model/cbi/fon_umts/auth.lua http://trac.fonosfera.org/fon-ng/raw-attachment/ticket/1228/auth.lua 
root@Fonera:~# wget -O /usr/lib/lua/luci/model/cbi/fon_umts/main.lua http://trac.fonosfera.org/fon-ng/raw-attachment/ticket/1228/main.lua

Could you please test if this indeed fixes the problem for you?

Changed 7 months ago by anonymous

I cannot test it because the files (auth.lua and main.lua) will not run as such. My La Fonera 2.0n says "invalid image". Do I do something wrong? Tried to run them as firmware update and settings update. Is there anoyther way to do the run?

christer.ekebom@…

Changed 7 months ago by matthijs

Uhm, you should run the commands I showed in my previous command, through an SSH connection. See reportbugs for more info running commands on your Fonera.

Changed 7 months ago by anonymous

Tnx! I'll try that! :-)

Christer

Changed 7 months ago by matthijs

  • status changed from testing-fix to closed
  • resolution set to fixed

(In [2215]) Update 3G code to use new country list.

In r2169, the format of the list of countries in /etc/3166en.db.lua was changed to also store wifi regdomains. It turns out that the 3G code also uses this list, but since it still expected the old format, breaking the 3G settings page.

This commit updates the 3G code to also use the new format, fixing the 3G settings page.

Closes: #1228

Add/Change #1228 (3G webinterface page is broken in 2.3.7.0 rc1)

Author


E-mail address and user name can be saved in the Preferences.


Action
as closed
 
Note: See TracTickets for help on using tickets.