← Back to team overview

mahara-contributors team mailing list archive

[Bug 1782729] Re: Uploading new image as skin background gives error

 

[BUG] - Navigating between folders closes the modal window

Summary: User wants to add a background image for a skin. When user
tries to add a file, a modal is  displayed, displaying the users
folders. Browsing between the folders will cause the modal window to
close which is a bug

Test steps:
1. User browse to  Main menu > Portfolio > Skins - create a new skin
2. User click the Background tab 
3. User click the Add a File button
4. User select a folder 

Actual result: the modal window is closed and upon reopening the modal
window, the folder contents are now displayed

Expected result: When a folder is selected - 
--- a. the folder contents should be displayed. 
--- b. Navigating through different folders should not close the modal window. 
--- c. selecting an image by clicking the checkmark icon should:  
------ * Close the modal window 
------ * The image should be displayed on the Create skin > background  page 

Catalyst QA

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1782729

Title:
  Uploading new image as skin background gives error

Status in Mahara:
  New

Bug description:
  Hello

  I was testing in preparation for an upgrade from v 17.04 to 18.04 and
  found that I couldn't upload a new image as a background to a skin.
  I've tried on demo.mahara.org and this is what I've found:

  I created a new skin.  Went into the Background tab and clicked on Add
  a File.  Moving between folders brings me back to the Background tab;
  I would expect it to list the files in the selected folder.   This
  happens even if there are image files in the selected folder.

  Clicking on Add a File again then shows the list of files and I can
  then select an image file and close the dialog box.   I am taken back
  to the Background tab and the image file is displayed.

  Clicking on Save at that point gives:

  Mahara Demo: Site unavailable
  A nonrecoverable error occurred. This probably means you have encountered a bug in the system 

  Suspect there's an explanation for this.  If I first upload an image
  file (256x256, PNG, 34k) into my Content-Files area, I can go through
  the above process select the image file and it saves OK.  The image
  files I had tried previously on the demo site was percy.png which is a
  profile image, 11k, PNG, 100x100 but this error has occurred
  consistently on our dev site regardless of the image selected.

  Regards
  Marion

  Browser Firefox 61.0.1
  Windows 7
  Not sure of db on demo.mahara.org; I think our dev site has MySQL

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1782729/+subscriptions


References