-
Notifications
You must be signed in to change notification settings - Fork 301
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
PAYARA-4219 Problem when trying to override System Properties of an instance #4321
Conversation
jenkins test please |
I tested this locally and it does make a difference but an error is still given - just has a specified error message |
What does the error say? And is it in Instance values? |
|
Not expected at all usually, which system property did you override? As that might bork things up, http listener port is a safe one to try |
@@ -885,7 +885,7 @@ public static RestResponse post(String address, Object payload, String contentTy | |||
} | |||
Response cr = target.request(RESPONSE_TYPE).header("Content-Type", contentType) | |||
.cookie(new Cookie(REST_TOKEN_COOKIE, getRestToken())) | |||
// .header("Content-type", MediaType.APPLICATION_FORM_URLENCODED) | |||
.header("Content-type", MediaType.APPLICATION_FORM_URLENCODED) |
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.
Danger Will Robinson!
I'm very wary of this change - I need to give this a thorough bashing to ensure it doesn't blow something up.
Lots of things use this method, sending all kinds of gubbins through it e.g. Rest Management Interface sending Json
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 see, I think it can be safe to revert, the jsf specifies the content type when it calls the rest request
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.
The change fixes the problem described, but I need to get out my baseball bat and give this a thwacking to see if any bugs fall out.
I didn't get any PKIX errors @cubastanley, that's an odd error to get - normally something to do with, well, certificates. |
I reproduced it once using some unorthodox values (not 100% of the time) |
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.
Assuming I caused my issue, does stop the problem stated in ticket so - aproooved
Unnecessary change
jenkins test please |
Description
This is a bug fix
Overriding system properties in
{Instance Name}-config -> System Properties -> Instance Values
failed stating "An error has occured"Testing
On a new Instance running/stopped e.g Elegant-Archerfish
Instances -> Elegant-Archerfish -> Properties -> System Properties
changing anOverride value
should changeCurrent Value
Configurations -> Elegant-Archerfish-config -> System Properties -> Instance Values
changing theOverride Value
should save successfully.Note:
Default Value
will remain the same unless changed in the configurationCheck the override value has been applied by going back to
Instances -> Elegant-Archerfish -> Properties -> System Properties
you should see the new override value. The instance may need to be restarted.Testing Performed
Build tests
Testing against acceptance criteria
Testing Environment
Manjaro 18.0.4
Maven 3.6.1
Zulu JDK 1.8.0_222