Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
TAM
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
EIP
Labrador
TAM
Merge requests
!150
Remove Sentry trigger endpoint
Code
Review changes
Check out branch
Open in Workspace
Download
Patches
Plain diff
Expand sidebar
Merged
Remove Sentry trigger endpoint
feature/remove-sentry-trigger
into
dev
Overview
0
Commits
2
Pipelines
2
Changes
1
Merged
Remove Sentry trigger endpoint
Sander van den Oever
requested to merge
feature/remove-sentry-trigger
into
dev
Oct 8, 2019
Overview
0
Commits
2
Pipelines
2
Changes
1
Resolves
#16 (closed)
0
0
Merge request reports
Compare
dev
version 1
988e4c6e
Oct 8, 2019
dev (base)
and
latest version
latest version
78abed91
2 commits,
Oct 8, 2019
version 1
988e4c6e
1 commit,
Oct 8, 2019
1 file
+
0
−
12
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
src/main/java/nl/tudelft/ewi/tam/controllers/HomeController.java
+
0
−
12
View file @ 78abed91
Edit in single-file editor
Open in Web IDE
Show full file
package
nl.tudelft.ewi.tam.controllers
;
package
nl.tudelft.ewi.tam.controllers
;
import
nl.tudelft.ewi.tam.beans.UserPrincipal
;
import
nl.tudelft.ewi.tam.beans.UserPrincipal
;
import
nl.tudelft.ewi.tam.exceptions.SentryException
;
import
nl.tudelft.ewi.tam.services.UserService
;
import
nl.tudelft.ewi.tam.services.UserService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.security.authentication.AnonymousAuthenticationToken
;
import
org.springframework.security.authentication.AnonymousAuthenticationToken
;
import
org.springframework.security.core.Authentication
;
import
org.springframework.security.core.Authentication
;
import
org.springframework.security.core.context.SecurityContextHolder
;
import
org.springframework.security.core.context.SecurityContextHolder
;
import
org.springframework.stereotype.Controller
;
import
org.springframework.stereotype.Controller
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMethod
;
import
org.springframework.web.bind.annotation.RequestMethod
;
@@ -49,14 +47,4 @@ public class HomeController {
@@ -49,14 +47,4 @@ public class HomeController {
// If the user is not authenticated, then send him to the index page.
// If the user is not authenticated, then send him to the index page.
return
"index.html"
;
return
"index.html"
;
}
}
/**
* Test method for the Sentry integration.
*
* @throws SentryException to test the connection.
*/
@GetMapping
(
"/trigger-sentry"
)
public
void
triggerSentryException
()
throws
SentryException
{
throw
new
SentryException
(
"This should be logged from TAM."
);
}
}
}
Loading