mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-05-31 08:02:43 +02:00
2016-03-25 Fred Gleason <fredg@paravelsystems.com>
* Fixed a bug in 'web/rdxport/export.cpp' that caused the web 'Export' service to return an internal server error if the requested audio didn't exist.
This commit is contained in:
parent
539d23d359
commit
c5419b2dbe
@ -15015,3 +15015,7 @@
|
||||
* Ported 'docs/cae.sxw' to DocBook-XML5 in 'docs/docbook/cae.xml'.
|
||||
* Ported 'docs/web_api.odt' to DocBook-XML5 in
|
||||
'docs/dockbook/web_api.xml'.
|
||||
2016-03-25 Fred Gleason <fredg@paravelsystems.com>
|
||||
* Fixed a bug in 'web/rdxport/export.cpp' that caused the web 'Export'
|
||||
service to return an internal server error if the requested audio
|
||||
didn't exist.
|
||||
|
@ -182,6 +182,9 @@ void Xport::Export()
|
||||
break;
|
||||
|
||||
case RDAudioConvert::ErrorNoSource:
|
||||
resp_code=403;
|
||||
break;
|
||||
|
||||
case RDAudioConvert::ErrorNoDestination:
|
||||
case RDAudioConvert::ErrorInvalidSource:
|
||||
case RDAudioConvert::ErrorNoSpace:
|
||||
@ -200,5 +203,10 @@ void Xport::Export()
|
||||
}
|
||||
unlink(tmpfile);
|
||||
rmdir(tmpdir);
|
||||
Exit(resp_code);
|
||||
if(resp_code==200) {
|
||||
Exit(200);
|
||||
}
|
||||
else {
|
||||
XmlExit(RDAudioConvert::errorText(conv_err),resp_code,conv_err);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user