Bug 5883 - Desktop Customizer crashes without a configuration file
Summary: Desktop Customizer crashes without a configuration file
Status: NEW
Alias: None
Product: ThinLinc
Classification: Unclassified
Component: TLDC (Desktop Customizer) (show other bugs)
Version: trunk
Hardware: PC Unknown
: P2 Normal
Target Milestone: LowPrio
Assignee: Karl Mikaelsson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-05-16 13:31 CEST by Karl Mikaelsson
Modified: 2016-05-17 10:34 CEST (History)
1 user (show)

See Also:
Acceptance Criteria:


Attachments

Description Karl Mikaelsson cendio 2016-05-16 13:31:22 CEST
To reproduce:

Move the configuration file out of the way first:

>  mv /opt/thinlinc/etc/conf.d/tl-desktop-customizer.hconf{,.gone}

When I run tl-desktop-activate.sh as a user (from xstartup.d in this case):

> Running /opt/thinlinc/etc/xstartup.d/35-tl-desktop-activate.sh
> Traceback (most recent call last):
>   File "/opt/thinlinc/bin/tl-desktop-builder", line 37, in <module>
>     os . environ . get ( "TLPROFILE" ) )
>   File "/opt/thinlinc/modules/thinlinc/tl_desktop/groups.py", line 124, in find_groups
>     for ii1 in hive . get_folders ( "groups" ) :
> AttributeError: 'NoneType' object has no attribute 'get_folders'

The session is started even though the error occured.


When I try to access the Desktop Customizer through tlwebadm:

> Error code 500.
> 
> Message: Internal error on page '/desktop/'.
> 
> Error code explanation: 500 = Server got itself in trouble.

This traceback is logged to tlwebadm.log:

> Traceback (most recent call last):
>   File "/opt/thinlinc/sbin/tlwebadm", line 270, in post_or_get
>     IIIIii , OOooOO000 = getattr ( O0OOO , action ) ( iIIi1i1 , I1I1IiI1 , IIIIii )
>   File "/opt/thinlinc/modules/thinlinc/tlwebadm/main.py", line 109, in do_GET
>     self . _GET_METHODS . get ( page_name , self . error_404 ) ( query ) )
>   File "/opt/thinlinc/modules/thinlinc/tlwebadm/desktop.py", line 63, in home
>     o000o0o00o0Oo = self . hfolder . get_folders ( "groups" , [ ] )
> AttributeError: 'NoneType' object has no attribute 'get_folders'

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