Opened 14 years ago

Closed 14 years ago

#1567 closed Bug (fixed)

Web interface uses wrong boolean type in JSON messages

Reported by: KyleK Owned by: charles
Priority: Normal Milestone: 1.41
Component: Web Client Version: 1.40
Severity: Normal Keywords:


The web interface uses the boolean values "true" and "false" in its JSON commands, but the server won't understand these correctly, as C doesn't have a real boolean type. As a result, preferences are not properly transmitted.

  1. Open preferences
  2. Click 'Save' without having changed anything
  3. Open preferences again
  4. The boxes for "encryption" and speed limits have reversed.

The web interface must send the numerical value 1 for 'true' and 0 for 'false'.

Attachments (1)

boolean_json.patch (1.6 KB) - added by KyleK 14 years ago.

Download all attachments as: .zip

Change History (4)

comment:1 Changed 14 years ago by KyleK

Ignore the "encryption" bit in my previous post. That preference isn't boolean.

Changed 14 years ago by KyleK

comment:2 Changed 14 years ago by charles

  • Milestone changed from None Set to 1.41
  • Owner changed from Gimp to charles
  • Status changed from new to assigned

comment:3 Changed 14 years ago by charles

  • Resolution set to fixed
  • Status changed from assigned to closed

fix committed to trunk in r7299.

fix committed to 1.4x branch in r7300.

Note: See TracTickets for help on using tickets.