[Bug 43463] New: Add sip port to system information page
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43463 Bug ID: 43463 Summary: Add sip port to system information page Initiative type: --- Sponsorship --- status: Product: Koha Version: unspecified Hardware: All OS: All Status: NEW Severity: enhancement Priority: P5 - low Component: Architecture, internals, and plumbing Assignee: koha-bugs@lists.koha-community.org Reporter: lisette@bywatersolutions.com QA Contact: testopia@bugs.koha-community.org Target Milestone: --- Reading the sip config to output the port can be helpful, for example when confirming to a vendor the sip port. -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43463 Elise Konya <elise.konya@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |elise.konya@bywatersolution | |s.com -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43463 Danielle M. <dmeininger591@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dmeininger591@gmail.com -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43463 Laura Escamilla <Laura.escamilla@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED CC| |Laura.escamilla@bywatersolu | |tions.com Assignee|koha-bugs@lists.koha-commun |Laura.escamilla@bywatersolu |ity.org |tions.com -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43463 Laura Escamilla <Laura.escamilla@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |Needs Signoff -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43463 --- Comment #1 from Laura Escamilla <Laura.escamilla@bywatersolutions.com> --- Created attachment 207440 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=207440&action=edit Bug 43463: Display SIP2 listener ports in system information **Test plan:** 1. Apply the patch. 2. Ensure SIP2 is configured with at least one listener in `SIPconfig.xml`. 3. Navigate to **About Koha → System information** in the staff interface. 4. Confirm that the **SIP2 configuration** section appears. 5. Verify that all configured SIP2 listener ports and their corresponding transport types are displayed correctly. 6. Confirm that the displayed values match those in `SIPconfig.xml`. 7. Confirm that the existing System information warnings continue to display correctly. 8. Sign off and have a great day :) -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43463 Andrew Fuerste-Henry <andrew@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |andrew@bywatersolutions.com -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43463 Andrew Fuerste-Henry <andrew@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |37248 Target Milestone|--- |26.11 Keywords| |rel_26_11_candidate Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37248 [Bug 37248] [Omnibus] Power to the user -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43463 Andrew Fuerste-Henry <andrew@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Signed Off -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43463 Andrew Fuerste-Henry <andrew@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #207440|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43463 --- Comment #2 from Andrew Fuerste-Henry <andrew@bywatersolutions.com> --- Created attachment 207477 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=207477&action=edit Bug 43463: Display SIP2 listener ports in system information **Test plan:** 1. Apply the patch. 2. Ensure SIP2 is configured with at least one listener in `SIPconfig.xml`. 3. Navigate to **About Koha → System information** in the staff interface. 4. Confirm that the **SIP2 configuration** section appears. 5. Verify that all configured SIP2 listener ports and their corresponding transport types are displayed correctly. 6. Confirm that the displayed values match those in `SIPconfig.xml`. 7. Confirm that the existing System information warnings continue to display correctly. 8. Sign off and have a great day :) Signed-off-by: Rae Schumann <rschumann@utah.gov> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43463 Lucas Gass (lukeg) <lucas@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dcook@prosentient.com.au, | |lucas@bywatersolutions.com -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43463 David Cook <dcook@prosentient.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://bugs.koha-community | |.org/bugzilla3/show_bug.cgi | |?id=7170 Status|Signed Off |Failed QA --- Comment #3 from David Cook <dcook@prosentient.com.au> --- It sounds like a useful change, but failing because it uses XML::Simple. I realise that the removal/prevention of XML::Simple is old institutional/community knowledge at this point. I'll look at getting that added to the coding guidelines. See bug 7170 for more info, especially that latest few comments. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43463 Kyle M Hall (khall) <kyle@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Failed QA |Signed Off -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43463 Kyle M Hall (khall) <kyle@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #207477|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43463 --- Comment #4 from Kyle M Hall (khall) <kyle@bywatersolutions.com> --- Created attachment 207888 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=207888&action=edit Bug 43463: Display SIP2 listener ports in system information **Test plan:** 1. Apply the patch. 2. Ensure SIP2 is configured with at least one listener in `SIPconfig.xml`. 3. Navigate to **About Koha → System information** in the staff interface. 4. Confirm that the **SIP2 configuration** section appears. 5. Verify that all configured SIP2 listener ports and their corresponding transport types are displayed correctly. 6. Confirm that the displayed values match those in `SIPconfig.xml`. 7. Confirm that the existing System information warnings continue to display correctly. 8. Sign off and have a great day :) Signed-off-by: Rae Schumann <rschumann@utah.gov> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43463 --- Comment #5 from Kyle M Hall (khall) <kyle@bywatersolutions.com> --- Created attachment 207889 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=207889&action=edit Bug 43463: (QA follow-up) Use XML::LibXML instead of XML::Simple Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43463 --- Comment #6 from Kyle M Hall (khall) <kyle@bywatersolutions.com> --- Created attachment 207890 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=207890&action=edit Bug 43463: (QA follow-up) Regex should handle port with no tcp suffix Previous regex could handle "127.0.0.1:8023/tcp/IPv4" but not "127.0.0.1:8023" Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43463 Kyle M Hall (khall) <kyle@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kyle@bywatersolutions.com Attachment #207890|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43463 --- Comment #7 from David Cook <dcook@prosentient.com.au> --- Comment on attachment 207888 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=207888 Bug 43463: Display SIP2 listener ports in system information Review of attachment 207888: --> (https://bugs.koha-community.org/bugzilla3/page.cgi?id=splinter.html&bug=43463&attachment=207888) ----------------------------------------------------------------- ::: about.pl @@ +201,5 @@
+ if ( my $koha_conf = $ENV{KOHA_CONF} ) { + my $sip_config_file = File::Spec->catfile( + dirname($koha_conf), + 'SIPconfig.xml' + );
So I don't think this is a blocker, but it would be nice to use Koha::Config->guess_koha_conf() instead of $ENV{KOHA_CONF} here. At some point, we should have a Koha::Config->conf_dir() method... -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43463 David Cook <dcook@prosentient.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://bugs.koha-community | |.org/bugzilla3/show_bug.cgi | |?id=43802 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43463 --- Comment #8 from David Cook <dcook@prosentient.com.au> --- (In reply to Kyle M Hall (khall) from comment #6)
Created attachment 207890 [details] [review] Bug 43463: (QA follow-up) Regex should handle port with no tcp suffix
Previous regex could handle "127.0.0.1:8023/tcp/IPv4" but not "127.0.0.1:8023"
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
This got me thinking... C4::SIP:SIPServer is a subclass of Net::Server which takes the "port" property and calls port_info() on that... which runs Net::Server::Proto's parse_info() over "port", which is quite a large function: https://metacpan.org/module/Net::Server::Proto/source#L175 Although I think it essentially processes it using the following: $info = {}; $info->{'unix_type'} = $1 if $port =~ s{ (?<=[\w*\]]) [,|\s:/]+ (sock_stream|sock_dgram) \b }{}x; # legacy /some/path|sock_dgram $ipv = $1 if $port =~ s{ (?<=[\w*\]]) [,|\s:/]+ IPv([*\d]+) }{}xi; # allow for 80|IPv* $ipv .= $1 if $port =~ s{ (?<=[\w*\]]) [,|\s:/]+ IPv([*\d]+) }{}xi; # allow for 80|IPv4|IPv6 stacked $proto = $1 if $port =~ s{ (?<=[\w*\]]) [,|\s:/]+ (tcp|udp|ssl|ssleay|unix|unixdgram|\w+(?: ::\w+)+) $ }{}xi # allow for 80/tcp or 200/udp or 90/Net::Server::Proto::TCP || $port =~ s{ / (\w+) $ }{}x; # legacy 80/MyTcp support $host = $1 if $port =~ s{ ^ (.*?) [,|\s:]+ (?= \w+ $) }{}x; # allow localhost:80 $info->{'port'} = $port; I wonder if it would be worthwhile implementing the same algorithm. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43463 --- Comment #9 from David Cook <dcook@prosentient.com.au> --- (In reply to David Cook from comment #3)
It sounds like a useful change, but failing because it uses XML::Simple.
I realise that the removal/prevention of XML::Simple is old institutional/community knowledge at this point. I'll look at getting that added to the coding guidelines. See bug 7170 for more info, especially that latest few comments.
This bug report spawned a new coding guideline! Yay! https://wiki.koha-community.org/wiki/Coding_Guidelines#DEPR4:_No_new_usage_o... -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43463 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|Add sip port to system |Add SIP2 port to system |information page |information page -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43463 Lucas Gass (lukeg) <lucas@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |release-notes-needed -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43463 Andrew Fuerste-Henry <andrew@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Text to go in the| |This enhancement adds SIP2 release notes| |listener port information | |to the System Information | |tab of the About Koha page. | |This information was | |previously only visible in | |the SIPconfig.xml file on | |the Koha server but is | |needed by third-parties | |when setting up new SIP2 | |services. Adding it to the | |System Information tab | |makes it easily accessible | |to users. Keywords|release-notes-needed | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43463 Paul Derscheid <paul.derscheid@lmscloud.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Signed Off |Passed QA -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43463 Paul Derscheid <paul.derscheid@lmscloud.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #207888|0 |1 is obsolete| | Attachment #207889|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43463 --- Comment #10 from Paul Derscheid <paul.derscheid@lmscloud.de> --- Created attachment 210939 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=210939&action=edit Bug 43463: Display SIP2 listener ports in system information **Test plan:** 1. Apply the patch. 2. Ensure SIP2 is configured with at least one listener in `SIPconfig.xml`. 3. Navigate to **About Koha → System information** in the staff interface. 4. Confirm that the **SIP2 configuration** section appears. 5. Verify that all configured SIP2 listener ports and their corresponding transport types are displayed correctly. 6. Confirm that the displayed values match those in `SIPconfig.xml`. 7. Confirm that the existing System information warnings continue to display correctly. 8. Sign off and have a great day :) Signed-off-by: Rae Schumann <rschumann@utah.gov> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43463 --- Comment #11 from Paul Derscheid <paul.derscheid@lmscloud.de> --- Created attachment 210940 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=210940&action=edit Bug 43463: (QA follow-up) Use XML::LibXML instead of XML::Simple Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43463 Paul Derscheid <paul.derscheid@lmscloud.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |paul.derscheid@lmscloud.de QA Contact|testopia@bugs.koha-communit |paul.derscheid@lmscloud.de |y.org | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43463 --- Comment #12 from David Cook <dcook@prosentient.com.au> --- (In reply to Kyle M Hall (khall) from comment #6)
Previous regex could handle "127.0.0.1:8023/tcp/IPv4" but not "127.0.0.1:8023"
In future, it might be worthwhile adding a little additional text saying that this is the port of the internal SIP server, and it may not be the same port number used at the edge of the network by external services. This is especially the case when using TLS using a proxy like stunnel. In the comment above, they'll never reach this particular port 8023 because it's bound to the local loopback interface. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43463 --- Comment #13 from Paul Derscheid <paul.derscheid@lmscloud.de> --- Yeah, that is a good suggestion, David. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43463 Pedro Amorim (ammopt) <pedro.amorim@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Passed QA |Pushed to main Version(s)| |26.11.00 released in| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43463 --- Comment #14 from Pedro Amorim (ammopt) <pedro.amorim@openfifth.co.uk> --- Thanks everyone! Pushed to main for 26.11! -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43463 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Text to go in the|This enhancement adds SIP2 |The System information tab release notes|listener port information |on About Koha now has a |to the System Information |SIP2 configuration section |tab of the About Koha page. |listing the listener ports |This information was |and transport types |previously only visible in |configured in |the SIPconfig.xml file on |`SIPconfig.xml`. Third |the Koha server but is |parties setting up SIP2 |needed by third-parties |services can find these |when setting up new SIP2 |values in the staff |services. Adding it to the |interface rather than on |System Information tab |the server. |makes it easily accessible | |to users. | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43463 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Text to go in the|The System information tab |This enhancement adds SIP2 release notes|on About Koha now has a |listener port information |SIP2 configuration section |to the System Information |listing the listener ports |tab of the About Koha page. |and transport types |This information was |configured in |previously only visible in |`SIPconfig.xml`. Third |the SIPconfig.xml file on |parties setting up SIP2 |the Koha server but is |services can find these |needed by third-parties |values in the staff |when setting up new SIP2 |interface rather than on |services. Adding it to the |the server. |System Information tab | |makes it easily accessible | |to users. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43463 --- Comment #15 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Hello, On 18 November I ran a bulk update of the "Text to go in release notes" field on bugs in the 26.11 range, to fill in missing notes using a consistent template. A mistake in that run also overwrote the release note you had written on this bug. That was not intended, and I am sorry for the noise. I have restored your original text from the bug history, so the field is exactly as you wrote it. Nothing else on this bug was changed. Thank you for writing the note. Martin -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43463 Lucas Gass (lukeg) <lucas@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Pushed to main |Needs documenting --- Comment #16 from Lucas Gass (lukeg) <lucas@bywatersolutions.com> --- Enhancement, no 26.05.x backport. -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org