Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
Backend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IDATT2106 Scrum Team 02
Backend
Merge requests
!34
Changed status code on choosing the same name as other profile. Renamed class name
Code
Review changes
Check out branch
Download
Patches
Plain diff
Closed
Changed status code on choosing the same name as other profile. Renamed class name
change-statuscode
into
main
Overview
0
Commits
2
Pipelines
2
Changes
1
Closed
Katarzyna Szlejter
requested to merge
change-statuscode
into
main
2 years ago
Overview
0
Commits
2
Pipelines
2
Changes
1
Expand
0
0
Merge request reports
Compare
main
version 1
453b9c30
2 years ago
main (base)
and
latest version
latest version
d15abfac
2 commits,
2 years ago
version 1
453b9c30
1 commit,
2 years ago
1 file
+
1
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
src/main/java/edu/ntnu/idatt210602/matsvinnbackend/controller/ProfileController.java
+
1
−
1
Options
@@ -98,7 +98,7 @@ public class ProfileController {
if
(!
listOfProfiles
.
isEmpty
())
{
logger
.
warn
(
"Another profile on the current account with the same name exists."
);
throw
new
ResponseStatusException
(
HttpStatus
.
BAD_REQUES
T
);
throw
new
ResponseStatusException
(
HttpStatus
.
CONFLIC
T
);
}
else
{
profile
.
setName
(
request
.
name
());
}
Loading