Uh oh!
There was an error while loading. Please reload this page.
ZEPPLIN-976 ] HotFix - zeppelin server does not restart when incorrect credentials data. - #976
ZEPPLIN-976 ] HotFix - zeppelin server does not restart when incorrect credentials data.#976cloverhearts wants to merge 6 commits into
Conversation
cloverhearts
commented
Jun 8, 2016
retry ci |
| String password = messageMap.get("password"); | ||
| if (entity == null || username == null || password == null) { | ||
| return new JsonResponse(Status.INTERNAL_SERVER_ERROR, "", "").build(); |
There was a problem hiding this comment.
Status.BAD_REQUEST would be more adequate here.
There was a problem hiding this comment.
@echarles
Thank you for your feedback.
You're right. i've changed.
| String username = messageMap.get("username"); | ||
| String password = messageMap.get("password"); | ||
| if (entity == null || username == null || password == null) { |
There was a problem hiding this comment.
And they could not be "", or is that case is ok?
There was a problem hiding this comment.
An empty string does not have a problem in Zeppelin server.
I only solve a serious trouble in this pr.
bzz
commented
Jun 9, 2016
@cloverhearts thank you for hotfixing! How do you think, is there a chance we could have a test that reproduces this issue under this PR or do you think it would be to hard add? |
cloverhearts
commented
Jun 10, 2016
@bzz Problem situation, please refer to the screenshot. Reproduce the problem, please note the following:
|
Leemoonsoo
commented
Jun 13, 2016
The fix looks good to me. But like @bzz mentioned, it will be even better if there're unittest for this problem. |
cloverhearts
commented
Jun 13, 2016
@bzz@Leemoonsoo |
bzz
commented
Jun 13, 2016
@cloverhearts yes, if that is not very hard to do |
cloverhearts
commented
Jun 13, 2016
@bzz Okay, i would be make it. |
cloverhearts
commented
Jun 14, 2016
add test code about invalid request for credentials api |
cloverhearts
commented
Jun 14, 2016
retry ci |
minahlee
commented
Jun 14, 2016
@cloverhearts Seems like integration test fails, can you fix it please? |
cloverhearts
commented
Jun 15, 2016
@minahlee it's not my issue. |
astroshim
commented
Jun 15, 2016
LGTM. |
cloverhearts
commented
Jun 15, 2016
ci pass. |
bzz
commented
Jun 15, 2016
@cloverhearts thank you for adding tests! |
…t credentials data. ### What is this PR zeppelin server does not restart when incorrect credentials data. reproduce. 1. Click to zeppelin home for web ui. 2. Click to zeppelin Credentials. 3. 'Entity' information without writing, username and password only written to storage. 4. Click to zeppelin home for web ui. 5. Click to zeppelin Credentials. and zeppelin restart. ##### but, Zeppelin does not work. It creates the wrong json file. 'conf / credentials.json' according to the null. ### What type of PR is it? Hot Fix ### What is the Jira issue? https://issues.apache.org/jira/browse/ZEPPELIN-976 ### How should this be tested? 1. Click to zeppelin home for web ui. 2. Click to zeppelin Credentials. 3. 'Entity' information without writing, username and password only written to storage. 4. Click to zeppelin home for web ui. 5. Click to zeppelin Credentials. and zeppelin restart. zeppelin does work! ### Reproduced Screenshots  ### Questions: * Does the licenses files need update? no * Is there breaking changes for older versions? no * Does this needs documentation? no Author: CloverHearts <cloverheartsdev@gmail.com> Closes#976 from cloverhearts/hotfix/CredentialsJsonBug and squashes the following commits: 293ab08 [CloverHearts] Merge branch 'master' into hotfix/CredentialsJsonBug ef256c2 [CloverHearts] Merge branch 'master' into hotfix/CredentialsJsonBug 5079495 [CloverHearts] add test code for credentials backends about invalid request. e9a1e93 [CloverHearts] Merge branch 'master' into hotfix/CredentialsJsonBug 4b9aba3 [CloverHearts] changed status code for CredentialsRestapi 1e5cd72 [CloverHearts] Credentials Json serialize backend bug.
…t credentials data. ### What is this PR zeppelin server does not restart when incorrect credentials data. reproduce. 1. Click to zeppelin home for web ui. 2. Click to zeppelin Credentials. 3. 'Entity' information without writing, username and password only written to storage. 4. Click to zeppelin home for web ui. 5. Click to zeppelin Credentials. and zeppelin restart. ##### but, Zeppelin does not work. It creates the wrong json file. 'conf / credentials.json' according to the null. ### What type of PR is it? Hot Fix ### What is the Jira issue? https://issues.apache.org/jira/browse/ZEPPELIN-976 ### How should this be tested? 1. Click to zeppelin home for web ui. 2. Click to zeppelin Credentials. 3. 'Entity' information without writing, username and password only written to storage. 4. Click to zeppelin home for web ui. 5. Click to zeppelin Credentials. and zeppelin restart. zeppelin does work! ### Reproduced Screenshots  ### Questions: * Does the licenses files need update? no * Is there breaking changes for older versions? no * Does this needs documentation? no Author: CloverHearts <cloverheartsdev@gmail.com> Closesapache#976 from cloverhearts/hotfix/CredentialsJsonBug and squashes the following commits: 293ab08 [CloverHearts] Merge branch 'master' into hotfix/CredentialsJsonBug ef256c2 [CloverHearts] Merge branch 'master' into hotfix/CredentialsJsonBug 5079495 [CloverHearts] add test code for credentials backends about invalid request. e9a1e93 [CloverHearts] Merge branch 'master' into hotfix/CredentialsJsonBug 4b9aba3 [CloverHearts] changed status code for CredentialsRestapi 1e5cd72 [CloverHearts] Credentials Json serialize backend bug.
What is this PR
zeppelin server does not restart when incorrect credentials data.
reproduce.
and zeppelin restart.
but, Zeppelin does not work.
It creates the wrong json file. 'conf / credentials.json' according to the null.
What type of PR is it?
Hot Fix
What is the Jira issue?
https://issues.apache.org/jira/browse/ZEPPELIN-976
How should this be tested?
and zeppelin restart.
zeppelin does work!
Reproduced Screenshots
Questions: