[BUGFIX] Make Settings.yaml.example a working example¶
With this change the Settings.yaml.example can be used as is, because the key "doctrine" is commented out now.
[BUGFIX] Action arguments of type DateTime throw Exception¶
If an action argument is an object, the ValidatorResolver tries to instantiate that object to use it as Validator without checks.
This change solves this by checking if the specified object implements the ValidatorInterface.
[BUGFIX] Nested arrays in Annotation options are no longer dropped¶
When giving a nested array of options to an annotation the rendered form in proxy classes was cut off.
[BUGFIX] HTML should be escaped in Debug Exception¶
HTML in the code that is output as part of the stack trace is escaped now.
[BUGFIX] Fix error message about command controller classes¶
If you create a CommandController which is not in the "Controller" directory of a package or where the name does not end in "CommandController" you will get an error saying "Invalid controller class name [...] 1305100019".
This change makes the error message a little more helpful.
[BUGFIX] PersistenceManager->add() now requires objects being new¶
The add method in repositories did also update existing entities, this can be dangerous, as it allows an attacker to misuse creation forms (i.e. a register form) and change existing entities.
[BUGFIX] Fix Wrong exception message in Repository->remove()¶
The message would say add() was involved, which is wrong.
[BUGFIX] Skip functional test if Doctrine is not enabled¶
The Flow3AnnotationDriverTest should be skipped if Doctrine is not enabled to prevent problems if no actual driver or connection can be created.
- Commit: 3044312
[FEATURE] Add __toString() and make Resource use more convenient¶
To use a Resource with file operations, one can use the resource:// scheme and the __toString() method of any ResourcePointer.
To make this a little easier, this change adds two new methods to the Resource class:
__toString() returns the SHA1 of the ResourcePointer the Resource is holding (as is documented for ages).
getUri() returns a ready-to-use resource://<sha1> URI of the ResourcePointer the Resource is holding.
[BUGFIX] Proxy methods with referenced arguments should work¶
Arguments given by reference would result in an exception if the method was proxied due to AOP.
[BUGFIX] Fixes handling of numeric annotation parameters¶
Annotations like @FooBar(amount=2) lost their parameter value in renderAnnotation(). This change fixes that.
[BUGFIX] Make flow3.bat output usage texts matching Windows¶
When using flow3.bat on Windows the usage information would tell the user to call "./flow3", which doesn't fit the Windows world.
[TASK] Add early returns to Security\Context::hasRole¶
Change the behavior of hasRole so it has an early return when the authenticationManager is not yet authenticated (and thus no role can be assigned to the authenticated user).
Also an earlier return on the Everyone role.
[BUGFIX] Keep class doc comments when building proxies¶
Currently the doc comment of a class is replaced with "Autogenerated Proxy Class" when the proxy class is generated. This change fixes this and keeps the original doc comment.
That is particulary useful if you rely on the original comment when creating automatic class documentations.
[BUGFIX] Fixes doc comment of Form.ValidationResultsViewHelper¶
The example in the class doc comment was outdated and is fixed with this change.
[BUGFIX] PrimaryElectronicAddress should check before adding¶
With setPrimaryElectronicAddress the electronic address is also added to the electronicAddress collection but it should check first if it is already in to avoid creating duplicate entries.