bgerp/bgerp — Issue #181: email_Inboxes - проблем с Имейл кутии-те в нова база
Author: arsov
Created: 2012-02-10 08:13:31+00:00
State: open
Labels: email, Грешка

Документи >> ИМЕЙЛ >> Кутии - таблица Имейл кутии - при създаване на нова база Имейл кутии-те по дефолт не се създават правилно - в нова база Selenium създадените кутии са:

@
Test@
arsov@

при дефинирани потребители Test и arso ( http://cloud.bgerp.com/Selenium/email_Inboxes/ ).

При опит за обновяване на пакета bgerp (първият такъв след първоначалното му инсталиране) - гърми:

http://cloud.bgerp.com/Selenium/core_Packs/install/?pack=bgerp

Прекъсване на линия 646 в /var/www/sites/ef_root_cloud/Selenium/ef/core/Db.class.php

(string) ГРЕШКА В БАЗАТА ДАННИ

(string) Грешка в БД при изпълняване на заявка

(array)
query : (string) INSERT INTO `email_inboxes` SET `email` = '@', `server` = 'localhost', `user` = 'catchall@selenium.bgerp.com', `password` = 'scxt2wu9', `period` = '1', `port` = '143', `type` = 'imap', `bypass_routing_rules` = 'no', `in_charge` = '1', `access` = 'team', `state` = 'active', `created_by` = '-1', `created_on` = '2012-02-10 10:12:03'
error : (string) Duplicate entry '@' for key 'email'

Стек

(array)
file : (string) /var/www/sites/ef_root_cloud/Selenium/ef/core/Db.class.php
line : (integer) 646
function : (string) error
args : (array)
0 : (string) Грешка в БД при изпълняване на заявка
1 : (array)
query : (string) INSERT INTO `email_inboxes` SET `email` = '@', `server` = 'localhost', `user` = 'catchall@selenium.bgerp.com', `password` = 'scxt2wu9', `period` = '1', `port` = '143', `type` = 'imap', `bypass_routing_rules` = 'no', `in_charge` = '1', `access` = 'team', `state` = 'active', `created_by` = '-1', `created_on` = '2012-02-10 10:12:03'
error : (string) Duplicate entry '@' for key 'email'

2 : (string) ГРЕШКА В БАЗАТА ДАННИ

(array)
file : (string) /var/www/sites/ef_root_cloud/Selenium/ef/core/Db.class.php
line : (integer) 157
function : (string) checkForErrors
class : (string) core_Db
object : (core_Db)
dbName : (string) Selenium
dbUser : (string) test
dbHost : (string) localhost
link : (resource) Resource id #28
lastRes : (unknown type) Resource id #1470
loadList : (NULL)
pluginsList : (NULL)
invocableMethods : (array)

dbCharset : (string) utf8
query : (string) INSERT INTO `email_inboxes` SET `email` = '@', `server` = 'localhost', `user` = 'catchall@selenium.bgerp.com', `password` = 'scxt2wu9', `period` = '1', `port` = '143', `type` = 'imap', `bypass_routing_rules` = 'no', `in_charge` = '1', `access` = 'team', `state` = 'active', `created_by` = '-1', `created_on` = '2012-02-10 10:12:03'

type : (string) ->
args : (array)
0 : (string) изпълняване на заявка
1 : (boolean) FALSE

(array)
file : (string) /var/www/sites/ef_root_cloud/Selenium/ef/core/Mvc.class.php
line : (integer) 270
function : (string) query
class : (string) core_Db
object : (core_Db)
dbName : (string) Selenium
dbUser : (string) test
dbHost : (string) localhost
link : (resource) Resource id #28
lastRes : (unknown type) Resource id #1470
loadList : (NULL)
pluginsList : (NULL)
invocableMethods : (array)

dbCharset : (string) utf8
query : (string) INSERT INTO `email_inboxes` SET `email` = '@', `server` = 'localhost', `user` = 'catchall@selenium.bgerp.com', `password` = 'scxt2wu9', `period` = '1', `port` = '143', `type` = 'imap', `bypass_routing_rules` = 'no', `in_charge` = '1', `access` = 'team', `state` = 'active', `created_by` = '-1', `created_on` = '2012-02-10 10:12:03'

type : (string) ->
args : (array)
0 : (string) INSERT INTO `email_inboxes` SET `email` = '@', `server` = 'localhost', `user` = 'catchall@selenium.bgerp.com', `password` = 'scxt2wu9', `period` = '1', `port` = '143', `type` = 'imap', `bypass_routing_rules` = 'no', `in_charge` = '1', `access` = 'team', `state` = 'active', `created_by` = '-1', `created_on` = '2012-02-10 10:12:03'

(array)
function : (string) save_
class : (string) core_Mvc
object : (email_Inboxes)
loadList : (string) email_Wrapper, plg_State, plg_Created, doc_FolderPlg, plg_RowTools
title : (string) Имейл кутии
canRead : (string) admin, email
canEdit : (string) admin, email
canAdd : (string) admin, email
canView : (string) admin, email
canList : (string) admin, email
canDelete : (string) admin, email
canEmail : (string) admin, email
interfaces : (array)
0 : (string) doc_FolderIntf
doc_FolderIntf : (string) doc_FolderIntf

searchFields : (string) email
singleTitle : (string) Е-кутия
singleIcon : (string) img/16/inbox-image-icon.png
rowToolsSingleField : (string) email
listFields : (string) id, email, type, bypassRoutingRules=Общ, folderId, inCharge, access, shared, createdOn, createdBy
details : (array)

listItemsPerPage : (integer) 20
logKeepDays : (integer) 1
menuPage : (boolean) FALSE
tabControl : (boolean) FALSE
tabPage : (boolean) FALSE
canAdmin : (string) admin
className : (string) email_Inboxes
_cashedRecords : (array)

fetchFieldsBeforeDelete : (NULL)
fields : (array)