-
Notifications
You must be signed in to change notification settings - Fork 19
Changed method to get cookies from context when executing as webapp #514
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Cherry pick to beta success |
Cherry pick to beta success |
Cherry pick to beta success |
Cherry pick to beta success |
gmilano
left a comment
There was a problem hiding this 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"); |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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("+",";")); |
There was a problem hiding this comment.
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.
…nstants for Set-Cookie and Cookie
Cherry pick to beta failed, 1 conflicted file
|
Cherry pick to beta failed, 1 conflicted file
|
No description provided.