Skip to content
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

Handle failed tomcat war deployment (status OK but body FAIL) #27

Open
wants to merge 6 commits into
base: trunk
Choose a base branch
from

Conversation

laurentperez
Copy link

per http://tomcat.apache.org/tomcat-7.0-doc/manager-howto.html a failed deploy will trigger a body with status code 200 but with body response starting with FAIL (i18n)

this patch adds the FAIL body response handler for en/fr languages

unsure if tests are really needed (?)

tomcatHttpStatusError = Tomcat a retourn\u00E9 un code HTTP en erreur: {0}, raison: {1}
Copy link
Member

Choose a reason for hiding this comment

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

Isn't that wrong? As far as I know French always puts a space before the colon.

Copy link
Author

Choose a reason for hiding this comment

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

correct. I just added the space.

tomcatHttpStatusError = Tomcat a retourn\u00E9 un code HTTP en erreur : {0}, raison: {1}
Copy link
Member

Choose a reason for hiding this comment

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

raison is missing the trailing space too

Copy link
Author

Choose a reason for hiding this comment

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

fixed

@laurentperez
Copy link
Author

@michael-o do you think I should add tests ? this is a basic feat. thx for the review

@michael-o
Copy link
Member

Absolutely, if you think you can! Don't forget to squash your commits!

lperez and others added 2 commits May 25, 2017 12:10
Squashed commits:
[10efcd8] space before :
[e13cd3b] sorry, fix the }
[153af9a] handle failed tomcat war deployment
@aleksandr-m
Copy link

@olamy @michael-o Are there any plans to release new version of this plugin?

@michael-o
Copy link
Member

Wow, I completely forgot this. Will have a look later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants