Skip to content
This repository has been archived by the owner on Aug 20, 2019. It is now read-only.

Hubot converting '&' to '&' - breaks some image links in Hipchat web client #54

Open
JustinMullin opened this issue Jul 29, 2015 · 11 comments

Comments

@JustinMullin
Copy link
Contributor

When hubot prints a message, ampersands are URL encoded, which is improper for Hipchat, and breaks some image links ("Failed to load the image"). To reproduce, try 'nerdbot cast storm crow' in the Hipchat web client. The resulting image response from Nerdbot should fail to load.

The native client seems to load these URLs successfully, I only see this issue in the web client. I assume this is related to hipchat/hubot-hipchat#247 and can be addressed by updating the hubot module.

@JustinMullin
Copy link
Contributor Author

Hey Nerdbot maintainers - I believe the fix for this is just an npm update. Any chance someone with access can try that? It would be a quick usability improvement for those of us on the Hipchat web client. =) Thanks!

@jeremy-nerdery
Copy link
Member

A node update throws up all over itself. I don't have time to dig into the error, but if you know how to resolve it, please let me know:

In file included from ../src/binding.cc:18:
../node_modules/nan/nan.h:318: error: 'REPLACE_INVALID_UTF8' is not a member of 'v8::String'

@JustinMullin
Copy link
Contributor Author

Hmm, okay. I'll see if I can reproduce, but update worked fine for me. Thanks for trying @jcarlso5, much appreciated. Definitely not a huge priority if it's going to be more than a command. =)

@kensykora
Copy link
Contributor

What version of node you guys running @jcarlso5

@jeremy-nerdery
Copy link
Member

I was able to update node to 0.10.40 and update all nerdbot packages. Please test!

@kensykora
Copy link
Contributor

Fixed!

screen shot 2015-09-11 at 10 38 40 am

@kensykora
Copy link
Contributor

kinda? I mean the image shows up but the URL still seems weird.

@kensykora kensykora reopened this Sep 11, 2015
@jeremy-nerdery
Copy link
Member

Appears to be broken in Chrome 45 on Mac as well
screenshot 2015-09-11 10 57 46

@JustinMullin
Copy link
Contributor Author

Yeah, it's only an issue from the web client. The problem is the & encoding in the URL, which the web client doesn't like - looks like it's still encoding the ampersand so the fix didn't work. Last I checked it was working properly from a clean checkout and build, so I'm not sure what else might be wrong. I'll take a second look next time I have a chance.

@Bendetta
Copy link
Contributor

I have this problem with the desktop apps for both Mac (El Capitan) and Windows (8.1)

@kensykora
Copy link
Contributor

Can we try updating modules again and see if this fixes the issue? Otherwise we'll need to dig deeper.

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

No branches or pull requests

4 participants