Closed samtuke closed 6 years ago
By the way, for testing the rest-api package, you don't need the base-distribution package - you can test the rest-api package in isolation.
@oliverklee What would be the setup steps for that be (from scratch)?
Clone the repository, enter the directory, do a composer install, enter the DB credentials in the local configuration file, then run the local web server:
bin/console server:run -d web/
(Or use Composer instead of cloning the repository.)
Basically, the setup is the same for all four packages.
@samtuke When you're running composer show
, which version of symfon/symfony do you see? 3.3.x or 3.4.x?
This works fine for me. My educated guess is that your MySQL is configured to be more strict than mine. @samtuke What is the setting for sql_mode in your MySQL server configuration?
Mine is:
sql_mode=NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
Ah, if I add the STRICT_TRANS_TABLES option, I get the same error. I'm on it.
Nice work
(It looks like the MySQL on Travis also is not very strict.)
sql_mode
does not seem to be defined in my mariadb config files, but as I recall the default behavior of this setting changed in mariadb packages at some point.
https://github.com/phpList/phplist4-core/pull/224 should fix this.
Fixed.
Short problem description
When logging in using the API via the /sessions route, correct credientials are provided, but the following error is returned:
Steps to reproduce
Expected behaviour
Login successful, token info is returned
Actual behaviour
Exception is returned