Bug 5766 - Backtrace in tlwebadm when using mounted profile dir in hiveconf.
Summary: Backtrace in tlwebadm when using mounted profile dir in hiveconf.
Status: NEW
Alias: None
Product: ThinLinc
Classification: Unclassified
Component: Misc (show other bugs)
Version: 4.4.0
Hardware: PC Unknown
: P2 Normal
Target Milestone: MediumPrio
Assignee: Peter Åstrand
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-01-08 14:00 CET by Henrik Andersson
Modified: 2016-01-14 10:55 CET (History)
1 user (show)

See Also:
Acceptance Criteria:


Attachments

Description Henrik Andersson cendio 2016-01-08 14:00:05 CET
Here is the backtrace:

  2016-01-08 12:34:58 ERROR tlwebadm[19522]: ----------------------------------------
  2016-01-08 12:34:58 ERROR tlwebadm[19522]: Traceback (most recent call last):
  2016-01-08 12:34:58 ERROR tlwebadm[19522]:   File "/opt/thinlinc/sbin/tlwebadm", line 269, in post_or_get
  2016-01-08 12:34:58 ERROR tlwebadm[19522]:     IIIIii , OOooOO000 = getattr ( O0OOO , action ) ( iIIi1i1 , I1I1IiI1 , IIIIii )
  2016-01-08 12:34:58 ERROR tlwebadm[19522]:   File "/opt/thinlinc/modules/thinlinc/tlwebadm/main.py", line 109, in do_GET
  2016-01-08 12:34:58 ERROR tlwebadm[19522]:     self . _GET_METHODS . get ( page_name , self . error_404 ) ( query ) )
  2016-01-08 12:34:58 ERROR tlwebadm[19522]:   File "/opt/thinlinc/modules/thinlinc/tlwebadm/profiles.py", line 278, in profilelist
  2016-01-08 12:34:58 ERROR tlwebadm[19522]:     ii1I1i1I [ 'activated' ] = False
  2016-01-08 12:34:58 ERROR tlwebadm[19522]: TypeError: 'NoneType' object does not support item assignment
  2016-01-08 12:34:58 ERROR tlwebadm[19522]: ----------------------------------------


There seems to be a bug in hiveconf regarding mount command which inserts a folder named '/' se examples below:

  The following hive is defaults shipped with thinlinc:

  >>> hive.get_folders('/profiles')
  ['cde', 'gnome', 'windows', 'kde', 'xterm', 'gnome-classic', 'unity', 'mate',   'cinnamon', 'xfce']

  The following hive uses mount of profiles directory containing profile named 'subdirprofile'. Mounting the directory also inserts a folder named '/':

  >>> hnew.get_folders('/profiles')
  ['cde', 'subdirprofile', 'gnome', 'windows', 'kde', 'xterm', 'gnome-classic', 'unity', 'mate', '/', 'xfce', 'cinnamon']

Note You need to log in before you can comment on or make changes to this bug.