Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#1517 closed defect (fixed)

Returns Malformed JSON

Reported by: lazygravy Owned by: tuna
Priority: minor Milestone: 0.9.19
Component: apps/plugins Version: 0.9.18
Keywords: I2PControl Cc: hottuna
Parent Tickets: Sensitive: no

Description

I2PControl returns malformed JSON with the method NetworkSetting?, parameter i2p.router.net.ssu.detectedip.

For example (xx's are censored, but contain correct information):

lazygravy@i2p:~/test$ curl -k --data-binary '{"params": \
{"Token": "xx","i2p.router.net.ssu.detectedip": null}, \
"jsonrpc": "2.0", "method": "NetworkSetting", "id": "x"}' https://127.0.0.1:7650/
{"id":"xx","result":{"i2p.router.net.ssu.detectedip":[RouterAddress: 
        Type: SSU
        Cost: 6
        Options (4):
                [caps] = [xx]
                [host] = [xx]
                [key] = [xx]
                [port] = [xx]],"SettingsSaved":false,"RestartNeeded":false},"jsonrpc":"2.0"}

Subtickets

Change History (4)

comment:1 Changed 5 years ago by zzz

Owner: set to tuna
Status: newassigned

comment:2 Changed 5 years ago by tuna

Milestone: undecided0.9.19
Resolution: fixed
Status: assignedclosed

i2p.router.net.ssu.detectedip changed to return byte[] of ip address.

comment:3 Changed 5 years ago by zzz

Not yet seen in kytv's mtn

Also:

mtn head

mtn: branch 'i2p.plugins.i2pcontrol' is currently unmerged:
07e6170989c18bbe37502d87da185526159caad4 dev@xxx 04/02/2015 04:42:00 PM
788244417dd79a3834b0e08941161ea6cb2af0b8 zzz@xxx 10/24/2014 02:46:56 PM

Last edited 5 years ago by zzz (previous) (diff)

comment:4 Changed 5 years ago by tuna

Just pushed onto echelons clearnet repo.

Note: See TracTickets for help on using tickets.