marxjohnson / btsyncindicator

Bittorrent Sync indicator for linux desktops
GNU Lesser General Public License v3.0
41 stars 5 forks source link

Password parsing #33

Closed rnd42 closed 10 years ago

rnd42 commented 10 years ago

First off thank you for making btsyncindicator, it is a nice tool. I just discovered that the reason I was getting folder statistics on one computer and no statistics and a "!" in the icon was because my password contained a "#" character. After replacing this character in my password and restarting both btsync and btsyncindicator I got the normal statistics. This probably indicates that the password (and perhaps other config values) isn't being parsed out in a reliable manner.

marxjohnson commented 10 years ago

Thanks for identifying this issue, I'll try and take a look at it over the next couple of weeks.

tuxpoldo commented 10 years ago

There must be still also other things broken. If I set a password, it dies not work at all. But at least it shows some errors...

leo@ubupoldo:~$ btsync start
leo@ubupoldo:~$ BitTorrent Sync forked to background. pid = 10220
Traceback (most recent call last):
  File "/usr/lib/btsync-user/btsyncindicator.py", line 221, in setup_session
    self.token = r.group(1)
AttributeError: 'NoneType' object has no attribute 'group'

Here the config file:


        "device_name" : "ubupoldo - leo",
        "pid_file" : "/home/leo/.config/btsync/btsync.pid",
        "storage_path" : "/home/leo/.btsync",
        "listening_port" : 0,
        "check_for_updates" : false,
        "use_upnp" : true,
        "download_limit" : 0,
        "upload_limit" : 0,
        "webui" :
        {
                "listen" : "127.0.0.1:9999",
                "login" : "admin",
                "password" : "password"
        }
}
tuxpoldo commented 10 years ago

OK - found the problem. Pull request follows...

tuxpoldo commented 10 years ago

@rnd42: Can you please check if this is now working as you want and close the issue?

rnd42 commented 10 years ago

Ok, I tried it out and it's working great. Thanks!