Bug 4152 - hiveconf syntax error causes tracebacks
Summary: hiveconf syntax error causes tracebacks
Status: NEW
Alias: None
Product: ThinLinc
Classification: Unclassified
Component: Other (show other bugs)
Version: 3.2.0
Hardware: PC Unknown
: P2 Normal
Target Milestone: LowPrio
Assignee: Peter Åstrand
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-20 13:58 CET by Pierre Ossman
Modified: 2023-09-04 08:58 CEST (History)
0 users

See Also:
Acceptance Criteria:


Attachments

Description Pierre Ossman cendio 2012-01-20 13:58:18 CET
This is a general problem so I'm filing it under MISC.

If a syntax error happens to creep into a single file under conf.d, you'll get this from more or less every part of thinlinc:

Traceback (most recent call last):
  File "/usr/bin/thinlinc-login", line 206, in <module>
    III1ii1iII ( )
  File "/usr/bin/thinlinc-login", line 133, in III1ii1iII
    hive = hiveconf . open_hive ( "/opt/thinlinc/etc/thinlinc.hconf" )
  File "/usr/lib/hiveconf/hiveconf.py", line 638, in open_hive
    return hfp.parse()
  File "/usr/lib/hiveconf/hiveconf.py", line 699, in parse
    self.mount_directive(args, curfolder, url, linenum, sectionname)
  File "/usr/lib/hiveconf/hiveconf.py", line 798, in mount_directive
    self.parse(mount_url, curfolder)
  File "/usr/lib/hiveconf/hiveconf.py", line 718, in parse
    raise SyntaxError(url, linenum)
hiveconf.SyntaxError: Bad line 1 in file:///opt/thinlinc/etc/conf.d/profiles.hconf

This is not very robust or graceful. We can do better.

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