Bug 374310

Summary: Yast SLP server module destroys all /etc/slp.reg.d/* config files
Product: [openSUSE] openSUSE 11.0 Reporter: Volker Kuhlmann <bugz57>
Component: YaST2Assignee: Michal Zugec <mzugec>
Status: RESOLVED FIXED QA Contact: Jiri Srain <jsrain>
Severity: Normal    
Priority: P5 - None CC: bugz57
Version: Factory   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Volker Kuhlmann 2008-03-27 10:21:15 UTC
Starting the yast SLP server module destroys all the service registration files in /etc/slp.reg.d/, because yast rewrites them with incorrect syntax.

For example, correct:

service:remotedesktop.kde:vnc://$HOSTNAME:5901,en,65535
tcp-port=5901
description=VNC remote login [1024x768]

Which is messsed up by yast into

service remotedesktop.kde:vnc://$HOSTNAME:5901,en,65535
tcp-port 5901
description VNC remote login [1024x768]

Which no longer works properly. It is sufficient to start yast's SLP server module for the damage to occur, it is not needed to perform any action inside the module.

This is an annoying and also very long-standing bug which I only noticed when I started reading the RFCs to clear up my perpetual confusion about the .reg config format.
Comment 1 Michal Zugec 2008-03-27 12:14:46 UTC
reproduced
Comment 2 Michal Zugec 2008-04-24 20:21:37 UTC
fixed in yast2-slp-server-2.16.2
Comment 3 Michal Zugec 2008-04-25 07:17:01 UTC
Sorry, looking into http://www.openslp.org/doc/html/UsersGuide/SlpReg.html there's still something wrong
Comment 4 Volker Kuhlmann 2008-04-25 07:35:36 UTC
The service (the first) line is clearly not permitted to contain "=" characters  anywhere (other than perhaps as part of a filename of a URL).

All other lines appear to be key=value pairs and must have the "=" sign.

I'd be happy to test a new yast module from factory or otherwise if you like.
Comment 5 Michal Zugec 2008-04-25 11:28:07 UTC
fixed (in the same version)
Comment 6 Michal Zugec 2008-04-25 11:29:20 UTC
Yes, factory is fine to test it
Thank you