mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-04-18 06:58:59 +02:00
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:
parent
11a6609876
commit
9cfcfcb5be
@ -15693,3 +15693,6 @@
|
|||||||
* Changed the '401' result code of the 'EditCart' service to be 403.
|
* 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 'DeleteAudio' service to be 403.
|
||||||
* Changed the '401' result code of the 'Export' 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.
|
||||||
|
@ -81,11 +81,11 @@ void Xport::AddCart()
|
|||||||
}
|
}
|
||||||
if(!group->cartNumberValid(cart_number)) {
|
if(!group->cartNumberValid(cart_number)) {
|
||||||
delete group;
|
delete group;
|
||||||
XmlExit("Cart number out of range for group",403);
|
XmlExit("Cart number out of range for group",404);
|
||||||
}
|
}
|
||||||
delete group;
|
delete group;
|
||||||
if(!xport_user->createCarts()) {
|
if(!xport_user->createCarts()) {
|
||||||
XmlExit("Forbidden",403);
|
XmlExit("Forbidden",404);
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
@ -249,7 +249,7 @@ void Xport::EditCart()
|
|||||||
XmlExit("No such cart",404);
|
XmlExit("No such cart",404);
|
||||||
}
|
}
|
||||||
if(!xport_user->modifyCarts()) {
|
if(!xport_user->modifyCarts()) {
|
||||||
XmlExit("Unauthorized",403);
|
XmlExit("Unauthorized",404);
|
||||||
}
|
}
|
||||||
if(xport_post->getValue("GROUP_NAME",&group_name)) {
|
if(xport_post->getValue("GROUP_NAME",&group_name)) {
|
||||||
if(!xport_user->groupAuthorized(group_name)) {
|
if(!xport_user->groupAuthorized(group_name)) {
|
||||||
@ -413,7 +413,7 @@ void Xport::RemoveCart()
|
|||||||
XmlExit("No such cart",404);
|
XmlExit("No such cart",404);
|
||||||
}
|
}
|
||||||
if(!xport_user->deleteCarts()) {
|
if(!xport_user->deleteCarts()) {
|
||||||
XmlExit("Unauthorized",403);
|
XmlExit("Unauthorized",404);
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
@ -454,7 +454,7 @@ void Xport::AddCut()
|
|||||||
XmlExit("No such cart",404);
|
XmlExit("No such cart",404);
|
||||||
}
|
}
|
||||||
if(!xport_user->editAudio()) {
|
if(!xport_user->editAudio()) {
|
||||||
XmlExit("Forbidden",403);
|
XmlExit("Forbidden",404);
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
@ -620,7 +620,7 @@ void Xport::EditCut()
|
|||||||
XmlExit("No such cart",404);
|
XmlExit("No such cart",404);
|
||||||
}
|
}
|
||||||
if(!xport_user->editAudio()) {
|
if(!xport_user->editAudio()) {
|
||||||
XmlExit("Forbidden",403);
|
XmlExit("Forbidden",404);
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
@ -911,7 +911,7 @@ void Xport::RemoveCut()
|
|||||||
XmlExit("No such cart",404);
|
XmlExit("No such cart",404);
|
||||||
}
|
}
|
||||||
if(!xport_user->editAudio()) {
|
if(!xport_user->editAudio()) {
|
||||||
XmlExit("Forbidden",403);
|
XmlExit("Forbidden",404);
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
|
@ -49,7 +49,7 @@ void Xport::DeleteAudio()
|
|||||||
// Process Request
|
// Process Request
|
||||||
//
|
//
|
||||||
if((!xport_user->deleteCarts())&&(!xport_user->adminConfig())) {
|
if((!xport_user->deleteCarts())&&(!xport_user->adminConfig())) {
|
||||||
XmlExit("User not authorized",403);
|
XmlExit("User not authorized",404);
|
||||||
}
|
}
|
||||||
RDCut *cut=new RDCut(cartnum,cutnum);
|
RDCut *cut=new RDCut(cartnum,cutnum);
|
||||||
if(!cut->exists()) {
|
if(!cut->exists()) {
|
||||||
|
@ -101,10 +101,10 @@ void Xport::Import()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(!xport_user->editAudio()) {
|
if(!xport_user->editAudio()) {
|
||||||
XmlExit("Forbidden",403);
|
XmlExit("Forbidden",404);
|
||||||
}
|
}
|
||||||
if(create&&(!xport_user->createCarts())) {
|
if(create&&(!xport_user->createCarts())) {
|
||||||
XmlExit("Forbidden",403);
|
XmlExit("Forbidden",404);
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
|
Loading…
x
Reference in New Issue
Block a user