Page MenuHomePhabricator

[BUG] Errors when previewing and downloading translation of StressEnergyTensor contravariant.svg
Closed, ResolvedPublic5 Estimated Story PointsBUG REPORT

Description

What is the problem?

Using the SVG Translate Tool, I am attempting to translate StressEnergyTensor contravariant.svg to Romanian. After changing the labels, the "Upload to Commons" is still disabled.

Steps to reproduce problem
  1. open SVG Translate Tool
  2. select the file "StressEnergyTensor contravariant.svg" and the target translation language Romanian (I'm not sure if other languages have the same issue)
  3. edit the labels
  4. try to upload the result to Commons, or at least to download the resulting svg

Expected behavior: The modified file is uploaded to Commons or downloaded to the user's machine
Observed behavior: The "upload to Commons" button is disabled; if the "Download" button is clicked, then an error occurs (Firefox says "<TEMP_FILE_PATH> could not be saved, because the source file could not be read", where <TEMP_FILE_PATH> is a path in the temporary directory on the local machine; Chrome starts the download, but it ends in "Network error"). Also, the interface starts randomly to throw preview errors at every edit ("An error occurred when fetching the preview. Please continue translating, but if this error persists do report a bug (via the link in the footer below)")

Environment

Operating system: Linux
Browser: Firefox 66.0.3, Chrome 73.0.3683.75
Wiki(s):
Editor, if applicable:

Screenshots (if applicable):

Related Objects

Mentioned In
T225450: [BUG] Prevent preview errors when leaving page
T225293: [BUG][8 hours] Investigate why the SVGTranslate webservice needs to be restarted so often
rGSVT1f331c6c25e3: Fixed errors when previewing and downloading an SVG file in translate page
rGSVT97ee521b704c: Fixed errors when previewing and downloading an SVG file in translate page
rGSVTed2db6ac49d6: Fixed errors when previewing and downloading an SVG file in translate page
rGSVT6576af5f9894: Fixed errors when previewing and downloading an SVG file in translate page
rGSVTb4a4cad04731: Fixed errors when previewing and downloading an SVG file in translate page
rGSVT9fb5ae2d34c9: Fixed errors when previewing and downloading an SVG file in translate page
rGSVTc874bcc2bc61: Fixed errors when previewing and downloading an SVG file in translate page
rGSVT3e88555ae72c: Fixed errors when previewing and downloading an SVG file in translate page
rGSVT7e8526b519ec: Fixed errors when previewing and downloading an SVG file in translate page
rGSVT94062feb9de5: Fixed errors when previewing and downloading an SVG file in translate page
rGSVTaa99fa65709a: Fixed errors when previewing and downloading an SVG file in translate page
rGSVT112bb7ce400f: Fixed errors when previewing and downloading an SVG file in translate page
rGSVTc32bb49dc11a: Fixed errors when previewing and downloading an SVG file in translate page
rGSVT2dcee8a0452a: Fixed errors when previewing and downloading an SVG file in translate page
T222510: [BUG] Cannot download SVG if translation inputs are empty
T223340: [Bug] Image fails to load but no error message shows and Leaflet pretends to continue loading

Event Timeline

Niharika triaged this task as Medium priority.May 14 2019, 11:51 PM
Niharika set the point value for this task to 5.
Restricted Application changed the subtype of this task from "Task" to "Bug Report". · View Herald Transcript
dom_walden added a subscriber: dom_walden.

I can no longer provoke the "An error occurred when fetching the preview..." popup when clicking download mid-translation, on either Firefox or Safari.

Nor have I seen a situation where the Download button remains disabled.

Moreover, the preview always loads successfully (except after doing an upload, which is probably unrelated. I will raise a separate bug.)

For regression purposes, I also tested that the Upload button has not changed behaviour.

I believe the other error described in "Observed behavior" is unrelated to this fix. I have seen it occur when the webservice needs a restart. I will raise a separate bug.

I can no longer provoke the "An error occurred when fetching the preview..." popup when clicking download mid-translation, on either Firefox or Safari.

However, the same error does occur when, mid-translation, you do something that moves you away from the page. For example, clicking "Log in" or "pick another file".

@Niharika Would you like bugs raised on those? Perhaps those links could be disabled when the preview is being generated as well, the same way the Downloads link is.

I can no longer provoke the "An error occurred when fetching the preview..." popup when clicking download mid-translation, on either Firefox or Safari.

However, the same error does occur when, mid-translation, you do something that moves you away from the page. For example, clicking "Log in" or "pick another file".

@Niharika Would you like bugs raised on those? Perhaps those links could be disabled when the preview is being generated as well, the same way the Downloads link is.

@dom_walden Yeah, we should have a ticket for that. Disabling the links sounds like a good idea. Thanks. :)