https://bugzilla.novell.com/show_bug.cgi?id=370120 Summary: rev= is not accepted by api in request's source package Product: openSUSE.org Version: unspecified Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: BuildService AssignedTo: abauer@novell.com ReportedBy: poeml@novell.com QAContact: adrian@novell.com Found By: --- Of course, this is a blocker :-) Here is a transcript. It shows two attempts to create a submit request. The first is without the new rev= attribute; it succeeds. In the second, I added the attribute, and it yields a 404. (I have replaced my login cookies with dummy strings here.) poeml@batavia510 ~/bs/openSUSE:Tools/osc % osc -H submitreq create home:poeml initviocons openSUSE:Factory -m 'bla' -- GET https://api.opensuse.org/source/home:poeml/initviocons send: 'GET /source/home:poeml/initviocons HTTP/1.1\r\nAccept-Encoding: identity\r\nHost: api.opensuse.org\r\nCookie: foobar; opensuse_frontend_session=6a6c79da250bbbe44e26cecae5f84fcc\r\nConnection: close\r\nUser-agent: osc/0.99\r\n\r\n' reply: 'HTTP/1.1 200 OK\r\n' header: Set-foobarpath=/ header: X-Opensuse-Apiversion: 0.1.1 header: Content-Transfer-Encoding: binary header: Cache-Control: private header: Content-Disposition: inline header: Date: Wed, 12 Mar 2008 22:51:44 GMT header: Server: lighttpd/1.5.0 header: Content-Type: text/xml header: Connection: close header: Content-Length: 423 header: Via: 1.1 ICS_SERVER (iChain 2.3.410) -- POST https://api.opensuse.org/request?cmd=create send: 'POST /request?cmd=create HTTP/1.1\r\nAccept-Encoding: identity\r\nContent-length: 248\r\nHost: api.opensuse.org\r\nUser-agent: osc/0.99\r\nConnection: close\r\nfoobard93b35d9; opensuse_frontend_session=6a6c79da250bbbe44e26cecae5f84fcc\r\nContent-type: application/x-www-form-urlencoded\r\n\r\n' send: '<request type="merge">\n <merge>\n <source project="home:poeml" package="initviocons" />\n <target project="openSUSE:Factory" package="initviocons" />\n </merge>\n <state name="new"/>\n <description>bla</description>\n</request>\n' reply: 'HTTP/1.1 200 OK\r\n' header: Set-foobarpath=/ header: X-Opensuse-Apiversion: 0.1.1 header: Content-Transfer-Encoding: binary header: Cache-Control: private header: Content-Disposition: inline header: Date: Wed, 12 Mar 2008 22:51:45 GMT header: Server: lighttpd/1.5.0 header: Content-Type: text/xml header: Connection: close header: Content-Length: 280 header: Via: 1.1 ICS_SERVER (iChain 2.3.410) created request id 36 poeml@batavia510 ~/bs/openSUSE:Tools/osc % osc -H submitreq create home:poeml initviocons openSUSE:Factory -m 'bla' -- GET https://api.opensuse.org/source/home:poeml/initviocons send: 'GET /source/home:poeml/initviocons HTTP/1.1\r\nAccept-Encoding: identity\r\nHost: api.opensuse.org\r\nfoobard93b35d9; opensuse_frontend_session=6a6c79da250bbbe44e26cecae5f84fcc\r\nConnection: close\r\nUser-agent: osc/0.99\r\n\r\n' reply: 'HTTP/1.1 200 OK\r\n' header: Set-foobarpath=/ header: X-Opensuse-Apiversion: 0.1.1 header: Content-Transfer-Encoding: binary header: Cache-Control: private header: Content-Disposition: inline header: Date: Wed, 12 Mar 2008 22:51:58 GMT header: Server: lighttpd/1.5.0 header: Content-Type: text/xml header: Connection: close header: Content-Length: 423 header: Via: 1.1 ICS_SERVER (iChain 2.3.410) -- POST https://api.opensuse.org/request?cmd=create send: 'POST /request?cmd=create HTTP/1.1\r\nAccept-Encoding: identity\r\nContent-length: 286\r\nHost: api.opensuse.org\r\nUser-agent: osc/0.99\r\nConnection: close\r\nfoobard93b35d9; opensuse_frontend_session=6a6c79da250bbbe44e26cecae5f84fcc\r\nContent-type: application/x-www-form-urlencoded\r\n\r\n' send: '<request type="merge">\n <merge>\n <source project="home:poeml" package="initviocons" rev="f839321325a0b5582def283c3520bf13"/>\n <target project="openSUSE:Factory" package="initviocons" />\n </merge>\n <state name="new"/>\n <description>bla</description>\n</request>\n' reply: 'HTTP/1.1 404 Not Found\r\n' header: Set-foobarpath=/ header: X-Opensuse-Apiversion: 0.1.1 header: Cache-Control: no-cache header: Date: Wed, 12 Mar 2008 22:51:58 GMT header: Server: lighttpd/1.5.0 header: Content-Type: text/html; charset=utf-8 header: Connection: close header: Content-Length: 91 header: Via: 1.1 ICS_SERVER (iChain 2.3.410) Traceback (most recent call last): File "/suse/poeml/bin/osc", line 10, in ? sys.exit( osc.main() ) File "/suse/poeml/osc-stable/osc/cmdln.py", line 256, in main File "/suse/poeml/osc-stable/osc/cmdln.py", line 279, in cmd File "/suse/poeml/osc-stable/osc/cmdln.py", line 395, in onecmd File "/suse/poeml/osc-stable/osc/cmdln.py", line 1070, in _dispatch_cmd File "/suse/poeml/osc-trunk/osc/commandline.py", line 433, in do_submitreq opts.message) File "/suse/poeml/osc-trunk/osc/core.py", line 1745, in create_submit_request f = http_POST(u, data=xml) File "/suse/poeml/osc-trunk/osc/core.py", line 1315, in http_POST def http_POST(*args, **kwargs): return http_request('POST', *args, **kwargs) File "/suse/poeml/osc-trunk/osc/core.py", line 1269, in http_request fd = urllib2.urlopen(req, data=data) File "/usr/lib64/python2.4/urllib2.py", line 130, in urlopen return _opener.open(url, data) File "/usr/lib64/python2.4/urllib2.py", line 364, in open response = meth(req, response) File "/usr/lib64/python2.4/urllib2.py", line 471, in http_response response = self.parent.error( File "/usr/lib64/python2.4/urllib2.py", line 402, in error return self._call_chain(*args) File "/usr/lib64/python2.4/urllib2.py", line 337, in _call_chain result = func(*args) File "/usr/lib64/python2.4/urllib2.py", line 480, in http_error_default raise HTTPError(req.get_full_url(), code, msg, hdrs, fp) urllib2.HTTPError: HTTP Error 404: Not Found [1] 29084 exit 1 osc -H submitreq create home:poeml initviocons openSUSE:Factory -m 'bla' poeml@batavia510 ~/bs/openSUSE:Tools/osc % -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.