Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

when creating VLAN ixp manger barfs if the infrastructure is not set #160

Closed
thomas-mangin opened this issue Jul 2, 2014 · 0 comments
Closed

Comments

@thomas-mangin
Copy link

And sends a useful mail, which allows to click "back", select the infra and submit again :-)

2014-07-02T14:27:35+01:00 ERR (3): ERROR - FAILED: User 1 added a VLAN object with id 0
exception 'PDOException' with message 'SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'infrastructureid' cannot be null' in /usr/share/php/Doctrine/DBAL/Statement.php:138
Stack trace:
#0 /usr/share/php/Doctrine/DBAL/Statement.php(138): PDOStatement->execute(NULL)
#1 /usr/share/php/Doctrine/ORM/Persisters/BasicEntityPersister.php(277): Doctrine\DBAL\Statement->execute()
#2 /usr/share/php/Doctrine/ORM/UnitOfWork.php(920): Doctrine\ORM\Persisters\BasicEntityPersister->executeInserts()
#3 /usr/share/php/Doctrine/ORM/UnitOfWork.php(311): Doctrine\ORM\UnitOfWork->executeInserts(Object(Doctrine\ORM\Mapping\ClassMetadata))
#4 /usr/share/php/Doctrine/ORM/EntityManager.php(355): Doctrine\ORM\UnitOfWork->commit(NULL)
#5 /srv/ixp/library/OSS-Framework.git/src/OSS/Controller/Action/Trait/Doctrine2Frontend.php(623): Doctrine\ORM\EntityManager->flush()
#6 /srv/ixp/library/OSS-Framework.git/src/OSS/Controller/Action/Trait/Doctrine2Frontend.php(707): IXP_Controller_Frontend->addProcessForm(Object(IXP_Form_VLAN), Object(Entities\Vlan), false)
#7 /srv/ixp/library/Zend/Controller/Action.php(516): IXP_Controller_Frontend->addAction()
#8 /srv/ixp/library/Zend/Controller/Dispatcher/Standard.php(308): Zend_Controller_Action->dispatch('addAction')
#9 /srv/ixp/library/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#10 /srv/ixp/library/Zend/Application/Bootstrap/Bootstrap.php(97): Zend_Controller_Front->dispatch()
#11 /srv/ixp/library/Zend/Application.php(366): Zend_Application_Bootstrap_Bootstrap->run()
#12 /srv/ixp/public/index.php(85): Zend_Application->run()
#13 {main}

Next exception 'Doctrine\DBAL\DBALException' with message 'An exception occurred while executing 'INSERT INTO vlan (name, number, rcvrfname, private, notes, infrastructureid) VALUES (?, ?, ?, ?, ?, ?)' with params ["Internal", "500", "", "1", "The VLAN is not used anymore", null]:

SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'infrastructureid' cannot be null' in /usr/share/php/Doctrine/DBAL/DBALException.php:47
Stack trace:
#0 /usr/share/php/Doctrine/DBAL/Statement.php(140): Doctrine\DBAL\DBALException::driverExceptionDuringQuery(Object(PDOException), 'INSERT INTO vla...', Array)
#1 /usr/share/php/Doctrine/ORM/Persisters/BasicEntityPersister.php(277): Doctrine\DBAL\Statement->execute()
#2 /usr/share/php/Doctrine/ORM/UnitOfWork.php(920): Doctrine\ORM\Persisters\BasicEntityPersister->executeInserts()
#3 /usr/share/php/Doctrine/ORM/UnitOfWork.php(311): Doctrine\ORM\UnitOfWork->executeInserts(Object(Doctrine\ORM\Mapping\ClassMetadata))
#4 /usr/share/php/Doctrine/ORM/EntityManager.php(355): Doctrine\ORM\UnitOfWork->commit(NULL)
#5 /srv/ixp/library/OSS-Framework.git/src/OSS/Controller/Action/Trait/Doctrine2Frontend.php(623): Doctrine\ORM\EntityManager->flush()
#6 /srv/ixp/library/OSS-Framework.git/src/OSS/Controller/Action/Trait/Doctrine2Frontend.php(707): IXP_Controller_Frontend->addProcessForm(Object(IXP_Form_VLAN), Object(Entities\Vlan), false)
#7 /srv/ixp/library/Zend/Controller/Action.php(516): IXP_Controller_Frontend->addAction()
#8 /srv/ixp/library/Zend/Controller/Dispatcher/Standard.php(308): Zend_Controller_Action->dispatch('addAction')
#9 /srv/ixp/library/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#10 /srv/ixp/library/Zend/Application/Bootstrap/Bootstrap.php(97): Zend_Controller_Front->dispatch()
#11 /srv/ixp/library/Zend/Application.php(366): Zend_Application_Bootstrap_Bootstrap->run()
#12 /srv/ixp/public/index.php(85): Zend_Application->run()
#13 {main}

@thomas-mangin thomas-mangin changed the title ixp manger barfs when the infrastructure is not set when creating VLAN when creating VLAN ixp manger barfs if the infrastructure is not set Jul 2, 2014
@barryo barryo closed this as completed in 78735c5 Aug 24, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants