Bug 11866 - Diagnostics HTTP port display
: Diagnostics HTTP port display
Status: RESOLVED FIXED
Product: SqueezePlay
Classification: Unclassified
Component: Diagnostics
: unspecified
: PC Windows XP
: P3 normal (vote)
: 7.5.1
Assigned To: Michael Herger
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-04-20 20:26 UTC by Jim McAtee
Modified: 2010-09-13 12:01 UTC (History)
3 users (show)

See Also:
Category: ---


Attachments
change port 9000 to whatever actually is being used (1.56 KB, patch)
2010-03-26 07:43 UTC, Michael Herger
Details | Diff
change port 9000 to whatever actually is being used (1.57 KB, patch)
2010-03-26 07:48 UTC, Michael Herger
Details | Diff
UNTESTED patch to allow for multiple args to the self:string() in setValue() (1.97 KB, patch)
2010-03-26 10:04 UTC, Ben Klaas
Details | Diff
UNTESTED patch (v2) to allow for multiple args to the self:string() in setValue() (2.43 KB, patch)
2010-03-26 10:07 UTC, Ben Klaas
Details | Diff
working patch using Ben's approach (3.58 KB, patch)
2010-03-30 06:45 UTC, Michael Herger
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jim McAtee 2009-04-20 20:26:36 UTC
I have SqueezeCenter running on HTTP port 80 by virtue of the --httpport command line option.  Shouldn't the Diagnostics screen reflect this, instead of displaying 'TCCP port 9000: Can't connect'?
Comment 1 Michael Herger 2009-04-21 23:54:00 UTC
Good point - need to fix this in the control panel applets too.
Comment 2 Michael Herger 2009-04-22 00:26:31 UTC
Change 26170 - read httpport from SC's configuration in the control  
panel's diagnostics
Comment 3 Jim McAtee 2009-05-02 00:27:31 UTC
I'm still seeing the same thing in the Diagnostics screen.
Comment 4 Michael Herger 2009-05-04 00:14:03 UTC
In which diagnostics screen? I only fixed it in the Windows control panel, but not on the device menu. That would rather be a Ben or Richard job.
Comment 5 Jim McAtee 2009-05-04 00:20:02 UTC
Windows control panel?  Sorry, I'm not familiar with that at all.  I was talking about on the device.
Comment 6 Michael Herger 2009-05-04 00:36:18 UTC
Thanks Jim. Correct, the device menu hasn't been changed yet. That's why I left the bug open after I've fixed the control panel. It's started from the tray icon (if running the Windows binary) or "perl cleanup.pl".

Ben/Richard - may I hand this over to you?
Comment 7 Ben Klaas 2009-08-26 07:52:35 UTC
this is an administrative shuffle on priority fields to help make better judgment on the top end of the priority list. P4->P5, P3->P4, and P2->P3.
Comment 8 Chris Owens 2010-03-15 18:05:19 UTC
7.4.x milestone is in the past
Comment 9 Michael Herger 2010-03-26 07:42:14 UTC
A diagnose screen should return correct results or it's useless. Let's fix this.
Comment 10 Michael Herger 2010-03-26 07:43:21 UTC
Created attachment 6709 [details]
change port 9000 to whatever actually is being used
Comment 11 Michael Herger 2010-03-26 07:48:49 UTC
Created attachment 6710 [details]
change port 9000 to whatever actually is being used
Comment 12 Ben Klaas 2010-03-26 10:04:01 UTC
Created attachment 6711 [details]
UNTESTED patch to allow for multiple args to the self:string() in setValue()

Michael, give this one a try. This uses the "..." magic to pass optional n values between a few methods, then in setValue() it brings ... into a table, tests for that table having size, and then pre-inserts the ... to self:string() method.

Can you give this a shot and let me know how it goes?
Comment 13 Ben Klaas 2010-03-26 10:07:32 UTC
Created attachment 6712 [details]
UNTESTED patch (v2) to allow for multiple args to the self:string() in setValue()

slight tweak to previous patch. add SC_WEB_PORT to tests table, make sure that we do something sane with that item when connected to mysb.com
Comment 14 Michael Herger 2010-03-30 06:45:48 UTC
Created attachment 6724 [details]
working patch using Ben's approach

Ben - using ... somehow didn't work. I decided to go with one additional, optional "arg" parameter, which now is working.
Comment 15 Ben Klaas 2010-04-05 07:28:09 UTC
at some point we should figure out why the ... didn't work. There's no reason that it shouldn't have worked there, and by not using it you limit yourself from n optional args to 1 arg
Comment 16 Michael Herger 2010-04-05 21:00:52 UTC
The most important part might be that we're using a closure, which is a different context for ... Maybe with some proper placing of the ... you'll be able to make it work too.
Comment 17 Chris Owens 2010-04-07 18:06:52 UTC
Targeting for 7.5.1 at Ben's suggestion that all patch_waiting bugs be fixed
Comment 18 SVN Bot 2010-04-07 22:46:42 UTC
 == Auto-comment from SVN commit #8680 to the jive repo by mherger ==
 == http://svn.slimdevices.com/jive?view=revision&revision=8680 ==

Fixed Bug: 11866
Description: display/test actual SBS http port instead of hard-coded value 9000
Comment 19 Chris Owens 2010-09-13 12:01:49 UTC
Since these are fixed, they must not be patch_waiting after all