Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: "Setup Java"
uses: actions/setup-java@v1
with:
java-version: 17
java-version: 21

- name: "Maven Test"
run: mvn clean test jacoco:report coveralls:report -DdryRun=true
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Settings.
ARG JAVA_VERSION=17
ARG JAVA_VERSION=21
ARG USER_ID=3001
ARG USER_NAME=lsss
ARG SOURCE_DIR=/$USER_NAME/source
Expand Down
6 changes: 3 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@
<parent>
<groupId>edu.tamu.weaver</groupId>
<artifactId>webservice-parent</artifactId>
<version>2.3.1</version>
<version>2.3.2</version>
</parent>

<properties>
<java.version>17</java.version>
<java.version>21</java.version>
<log4j2.version>2.16.0</log4j2.version>
<maven.packaging>war</maven.packaging>
<maven-plugins.version>2.22.2</maven-plugins.version>
<maven-plugins.version>3.6.1</maven-plugins.version>
<org.mockito.version>4.8.1</org.mockito.version>
</properties>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public ApiResponse getAllFeatureProposalsByService(@RequestBody FilteredPageRequ

@RequestMapping("/{id}")
@PreAuthorize("hasRole('SERVICE_MANAGER')")
public ApiResponse getFeatureProposal(@PathVariable Long id) {
public ApiResponse getFeatureProposal(@PathVariable(name = "id") Long id) {
return new ApiResponse(SUCCESS, featureProposalRepo.getReferenceById(id));
}

Expand Down Expand Up @@ -85,7 +85,7 @@ public ApiResponse remove(@WeaverValidatedModel FeatureProposal featureProposal)

@RequestMapping("/{id}/vote")
@PreAuthorize("hasRole('USER')")
public ApiResponse vote(@PathVariable Long id, @WeaverUser User voter) {
public ApiResponse vote(@PathVariable(name = "id") Long id, @WeaverUser User voter) {
FeatureProposal featureProposal = featureProposalRepo.getReferenceById(id);
featureProposal.addVoter(voter);
return new ApiResponse(SUCCESS, featureProposalRepo.update(featureProposal));
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/edu/tamu/app/controller/IdeaController.java
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public ApiResponse page(@RequestBody FilteredPageRequest filteredPageRequest) {

@RequestMapping("/{id}")
@PreAuthorize("hasRole('SERVICE_MANAGER')")
public ApiResponse getById(@PathVariable Long id) {
public ApiResponse getById(@PathVariable(name = "id") Long id) {
return new ApiResponse(SUCCESS, ideaRepo.getReferenceById(id));
}

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/edu/tamu/app/controller/NoteController.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public ApiResponse page(@RequestBody FilteredPageRequest filteredPageRequest) {

@RequestMapping("/{id}")
@PreAuthorize("hasRole('ANONYMOUS')")
public ApiResponse getById(@PathVariable Long id) {
public ApiResponse getById(@PathVariable(name = "id") Long id) {
return new ApiResponse(SUCCESS, noteRepo.getReferenceById(id));
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public ApiResponse getAllNotifications() {

@RequestMapping("/{id}")
@PreAuthorize("hasRole('STAFF')")
public ApiResponse getById(@PathVariable Long id) {
public ApiResponse getById(@PathVariable(name = "id") Long id) {
return new ApiResponse(SUCCESS, notificationRepo.getReferenceById(id));
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public ApiResponse getAll() throws JsonParseException, JsonMappingException, Mal

@RequestMapping("/{id}")
@PreAuthorize("hasRole('ANONYMOUS')")
public ApiResponse getById(@PathVariable Long id) throws JsonParseException, JsonMappingException, MalformedURLException, IOException {
public ApiResponse getById(@PathVariable(name = "id") Long id) throws JsonParseException, JsonMappingException, MalformedURLException, IOException {
return productService.getById(id);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public ApiResponse page(@RequestBody FilteredPageRequest filteredPageRequest) {

@RequestMapping("/{id}")
@PreAuthorize("hasRole('ANONYMOUS')")
public ApiResponse getService(@PathVariable Long id) {
public ApiResponse getService(@PathVariable(name = "id") Long id) {
return new ApiResponse(SUCCESS, serviceRepo.getReferenceById(id));
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public ApiResponse getAll() {
}

@RequestMapping("/{id}")
public ApiResponse getById(@PathVariable Long id) {
public ApiResponse getById(@PathVariable(name = "id") Long id) {
return new ApiResponse(SUCCESS, mockProducts.getProductById(id));
}

Expand Down
Loading