2017-04-03 Fred Gleason <fredg@paravelsystems.com>

* Changed all instances of authorization failure in the rdxport service
	to return code 404.
This commit is contained in:
Fred Gleason 2017-04-03 11:04:39 -04:00
parent 11a6609876
commit 9cfcfcb5be
4 changed files with 13 additions and 10 deletions

View File

@ -15693,3 +15693,6 @@
* Changed the '401' result code of the 'EditCart' service to be 403.
* Changed the '401' result code of the 'DeleteAudio' service to be 403.
* Changed the '401' result code of the 'Export' service to be 403.
2017-04-03 Fred Gleason <fredg@paravelsystems.com>
* Changed all instances of authorization failure in the rdxport service
to return code 404.

View File

@ -81,11 +81,11 @@ void Xport::AddCart()
}
if(!group->cartNumberValid(cart_number)) {
delete group;
XmlExit("Cart number out of range for group",403);
XmlExit("Cart number out of range for group",404);
}
delete group;
if(!xport_user->createCarts()) {
XmlExit("Forbidden",403);
XmlExit("Forbidden",404);
}
//
@ -249,7 +249,7 @@ void Xport::EditCart()
XmlExit("No such cart",404);
}
if(!xport_user->modifyCarts()) {
XmlExit("Unauthorized",403);
XmlExit("Unauthorized",404);
}
if(xport_post->getValue("GROUP_NAME",&group_name)) {
if(!xport_user->groupAuthorized(group_name)) {
@ -413,7 +413,7 @@ void Xport::RemoveCart()
XmlExit("No such cart",404);
}
if(!xport_user->deleteCarts()) {
XmlExit("Unauthorized",403);
XmlExit("Unauthorized",404);
}
//
@ -454,7 +454,7 @@ void Xport::AddCut()
XmlExit("No such cart",404);
}
if(!xport_user->editAudio()) {
XmlExit("Forbidden",403);
XmlExit("Forbidden",404);
}
//
@ -620,7 +620,7 @@ void Xport::EditCut()
XmlExit("No such cart",404);
}
if(!xport_user->editAudio()) {
XmlExit("Forbidden",403);
XmlExit("Forbidden",404);
}
//
@ -911,7 +911,7 @@ void Xport::RemoveCut()
XmlExit("No such cart",404);
}
if(!xport_user->editAudio()) {
XmlExit("Forbidden",403);
XmlExit("Forbidden",404);
}
//

View File

@ -49,7 +49,7 @@ void Xport::DeleteAudio()
// Process Request
//
if((!xport_user->deleteCarts())&&(!xport_user->adminConfig())) {
XmlExit("User not authorized",403);
XmlExit("User not authorized",404);
}
RDCut *cut=new RDCut(cartnum,cutnum);
if(!cut->exists()) {

View File

@ -101,10 +101,10 @@ void Xport::Import()
}
}
if(!xport_user->editAudio()) {
XmlExit("Forbidden",403);
XmlExit("Forbidden",404);
}
if(create&&(!xport_user->createCarts())) {
XmlExit("Forbidden",403);
XmlExit("Forbidden",404);
}
//