Skip to content

Spring boot support in Java Generator#751

Merged
iroqueta merged 19 commits into
masterfrom
SpringBootRest
Sep 1, 2023
Merged

Spring boot support in Java Generator#751
iroqueta merged 19 commits into
masterfrom
SpringBootRest

Conversation

@iroqueta

Copy link
Copy Markdown
Collaborator

First commit
Issue: 103655

First commit
Issue: 103655
@genexusbot

Copy link
Copy Markdown
Collaborator
Cherry pick to beta success

@genexusbot

Copy link
Copy Markdown
Collaborator
Cherry pick to beta success

String jsonResponse = jObj.toString();
builder = Response.statusWrapped(201).entityWrapped(jsonResponse);
builder.header("GeneXus-Object-Id", keyId);
jsonResponse = jObj.toString();

Check failure

Code scanning / Fortify on Demand

Race Condition: Singleton Member Field

The class GXObjectUploadServices is a singleton, so the member field jsonResponse is shared between users. The result is that one user could see another user's data.Servlet member fields might allow one user to see another user's data.
…execute command line, execute reorgs, model property to select Framework

Now JDK 17 is needed to build standar classes
Issue: 103655
@iroqueta iroqueta requested a review from a team as a code owner August 7, 2023 18:41
@genexusbot

Copy link
Copy Markdown
Collaborator
Cherry pick to beta success

@genexusbot

Copy link
Copy Markdown
Collaborator
Cherry pick to beta success

iroqueta and others added 2 commits August 7, 2023 16:07
Read application.gam and connection.gam when Springboot ir run as jar.
Issue: 103655
@genexusbot

Copy link
Copy Markdown
Collaborator
Cherry pick to beta success

@genexusbot

Copy link
Copy Markdown
Collaborator
Cherry pick to beta failed, 1 conflicted file in commit fef4600
  • java/src/main/java/com/genexus/util/GXServices.java

fileInputStream = resource.getInputStream();
}
else
{

Check failure

Code scanning / Fortify on Demand

Unreleased Resource: Streams

The function open() in XMLReader.java sometimes fails to release a system resource allocated by getInputStream() on line 783.The program can potentially fail to release a system resource.
@genexusbot

Copy link
Copy Markdown
Collaborator
Cherry pick to beta failed, 1 conflicted file in commit fef4600
  • java/src/main/java/com/genexus/util/GXServices.java

…equest body, and return a json message with bad request

Issue: 103655
@genexusbot

Copy link
Copy Markdown
Collaborator
Cherry pick to beta failed, 1 conflicted file in commit fef4600
  • java/src/main/java/com/genexus/util/GXServices.java

@genexusbot

Copy link
Copy Markdown
Collaborator
Cherry pick to beta failed, 1 conflicted file in commit fef4600
  • java/src/main/java/com/genexus/util/GXServices.java

@iroqueta iroqueta removed the conflict label Aug 18, 2023
@genexusbot

Copy link
Copy Markdown
Collaborator
Cherry pick to beta failed, 1 conflicted file in commit fef4600
  • java/src/main/java/com/genexus/util/GXServices.java

@iroqueta iroqueta removed the conflict label Aug 28, 2023
@genexusbot

Copy link
Copy Markdown
Collaborator
Cherry pick to beta failed, 1 conflicted file in commit fef4600
  • java/src/main/java/com/genexus/util/GXServices.java

… REST services using Spring Boot

Image.Link() in Spring Boot cames without contextPath
Issue: 103655
@genexusbot

Copy link
Copy Markdown
Collaborator
Cherry pick to beta failed, 1 conflicted file in commit fef4600
  • java/src/main/java/com/genexus/util/GXServices.java

@iroqueta iroqueta merged commit 62c55b6 into master Sep 1, 2023
@iroqueta iroqueta deleted the SpringBootRest branch September 1, 2023 17:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants