Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Bricolage: bugs

[Bricolage #184] bric_soap media update sets the current time as the media's expire date

 

 

Bricolage bugs RSS feed   Index | Next | Previous | View Threaded


no-reply at lighthouseapp

Jul 6, 2010, 2:29 PM

Post #1 of 4 (400 views)
Permalink
[Bricolage #184] bric_soap media update sets the current time as the media's expire date

// Add your reply above here
==================================================
theory updated this ticket at July 6th, 2010 @ 09:29 PM
* Assigned user changed from "Bugs (at bricolage)" to "theory"
* State changed from "new" to "open"
* Milestone changed from "" to "1.10.11"
I am unable to replicate this issue. Can you confirm that the `expire_date` column is set when you do this?
--------------------------------------------------------------------------------

Assigned: theory
State: open
Milestone: 1.10.11
View this ticket online: http://bricolage.lighthouseapp.com/projects/29601/tickets/184-bric_soap-media-update-sets-the-current-time-as-the-medias-expire-date
Stop being notified of this ticket's changes: http://bricolage.lighthouseapp.com/projects/29601/tickets/184-bric_soap-media-update-sets-the-current-time-as-the-medias-expire-date/watch
Update your Profile: http://bricolage.lighthouseapp.com/profile
Support: support [at] lighthouseapp or http://help.lighthouseapp.com


no-reply at lighthouseapp

Jul 6, 2010, 2:32 PM

Post #2 of 4 (377 views)
Permalink
[Bricolage #184] bric_soap media update sets the current time as the media's expire date [In reply to]

// Add your reply above here
==================================================
theory updated this ticket at July 6th, 2010 @ 09:32 PM

If so, please also paste an example of all the SOAP command you're using to do this: the one to export and the one to update.

Thanks,

David
--------------------------------------------------------------------------------

Assigned: theory
State: open
Milestone: 1.10.11
View this ticket online: http://bricolage.lighthouseapp.com/projects/29601/tickets/184-bric_soap-media-update-sets-the-current-time-as-the-medias-expire-date
Stop being notified of this ticket's changes: http://bricolage.lighthouseapp.com/projects/29601/tickets/184-bric_soap-media-update-sets-the-current-time-as-the-medias-expire-date/watch
Update your Profile: http://bricolage.lighthouseapp.com/profile
Support: support [at] lighthouseapp or http://help.lighthouseapp.com


no-reply at lighthouseapp

Jul 7, 2010, 5:49 AM

Post #3 of 4 (372 views)
Permalink
[Bricolage #184] bric_soap media update sets the current time as the media's expire date [In reply to]

// Add your reply above here
==================================================
Nick Legg updated this ticket at July 7th, 2010 @ 12:49 PM

Before SOAP export:
-------------------
bric=> select media.id,current_version,publish_date,expire_date,active,uri from media,media_uri where media.id = media_uri.media__id and media_uri.uri like '%hamster%';
id | current_version | publish_date | expire_date | active | uri
-------+-----------------+---------------------+-------------+--------+-----------------------------------------
46878 | 28 | 2010-07-06 19:29:46 | | t | /testpages/hamster%20on%20a%20piano.jpg

SOAP export:
------------
/usr/local/bricolage/bin/bric_soap media export media_46878 > exported_media_46878.xml

Exported file:
--------------
See my attachment exported_media_46878.xml (no changes were made to the file between export and update)

SOAP update:
------------
/usr/local/bricolage/bin/bric_soap media update exported_media_46878.xml

After SOAP update:
------------------
bric=> select media.id,current_version,publish_date,expire_date,active,uri from media,media_uri where media.id = media_uri.media__id and media_uri.uri like '%hamster%';
id | current_version | publish_date | expire_date | active | uri
-------+-----------------+---------------------+---------------------+--------+-----------------------------------------
46878 | 29 | 2010-07-07 12:40:21 | 2010-07-07 12:40:21 | t | /testpages/hamster%20on%20a%20piano.jpg
--------------------------------------------------------------------------------

Assigned: theory
State: open
Milestone: 1.10.11
Assets:
- exported_media_46878.xml http://bricolage.lighthouseapp.com/projects/29601/tickets/184/a/587673/exported_media_46878.xml
View this ticket online: http://bricolage.lighthouseapp.com/projects/29601/tickets/184-bric_soap-media-update-sets-the-current-time-as-the-medias-expire-date
Stop being notified of this ticket's changes: http://bricolage.lighthouseapp.com/projects/29601/tickets/184-bric_soap-media-update-sets-the-current-time-as-the-medias-expire-date/watch
Update your Profile: http://bricolage.lighthouseapp.com/profile
Support: support [at] lighthouseapp or http://help.lighthouseapp.com


no-reply at lighthouseapp

Jul 7, 2010, 12:52 PM

Post #4 of 4 (373 views)
Permalink
[Bricolage #184] bric_soap media update sets the current time as the media's expire date [In reply to]

// Add your reply above here
==================================================
theory updated this ticket at July 7th, 2010 @ 07:52 PM
* State changed from "open" to "resolved"
Thanks. Was able to replicate it by enabling `EXPIRE_ON_DEACTIVATE`, which is a 2.0 feature (backported to your install). Not sure why it wasn't happening to you for stories, as the code is the same. Anyway, fixed in [317a77e](http://github.com/bricoleurs/bricolage/commit/317a77ec6c9b341d7dc5d59bea4f41d356dbaae2) and backported to 2.0 in [0b6ef0e](http://github.com/bricoleurs/bricolage/commit/0b6ef0e06104c34f9c8dc79f28f22488471e2d3a) and to 1.10 in [94ee125](http://github.com/bricoleurs/bricolage/commit/94ee12510984fc0a72793d8e831e9445407cdf6f).

Thanks!
--------------------------------------------------------------------------------

Assigned: theory
State: resolved
Milestone: 1.10.11
View this ticket online: http://bricolage.lighthouseapp.com/projects/29601/tickets/184-bric_soap-media-update-sets-the-current-time-as-the-medias-expire-date
Stop being notified of this ticket's changes: http://bricolage.lighthouseapp.com/projects/29601/tickets/184-bric_soap-media-update-sets-the-current-time-as-the-medias-expire-date/watch
Update your Profile: http://bricolage.lighthouseapp.com/profile
Support: support [at] lighthouseapp or http://help.lighthouseapp.com

Bricolage bugs RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.