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

Mailing List Archive: Bricolage: users
bric_soap export & create issues
 

Index | Next | Previous | View Flat


k.rudnik at gmail

Mar 23, 2010, 1:03 PM


Views: 957
Permalink
bric_soap export & create issues

Hi,
I want to transfer some stories from a devel instance (11.2) to
another devel instance (11.3) and have some problems.
I run
bric_soap story export --all 1024 >story_1024.xml
bric_soap story create --server serverB story_1024.xml

If story 1024 has been published on serverA then I get an sql error

ERROR: new row for relation "story" violates check constraint
"ck_story__publish_status"
[.for Statement "INSERT INTO story (id, uuid, priority, source__id,
usr__id, element_type__id, first_publish_date, publish_date,
expire_date, current_version, published_version, workflow__id,
publish_status, primary_uri, active, desk__id, site__id, alias_id)
VALUES (NEXTVAL('seq_story'), ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,
?, ?, ?, ?)" with ParamValues:
1='2E4CD37E-2708-11DF-8B60-A09EE39715BC', 2='3', 3='1', 4='0',
5='1060', 6='2010-01-18 10:23:27.000000', 7='2010-01-18
10:23:27.000000', 8='2010-03-03 21:03:13.000000', 9='0', 10=undef,
11='0', 12='0', 13='/ui/inc/site_php_include_main/', 14='0', 15='0',
16='100', 17=undef] at /usr/local/bricolage/lib/Bric/Util/DBI.pm line
1138, etc.


I suspect that I should modify xml before bric_soap create (correct me please):
set publish_status -> 0
and remove first_publish_date, publish_date tags
(anything else?)

If a story has not been published before no error occures unless a
story has media related.
In this case I get an sql error:
ERROR: insert or update on table "media_element" violates foreign key
constraint "fk_media_element__related_media"\nDETAIL: Key
(related_media__id)=(1052) is not present in table "media". [.for
Statement "\n UPDATE media_element\n SET
element_type__id = ?, object_instance_id = ?, parent_id = ?, place =
?, object_order = ?, displayed = ?, related_story__id = ?,
related_media__id = ?, active = ?\n WHERE id = ?\n " with
ParamValues: 1='1071', 2='1025', 3=undef, 4='0', 5='1', 6='0',
7=undef, 8='1052', 9='1', 10='1025']

Both story and related media has been created on server B but a
relation hasn't been established.

The last strange thing is that all stories (published or unpublished
on serverA) created
via bric_soap on serverB have published_version=1 just after creation.

I tried to digg bric list archive but couldn't find anything that could help me.

Could anybody help me, please
Krzysztof

Subject User Time
bric_soap export & create issues k.rudnik at gmail Mar 23, 2010, 1:03 PM
    Re: bric_soap export & create issues david at kineticode Mar 23, 2010, 7:17 PM
    Re: bric_soap export & create issues k.rudnik at gmail Mar 24, 2010, 2:19 AM
    Re: bric_soap export & create issues david at kineticode Mar 24, 2010, 7:08 PM
    Re: bric_soap export & create issues k.rudnik at gmail Mar 25, 2010, 3:43 AM

  Index | Next | Previous | View Flat
 
 


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