Page MenuHomePhabricator

Clicking on images for lightbox won't load with Persistent Chat enabled
Closed, ResolvedPublic

Assigned To
Authored By
Oct 25 2016, 8:04 AM
Referenced Files
F1885899: CvfFAzeWEAALaEI.jpg
Oct 25 2016, 3:33 PM
F1885694: Screen Shot 2016-10-25 at 4.43.14 AM.png
Oct 25 2016, 11:45 AM
"The World Burns" token, awarded by chad."Heartbreak" token, awarded by OCram.



  • Maniphest
  • Create Task
  • Drag/Drop an image to the task
  • Create New Task
  • Now try to click on the image you attached.

When you click on a media attachment the Media preview is not triggered. Nothing happens. And if you refresh the page, the url has changed to the url of the image.
The same result happens if you click on a media attachment in Phriction.

Version info:
phabricator 5efbf4d74aa72c5a7d7f161ea8c5aa33ac0e3189 (Sat, Oct 22)
arcanist e17fe43ca3fe6dc6dd0b5ce056f56310ea1d3d51 (Sat, Oct 22)
phutil 20841d2321275c87ff8718422868ef6b1beb16c4 (Sat, Oct 22)

Reproduced on Win 7 with
Chrome 54.0.2840.71 m
Firefox 49.0.2

Event Timeline

epriestley added a subscriber: epriestley.

I can't reproduce this by following the steps you describe. Here's a screenshot of this working properly for me:

Screen Shot 2016-10-25 at 4.43.14 AM.png (1×2 px, 1 MB)

We need to be able to reproduce this before we can resolve it.

Next steps:

  • provide additional information so we can reproduce the issue (see Providing Reproduction Steps); or
  • we'll close this report after a few days if we're still unable to reproduce the issue.

Hah, I found out what triggered the error on our installation.

If I enable "Persistent Chat", then media preview does not work.
If I disable "Persistent Chat", then media preview works as expected.

This coincides with our experience that media preview used to work some weeks ago.

Can you reproduce that on this server? Offhand I cannot, but "Persistent Chat" is Quicksand based, so it make be dependent on a certain way you navigate. Quicksand is an ajax layer we use to build full pages.

@rphl @samr can you confirm if your users were using "Persistent Chat" when they encountered this? I'm trying to find a repro with that but haven't quite yet. It is plausible given the magical nature of Quicksand.

Are there errors in the javascript console? I have persistent chat always on, using Mac/Chrome - and haven't ran into this here on this server. Can you reproduce here? A specific task or diff?

@chad when persistent chat is open here the preview works fine. We also use Mac/Chrome.

@chad I cannot reproduce the issue on this server.

Added note, I just reproduced the issue on a Mac/Safari client of our instance. And the Javascript Console does not come up with any errors/warnings or anything.

I'm not finding anything magical that triggers the error at least against this server or my test server. Are you all running notification servers?

Yes we are. I can try to stop the notification server tomorrow, will see if that makes any difference.

I tried stopping aphlict notification server. Stopping it has no effect, the issue still reproduces if I have Persistent Chat enabled.

Our users can confirm this behavior. With active persistent chat, the Lightbox is not working. If it is disabled, its working as expected.

Our users can confirm this behavior. With active persistent chat, the Lightbox is not working. If it is disabled, its working as expected.

Based on these steps, we cannot reproduce the issue and this bug still cannot move forward. Does anyone have any additional steps or environmental details we can use to build a reproduction case?

This comment was removed by chad.

Could phabricator.base-uri setting affect this? Our install is accessed via

chad renamed this task from Clicking on a media does not trigger preview, refreshing the page now loads url of media to Clicking on images for lightbox won't load with Persistent Chat enabled.Nov 16 2016, 6:33 PM

@flippingtables: Do you access to your phabrictor intance through a loadbalancer?

I think it's a race condition with quicksand

I'll generate a best guess patch later today.

This reproduces somewhat-reliably for me with Quicksand (Persistent Chat) on.

(This likely would not be reproducible on any instance which has security.alternate-file-domain configured, which is why it wouldn't reproduce here or in the Phacility cluster.)

I'm reasonably sure that fixes it; let us know if you're still seeing issues after updating.

Well, I do not have configured the security,alternate-file-domain.
But it works now for me with this fix :D
Macro parrot:

Oh, sorry, I meant: if security.alternate-file-domain was configured, that prevented this problem.

We recommend configuring this value, so both this install and Phacility instances have it configured. Thus, the problem did not reproduce here or on Phacility instances.