Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Linnea Samila
/
Moya
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Wiki
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 {
}
catch
(
EJBException
e
)
{
logger
.
debug
(
"Permission denied. Returning SC_FORBIDDEN!"
);
response
.
setContentType
(
"text/html;charset=UTF-8"
);
response
.
setStatus
(
HttpServletResponse
.
SC_FORBIDDEN
);
ostream
=
response
.
getOutputStream
();
ostream
.
print
(
"Error 403 \nPermission denied! Please login before accessing resource"
);
throw
new
RuntimeException
(
e
);
// TODO: remove
e
.
printStackTrace
();
}
finally
{
if
(
ostream
!=
null
)
{
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