Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
brainfood
/
ofbiz-directcontrolservlet
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
1696b6ea
authored
2016-09-29 11:32:29 -0500
by
Ean Schuessler
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'BF-7817' of /home/git/repositories/brainfood/ofbiz-directcontrolservlet
2 parents
d58580c3
082deae3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
2 deletions
src/com/brainfood/ofbiz/DirectControlServlet.java
src/com/brainfood/ofbiz/DirectControlServlet.java
View file @
1696b6e
...
...
@@ -73,6 +73,7 @@ import org.ofbiz.entity.util.EntityUtil;
import
org.ofbiz.entity.condition.EntityOperator
;
import
org.ofbiz.entity.condition.EntityCondition
;
import
org.ofbiz.service.DispatchContext
;
import
org.ofbiz.service.GenericServiceException
;
import
org.ofbiz.service.LocalDispatcher
;
import
org.ofbiz.service.ModelService
;
import
org.ofbiz.service.ServiceAuthException
;
...
...
@@ -245,13 +246,23 @@ public class DirectControlServlet extends HttpServlet {
tmpOut
.
close
();
try
{
try
{
processRequest
();
}
catch
(
GenericServiceException
e
)
{
Throwable
cause
=
e
;
while
((
cause
=
cause
.
getCause
())
!=
null
)
{
if
(
cause
instanceof
ServiceAuthException
)
{
throw
(
ServiceAuthException
)
cause
;
}
}
throw
e
;
}
}
catch
(
IOException
e
)
{
throw
e
;
}
catch
(
ServiceAuthException
e
)
{
e
.
printStackTrace
();
Debug
.
logError
(
e
,
"ServiceAuthException"
,
module
);
response
.
se
tStatus
(
401
);
Debug
.
logError
(
e
,
"ServiceAuthException
(setting status to 401)
"
,
module
);
response
.
se
ndError
(
401
,
e
.
getMessage
()
);
setResponseNoCache
();
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
...
...
Please
register
or
sign in
to post a comment