[Qa-jenkins-scm] [Git][qa/jenkins.debian.net][master] 2 commits: reproducible debian: web scheduler: fix crash for non-logged in users
Mattia Rizzolo
gitlab at salsa.debian.org
Wed May 16 12:15:58 BST 2018
Mattia Rizzolo pushed to branch master at Debian QA / jenkins.debian.net
Commits:
d8cd393d by Mattia Rizzolo at 2018-05-16T13:04:32+02:00
reproducible debian: web scheduler: fix crash for non-logged in users
Signed-off-by: Mattia Rizzolo <mattia at debian.org>
- - - - -
21ef4d0b by Mattia Rizzolo at 2018-05-16T13:13:28+02:00
reproducible debian: web scheduler: clean exit in case of ValidationError
Signed-off-by: Mattia Rizzolo <mattia at debian.org>
- - - - -
1 changed file:
- bin/cgi-bin/schedule
Changes:
=====================================
bin/cgi-bin/schedule
=====================================
--- a/bin/cgi-bin/schedule
+++ b/bin/cgi-bin/schedule
@@ -6,6 +6,7 @@
import os
import re
import cgi
+import sys
import cgitb
import subprocess
cgitb.enable()
@@ -18,6 +19,7 @@ class ValidationError(Exception):
print('Content-Type: text/html; charset="utf-8"')
print()
print(message)
+ sys.exit()
def sanify_field(field_name, field_text):
@@ -129,8 +131,8 @@ else:
print()
cgitb.handler()
+# Debug info, to be removed once ready to go.
print()
-
print('WARNING: This endpoint is still a WORK IN PROGRESS. This means that the option details can change, and it will not commit any change.')
-print('User: {}'.format(user))
-print(form)
+print('You are aunthenticated as: {}'.format(user))
+print(cgi.FieldStorage())
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/compare/eeb82aa584905f389d803b5b01ae2d3d9a4f3095...21ef4d0bb11886ce8fa919bcc49baa509d0173d6
---
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/compare/eeb82aa584905f389d803b5b01ae2d3d9a4f3095...21ef4d0bb11886ce8fa919bcc49baa509d0173d6
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/qa-jenkins-scm/attachments/20180516/a038f0aa/attachment-0001.html>
More information about the Qa-jenkins-scm
mailing list