** Description changed:

  The fix for https://bugs.launchpad.net/ubuntu/+source/samba/+bug/2092308
  was incomplete, in the sense that it now crashes when the GPO doesn't
  exist yet.
  
  $ sudo samba-tool gpo manage motd set {31B2F340-016D-11D2-945F-00C04FB984F9} 
"Welcome" -U Administrator%Passw0rd
  WARNING: Using passwords on command line is insecure. Installing the 
setproctitle python module will hide these from shortly after program start.
  ERROR(<class 'AttributeError'>): uncaught exception - 'NoneType' object has 
no attribute 'text'
-   File "/usr/lib/python3/dist-packages/samba/netcmd/__init__.py", line 279, 
in _run
-     return self.run(*args, **kwargs)
-            ^^^^^^^^^^^^^^^^^^^^^^^^^
-   File "/usr/lib/python3/dist-packages/samba/netcmd/gpo.py", line 3832, in run
-     text.text = value
-     ^^^^^^^^^
+   File "/usr/lib/python3/dist-packages/samba/netcmd/__init__.py", line 279, 
in _run
+     return self.run(*args, **kwargs)
+            ^^^^^^^^^^^^^^^^^^^^^^^^^
+   File "/usr/lib/python3/dist-packages/samba/netcmd/gpo.py", line 3832, in run
+     text.text = value
+     ^^^^^^^^^
+ 
+ This is the XML structure:
+ 
+ <vgppolicy>
+  <policysetting>
+   <version>1</version>
+   <name>Text File</name>
+   <description>Represents a Generic Text File</description>
+   <apply_mode>replace</apply_mode>
+   <data>
+     <filename>motd</filename>
+     <text>Welcome</text><text>Welcome</text>
+   </data>
+  </policysetting>
+ </vgppolicy>
+ 
+ When run for the first time, the <text> element is not populated.

** Description changed:

  The fix for https://bugs.launchpad.net/ubuntu/+source/samba/+bug/2092308
  was incomplete, in the sense that it now crashes when the GPO doesn't
  exist yet.
  
  $ sudo samba-tool gpo manage motd set {31B2F340-016D-11D2-945F-00C04FB984F9} 
"Welcome" -U Administrator%Passw0rd
  WARNING: Using passwords on command line is insecure. Installing the 
setproctitle python module will hide these from shortly after program start.
  ERROR(<class 'AttributeError'>): uncaught exception - 'NoneType' object has 
no attribute 'text'
    File "/usr/lib/python3/dist-packages/samba/netcmd/__init__.py", line 279, 
in _run
      return self.run(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/usr/lib/python3/dist-packages/samba/netcmd/gpo.py", line 3832, in run
      text.text = value
      ^^^^^^^^^
  
  This is the XML structure:
  
  <vgppolicy>
-  <policysetting>
-   <version>1</version>
-   <name>Text File</name>
-   <description>Represents a Generic Text File</description>
-   <apply_mode>replace</apply_mode>
-   <data>
-     <filename>motd</filename>
-     <text>Welcome</text><text>Welcome</text>
-   </data>
-  </policysetting>
+  <policysetting>
+   <version>1</version>
+   <name>Text File</name>
+   <description>Represents a Generic Text File</description>
+   <apply_mode>replace</apply_mode>
+   <data>
+     <filename>motd</filename>
+     <text>Welcome</text><text>Welcome</text>
+   </data>
+  </policysetting>
  </vgppolicy>
  
- When run for the first time, the <text> element is not populated.
+ When run for the first time, the <text> element is not populated by the
+ code that creates the policy file.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2098755

Title:
  "samba-tool gpo manage motd set" crashes when the GPO doesn't exist
  yet

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/2098755/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to