Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Codecrew
/
Moya
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
30
Merge Requests
2
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit d0650781
authored
Dec 12, 2014
by
Tuukka Kivilahti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
prelento-commit
1 parent
f5adb03b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletions
code/moya-web/src/main/java/fi/codecrew/moya/servlet/PlaceMapServlet.java
code/moya-web/src/main/java/fi/codecrew/moya/servlet/PlaceMapServlet.java
View file @
d065078
...
@@ -138,12 +138,14 @@ public class PlaceMapServlet extends HttpServlet {
...
@@ -138,12 +138,14 @@ public class PlaceMapServlet extends HttpServlet {
}
catch
(
EJBException
e
)
{
}
catch
(
EJBException
e
)
{
logger
.
debug
(
"Permission denied. Returning SC_FORBIDDEN!"
);
logger
.
debug
(
"Permission denied. Returning SC_FORBIDDEN!"
);
response
.
setContentType
(
"text/html;charset=UTF-8"
);
response
.
setContentType
(
"text/html;charset=UTF-8"
);
response
.
setStatus
(
HttpServletResponse
.
SC_FORBIDDEN
);
response
.
setStatus
(
HttpServletResponse
.
SC_FORBIDDEN
);
ostream
=
response
.
getOutputStream
();
ostream
=
response
.
getOutputStream
();
ostream
.
print
(
"Error 403 \nPermission denied! Please login before accessing resource"
);
ostream
.
print
(
"Error 403 \nPermission denied! Please login before accessing resource"
);
throw
new
RuntimeException
(
e
);
// TODO: remove
e
.
printStackTrace
();
}
finally
{
}
finally
{
if
(
ostream
!=
null
)
{
if
(
ostream
!=
null
)
{
ostream
.
close
();
ostream
.
close
();
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment