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

Fix showing metadata header problems #1759

Merged

Conversation

squirrelo
Copy link
Contributor

This fixes #1745 by escaping the text to be shown in the prep and sample metadata messages before sending into the javascript, then unescaping it before being shown. This removes all characters that could interfere with the javascript working.

See the broken /slash and broken \slash columns above that would otherwise break the system.
screen shot 2016-04-08 at 14 53 39

@coveralls
Copy link

Coverage Status

Coverage increased (+0.05%) to 82.769% when pulling d665068 on squirrelo:fix-showing-metadata-header-problems into c93058d on biocore:master.

@antgonza
Copy link
Member

antgonza commented Apr 9, 2016

Could you add a patch to current messages? Basically, a loop over the redis messages so they can be displayed. Thanks.

@squirrelo
Copy link
Contributor Author

Not sure what you are asking, could you clarify? The system messages display fine:
screen shot 2016-04-09 at 08 11 55

However, with or without a system message the error messages are showing up above the nav bar, which shouldn't happen. This is also happening on the main deploy currently. I'll try and figure out why this is happening and fix it.

@antgonza
Copy link
Member

antgonza commented Apr 9, 2016

Sorry for the poor wording. What I was asking is to add a fix for the current messages in the system, not only the new ones. However, I think this line does this, is that right?

@squirrelo
Copy link
Contributor Author

Yes, that is correct. It url encodes any message as it comes out of the system, so it will work with current as well as future messages.

@antgonza
Copy link
Member

👍

@josenavas josenavas merged commit 9877526 into qiita-spots:master Apr 11, 2016
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.

Incorrectly formatted headers break the system
4 participants