Update this media in all layouts it is assigned to doesn't work

Bug #1318785 reported by Dan Garner
30
This bug affects 5 people
Affects Status Importance Assigned to Milestone
Xibo
Fix Released
Undecided
Dan Garner

Bug Description

Hi,

I am on XIBO 1.6 and am interested in the update media part of the library but I can't get it to work.

I am logged in as XIBO_ADMIN

When I change the media to a newer version and click download it shows the new media.
When I browse to a layout with the media in it still shows the old one.
When I look in the library folder it shows both the old and new one (with the names of the files replaced as numbers)

I initially tried using web and edit the file and browse to the newer one but that didn't work.
Then I tried to change the newer versions filename and upload it but hat didn't either.

All done via the web, I haven't messed with the files outside the web.

Am I missing a step here? Bit concerned about the files too if newer versions are added to the folders instead of overwriting as I am uploading 5x60mb videos per week to the site.

Tags: cms

Related branches

Revision history for this message
Dan Garner (dangarner) wrote :

Please see R335 in attached branch for patches.

tags: added: cms
Changed in xibo:
milestone: none → 1.6.1
assignee: nobody → Dan Garner (dangarner)
status: New → Fix Committed
Revision history for this message
Andy Rogers (andy-rogers) wrote :

I have tested out this tarball and it does work now updating the media throughout the Xibo layouts, but just one point now....
Should the original media be deleted, and replaced with the new one?

I am seeing the original media being retained and the new one present also in the library folder on the server.

Revision history for this message
Andy Rogers (andy-rogers) wrote :

Ok another issue just spotted.....
When i am using the "delete" button from within the library when I have updated the media several times and for example the files in the library folder are 110,111,112,113.

The most recent one gets deleted 113, but then in the library list 112 is listed until I hut delete again. Then 111 etc.....

Is this the correct behavior?

Revision history for this message
Alex Harrington (alexharrington) wrote : Re: [Bug 1318785] Re: Update this media in all layouts it is assigned to doesn't work

Both behaviours are intended. The library is versioned, so if you delete
the newest version, the prior one will replace it. If you add a new
version, the old one remains unless specifically deleted first

Revision history for this message
Laercio (laercionit) wrote :

Good afternoon.

How do I download the file to update and fix for this BUG?
I do not understand the process explained above to download the R335.

Revision history for this message
Dan Garner (dangarner) wrote :

You can download just the files listed here: http://bazaar.launchpad.net/~dangarner/xibo/server-161/revision/335

Or you can download the tarball of the whole CMS at that revision here: http://bazaar.launchpad.net/~dangarner/xibo/server-161/tarball/335

Dan Garner (dangarner)
Changed in xibo:
status: Fix Committed → Fix Released
Revision history for this message
Georgi Dobrev (h-infq-b) wrote :

Hi,
I have updated with the tarball, but if I place few rows in the timeline from the same library item it will update only the first placed items.
Now I have few items in the timeline with different versions of the library item.

Revision history for this message
Chris Gumm (cgumm) wrote :

Hi, update 1.61 still has the issue where it will not update all layouts with and updated library item. I am seeing that it will only update the first layout in the list.

Revision history for this message
Dan Garner (dangarner) wrote :

Please be aware that it will only update the items in layouts that the logged in user has permissions to edit.

If you still think this is a problem can you please provide a troubleshoot.txt file with auditing enabled that reproduces the issue (ideally where it should be replaced on two layouts)

Revision history for this message
Chris Gumm (cgumm) wrote :

All the permissions are set correctly for the logged in user. If the library item is used in multiple layouts it still will only update the first layout in the layout list. Here is the troubleshoot.txt to look at.

Thanks

Revision history for this message
Dan Garner (dangarner) wrote :

Please try replacing the attached file at /lib/modules/module.class.php

Changed in xibo:
milestone: 1.6.1 → 1.6.2
status: Fix Released → Fix Committed
Revision history for this message
Dan Garner (dangarner) wrote :

Thanks, I think I might have spotted the problem - please see the above comment with a file to try and patch

Revision history for this message
Chris Gumm (cgumm) wrote :

Same issue with replacing the /lib/modules/module.class.php with the new one. Here is the log file.

Revision history for this message
Dan Garner (dangarner) wrote :

Your new log appears to show the transaction executing successfully (I.e it gets to the end). It might be that the previous failures have messed up your data and that revision was only on 1 layout?

Revision history for this message
Chris Gumm (cgumm) wrote :

Ok, so the patch did work. I just had to go back into the layouts and delete the library item and then re-add it. Once I did that I could update the library item and it would then update all the layouts that the user had permission too.

Thanks you

Revision history for this message
bhavanitech (bhavanitechconsultant) wrote :

Hi,

I am on win 7 x64 xibo 1.6.2 server and dotnet 1.6.1 client. When I updated a background image already assigned to a layout via library it does not get updated in the layout using it. The background image field in the "Change the Background Properties" dialog (Layout > Options > Background) reads 'None' although it displays the thumbnail of the currently used background image (not the updated image).

If the background image file wasnt't updated the "Change Background Properties" dialog displayed the user defined name of the file.

thanks
BT.

Josh (irefuse)
Changed in xibo:
status: Fix Committed → Fix Released
Dan Garner (dangarner)
Changed in xibo:
status: Fix Released → Fix Committed
Revision history for this message
Alex Harrington (alexharrington) wrote :

Please don't remove branch links!

Dan Garner (dangarner)
Changed in xibo:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

Bug watches keep track of this bug in other bug trackers.