Language Change NPM Resource Changed ? Pending

User tests: Successful: Unsuccessful:

avatar vorayash
vorayash
22 Apr 2022

Pull Request for Issue #37575.

Summary of Changes

Added validation for non zip files in 'build\media_source\plg_installer_packageinstaller\js\packageinstaller.es6.js'

Testing Instructions

Try to upload an extension in the "upload package file".

Actual result BEFORE applying this Pull Request

The error was showing just red colored error bar without any content.
image

Expected result AFTER applying this Pull Request

image

avatar vorayash vorayash - open - 22 Apr 2022
avatar vorayash vorayash - change - 22 Apr 2022
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 22 Apr 2022
Category Administration Language & Strings JavaScript Repository NPM Change Front End Plugins
avatar laoneo
laoneo - comment - 22 Apr 2022

I would more ask why is there no message in the alert. I think it would be better to serve a proper message from the server why the installation failed. Did you figure out where this empty error comes from?

avatar laoneo laoneo - change - 23 Apr 2022
Labels Added: Language Change NPM Resource Changed ?
avatar vorayash
vorayash - comment - 23 Apr 2022

I would more ask why is there no message in the alert. I think it would be better to serve a proper message from the server why the installation failed. Did you figure out where this empty error comes from?

When we send folder as data, xhr readystate changes to 4 and status to 0. It means request is failed. When request fails, value of xhr.statusText changes into empty string("").

image

xhr.statusText is a string so it will satisfy below-pointed condition and empty message will be shown.

image

I tried xhr request on my local machine and found that when we send folder as data, request fails. So I think sending folder is not allowed in xmlhttprequest.

avatar laoneo
laoneo - comment - 23 Apr 2022

So it means the request never arrives on the server?

avatar vorayash
vorayash - comment - 23 Apr 2022

I think so. Can you please confirm that?

avatar Fedik
Fedik - comment - 23 Apr 2022

It should be fixed the empty message, instead.
Server already doing validation. as @laoneo pointed.

80fee0a 26 Apr 2022 avatar vorayash test
avatar joomla-cms-bot joomla-cms-bot - change - 3 May 2022
Category Administration Language & Strings JavaScript Repository NPM Change Front End Plugins Administration Language & Strings JavaScript Repository NPM Change Libraries Front End Plugins

Add a Comment

Login with GitHub to post a comment