Skip to content

Conversation

@MartinVigliarolo
Copy link
Contributor

No description provided.

@genexusbot
Copy link
Collaborator

Cherry pick to beta success

@genexusbot
Copy link
Collaborator

Cherry pick to beta success

@genexusbot
Copy link
Collaborator

Cherry pick to beta success

@genexusbot
Copy link
Collaborator

Cherry pick to beta success

Copy link
Contributor

@gmilano gmilano left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually I was expecting the other way around, leave the imports and remove the qualifiers to have more compact code.

if (webcookie != null)
this.addHeader("Cookie", com.genexus.webpanels.WebUtils.decodeCookie(webcookie.getValue()));

String selfWebCookie = ((com.genexus.webpanels.HttpContextWeb) com.genexus.ModelContext.getModelContext().getHttpContext()).getCookie("Set-Cookie");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Improving coding style: When possible try to start reducing unnecesary qualifiers already included as imports.

In this case com.genexus.webpanels or com.genexus.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Set-Cookie" "Cookie" please define static final String for them.


String selfWebCookie = ((com.genexus.webpanels.HttpContextWeb) com.genexus.ModelContext.getModelContext().getHttpContext()).getCookie("Set-Cookie");
if (!selfWebCookie.isEmpty())
this.addHeader("Cookie", selfWebCookie.replace("+",";"));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I couldn't understand what was failing in the previous code.

@genexusbot
Copy link
Collaborator

Cherry pick to beta failed, 1 conflicted file
  • java/src/main/java/com/genexus/internet/HttpClientJavaLib.java

@genexusbot
Copy link
Collaborator

Cherry pick to beta failed, 1 conflicted file
  • java/src/main/java/com/genexus/internet/HttpClientJavaLib.java

@MartinVigliarolo MartinVigliarolo merged commit 4d14540 into master Jan 24, 2022
@MartinVigliarolo MartinVigliarolo deleted the Issue94300 branch January 24, 2022 14:30
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.

5 participants