Bug 7568 - Deleting a non-existent application in tlwebadm gives a traceback
Summary: Deleting a non-existent application in tlwebadm gives a traceback
Status: CLOSED DUPLICATE of bug 7195
Alias: None
Product: ThinLinc
Classification: Unclassified
Component: Web Administration (show other bugs)
Version: trunk
Hardware: PC Unknown
: P2 Normal
Target Milestone: 4.13.0
Assignee: Bugzilla mail exporter
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-10-14 09:59 CEST by Niko Lehto
Modified: 2020-10-14 10:29 CEST (History)
0 users

See Also:
Acceptance Criteria:


Attachments

Description Niko Lehto cendio 2020-10-14 09:59:15 CEST
I got this error with in tlwebadm on 4.12.0 using Firefox 81.

To reproduce:
- Go into "Desktop Customizer"/"Applications (Manual)"
- Press "Add new application"
- Press "Delete" button without ticking the check-box first.

The error message I got was:
>Error response
>Error code 500.
>Message: Internal error on page '/desktop/manapplications'.
>Error code explanation: 500 = Server got itself in trouble.
And in /var/log/tlwebaccess.log:
>2020-10-14 09:36:56 ERROR tlwebadm[2759]: [::ffff:10.47.1.20] code 500, message Internal error on page '/desktop/manapplications'
>2020-10-14 09:36:56 INFO tlwebadm[2759]: [::ffff:10.47.1.20] 'POST /desktop/manapplications HTTP/1.1' 500 -
>2020-10-14 09:36:56 ERROR tlwebadm[2759]: [::ffff:10.47.1.20] ----------------------------------------
>2020-10-14 09:36:56 ERROR tlwebadm[2759]: [::ffff:10.47.1.20] Traceback (most recent call last):
>2020-10-14 09:36:56 ERROR tlwebadm[2759]: [::ffff:10.47.1.20]   File "/opt/thinlinc/sbin/tlwebadm", line 228, in post_or_get
>2020-10-14 09:36:56 ERROR tlwebadm[2759]: [::ffff:10.47.1.20]     I1i1iii , OOO0o = getattr ( oOOOOo0 , action ) ( IiI11iII1 , iII , I1i1iii )
>2020-10-14 09:36:56 ERROR tlwebadm[2759]: [::ffff:10.47.1.20]   File "/opt/thinlinc/modules/thinlinc/tlwebadm/main.py", line 124, in do_POST
>2020-10-14 09:36:56 ERROR tlwebadm[2759]: [::ffff:10.47.1.20]     self . _POST_METHODS . get ( page_name , self . error_404 ) ( query ) )
>2020-10-14 09:36:56 ERROR tlwebadm[2759]: [::ffff:10.47.1.20]   File "/opt/thinlinc/modules/thinlinc/tlwebadm/desktop.py", line 85, in manapplications
>2020-10-14 09:36:56 ERROR tlwebadm[2759]: [::ffff:10.47.1.20]     return self . applications ( query , sysapps = False )
>2020-10-14 09:36:56 ERROR tlwebadm[2759]: [::ffff:10.47.1.20]   File "/opt/thinlinc/modules/thinlinc/tlwebadm/desktop.py", line 125, in applications
>2020-10-14 09:36:56 ERROR tlwebadm[2759]: [::ffff:10.47.1.20]     Oooo0000 [ 'details' ] = self . get_application_details ( query , O0O00Ooo )
>2020-10-14 09:36:56 ERROR tlwebadm[2759]: [::ffff:10.47.1.20]   File "/opt/thinlinc/modules/thinlinc/tlwebadm/desktop.py", line 338, in get_application_details
>2020-10-14 09:36:56 ERROR tlwebadm[2759]: [::ffff:10.47.1.20]     O0oOoOOOoOO = oOo . getExecArgv ( )
>2020-10-14 09:36:56 ERROR tlwebadm[2759]: [::ffff:10.47.1.20] AttributeError: 'NoneType' object has no attribute 'getExecArgv'
>2020-10-14 09:36:56 ERROR tlwebadm[2759]: [::ffff:10.47.1.20] ----------------------------------------
When the same thing is done with:
- "Add new location" in Locations
- "Add new terminal" in Terminals
This gives the standard Error that "Tick box and press Delete to delete."
But when it is done in "Add new profile" in "Profile List", the half-done entry disappears. Maybe handle them the same way too?
Comment 1 Niko Lehto cendio 2020-10-14 10:00:30 CEST
Bug 3904 might be related to this issue.
Comment 2 Niko Lehto cendio 2020-10-14 10:29:13 CEST

*** This bug has been marked as a duplicate of bug 7195 ***

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