aboutsummaryrefslogtreecommitdiffstats
path: root/server/src/test
Commit message (Collapse)AuthorAgeFilesLines
* Update copyright year range (#12507)Anna Koskinen2022-01-111-1/+1
|
* fix: Check if injected CSS String is already in the list of injected styles ↵Tatu Lund2021-11-161-0/+24
| | | | | | | | | | | (#12479) * Check if injected CSS String is already in the list of injected styles * Change to package for unit testing * Unit test * Add missing imports
* feat: Add better API to configure maximum allowed rows (#12466)Tatu Lund2021-11-031-0/+8
| | | | | | | * feat: Add better API to configure maximum allowed rows * Add unit test Co-authored-by: Olli Tietäväinen <ollit@vaadin.com>
* fix: avoid ConcurrentModificationException in Binder (#12458)Tatu Lund2021-10-271-0/+23
|
* fix: don't update bean property which is read-only bound (#12457)Tatu Lund2021-10-271-0/+71
|
* fix: Ensure that side effects of readBean does not set hasChanges true (#12455)Tatu Lund2021-10-271-0/+22
|
* fix: Add row limit to DataCommunicator row data requests (#12415)Tatu Lund2021-09-302-0/+27
| | | | | | | | | | | * Add row limit to DataCommunicator row data requests * Add missing constant * Add unit test * Add test for extending Grid * Fixed test
* fix: set Vaadin session attribute using lock in reinitializeSession (#12401)Tatu Lund2021-09-161-0/+44
| | | | | | | | | * Cherry picked unit test from Flow See https://github.com/vaadin/flow/pull/11538 * Fix missing import * Cherry pick fix from Flow
* Cleaned out old references to removed buildhelpers and widgets modules. (#12383)Anna Koskinen2021-08-251-3/+0
|
* Update to Jsoup 1.14.2 (#12381)Tatu Lund2021-08-243-5/+19
|
* fix: Avoid processing value change event due writing back of converted value ↵Tatu Lund2021-08-061-0/+31
| | | | | (#12360) This is both a optimization by skipping duplicate validation round and avoids ConcurrentModificationExpectation being thrown certain corner cases.
* fix: Reuse existing filesystem (#12346)Anna Koskinen2021-07-221-0/+38
| | | Modified cherry-pick of https://github.com/vaadin/flow/pull/11428
* Code cleanup (#12333)Anna Koskinen2021-07-081-8/+8
| | | | | | | | | | | | | | | | - removed unused private methods - removed unused private variables - removed unnecessary initializations - removed unnecessary substring(0) - removed inner assignments - renamed private methods that started with upper case - renamed static final variables to use upper case - converted to use non-deprecated options - suppressed unavoidable warnings - divided long Strings to multiple lines - added missing types - added missing JavaDoc parameters - formatting - updated comments & JavaDocs
* fix: don't serve directories as static files (#12325)Anna Koskinen2021-06-232-1/+642
| | | | | | | Also prevents opening FileSystem for unknown schemes. Modified cherry-picks of https://github.com/vaadin/flow/pull/11072 , https://github.com/vaadin/flow/pull/11147 , and https://github.com/vaadin/flow/pull/11235
* feat: Add API to control whether Binder converts back to presentation (#12246)Tatu Lund2021-03-181-0/+15
| | | #12132 fixed an old bug, conversion was not done back, which was a regression from Vaadin 7. However since the bug has been present long time, it has become established behavior, thus there may be need to disable conversion back to presentation sometimes, thus this API as added.
* Update copyright year range. (#12215)Anna Koskinen2021-03-041-1/+1
| | | | * Update copyright year range.
* Added missing file ending (#12202)Anna Koskinen2021-02-161-0/+0
|
* DateField value should actively adjust to the set resolution. (#12183)7.7.23Anna Koskinen2021-01-223-8/+51
|
* Binder: Also use converter for user-changed values (#12132)Tatu Lund2020-12-031-0/+65
| | | See: https://vaadin.com/forum/thread/15931682
* Adding regression test against malicious input (#12105)Tatu Lund2020-09-251-0/+5
|
* fix duplicate key exception with Binder when interface method is overwritten ↵vt5122020-09-081-0/+28
| | | | (#12091)
* Add convenience overloading for setColumn (#12093)8.12.0.alpha2Tatu Lund2020-09-041-0/+19
| | | Fixes: https://github.com/vaadin/framework/issues/7773
* Bump hibernate-validator from 4.3.2.Final to 5.3.5.Final (#12083)Tatu Lund2020-08-251-2/+2
| | | | | Hibernate Validator 5+ requires - Validation API 2+ - explicit Expression Language dependency
* Fix possible NPE with MPR (#12040)Tatu Lund2020-08-051-0/+1
| | | | | It is possible when Vaadin 8 is used with MPR, that ui.getCurrent().getSession() returns null. See: https://github.com/vaadin/multiplatform-runtime/issues/5
* Clear thread local instances on connection lost in push handler (#12042)Tatu Lund2020-06-304-0/+150
| | | Adopted from https://github.com/vaadin/flow/pull/8567
* Refresh DataProvider only once when reordering the grid using GridRowDragger ↵Martín López2020-05-111-0/+20
| | | | | (#11981) Fixes #10844
* Add methods to control validation (#11945)Tatu Lund2020-04-211-2/+77
| | | | | | | | | - Enable / disable all validators on Binder level - Enable / disable validators on Binding level - add writeBeanAsDraft(bean,boolean) for writing draft bean with validators disabled Fixes https://github.com/vaadin/framework/issues/10709 Co-authored-by: Zhe Sun <31067185+ZheSun88@users.noreply.github.com>
* Set DateField value only if it passes range check (#11887)Tatu Lund2020-04-081-2/+11
| | | Fixes #11108
* TreeDataProvider: Apply filters to children (#11868)Tatu Lund2020-01-162-9/+56
| | | | | Fixes: https://github.com/vaadin/framework/issues/9933 Cherry pick from: https://github.com/vaadin/flow/pull/7317
* Make asRequired conditional on binding.setAsRequiredEnabled(..) (#11834)Tatu Lund2019-12-021-3/+6
| | | | | It is a very common use case in complex form that whether a field is required or not, it depends on input on other fields. Hypothetical use case sample could be that we have form for a Product and price of the product is needed except in case the Product's type is Sample. So in that kind of scenarios it would be needed to turn off asRequired() validation easily. The purpose of this enhancement and new binding.setAsRequiredEnabled(..) API is to help implementation of this kind of use cases more easily. https://github.com/vaadin/framework/issues/10709
* Add method writeBeanAsDraft(bean) in Binder (#11833)Tatu Lund2019-11-291-0/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add method writeBeanAsDraft(bean) in Binder With current Binder implementation it is not easy to support Forms, which you want to save as draft, i.e. incomplete. For example there can be big text areas, that require time to fill, or lot of fields. Therefore it is needed to that form can be saved, e.g. to other bean in incomplete state when it is not yet passing validation and this other bean can be persisted to draft storage for further editing in the future. This method helps to achieve that easily. * Add test case for Binder.writeBeanAsDraft(bean) Bind a field with validator, set value that does not pass validator and save, assert that value was saved. * Updating test * Fixing logic flaw in test * Further improvement of the test case * Clarification of the JavaDoc * Fixing typo * JavaDoc language check * Fixing whitespace issue * Fixing whitespaces * Fixing whitespaces * Updating JavaDoc
* Decode path in getStaticFilePath (#11812)Tatu Lund2019-11-191-0/+2
| | | | | * Decode path in getStaticFilePath Some containers do not decode path when using getPathInfo, in case path has not been decoded there is a risk for path traversal vulnerability.
* Cherry picks of Binder fixes in Flow (#11758)Tatu Lund2019-11-132-13/+135
| | | | | | | | | | * Cherry picks of Binder fixes in Flow Addresses: https://github.com/vaadin/framework/issues/9000 Addresses: https://github.com/vaadin/framework/issues/11109 These changes are adopted from https://github.com/vaadin/flow/pull/4138 and https://github.com/vaadin/flow/pull/6757
* Use APPLICATION_SCOPE for the session lock (#11792)Tatu Lund2019-11-121-2/+4
| | | | | | | | | | The Vaadin session itself is also stored in APPLICATION_SCOPE. The default scope is PORTLET_SCOPE, so lock would be otherwise not be in sync with the session. To be able to do this, relevant methods in VaadinService are made protected so that VaadinPortletService can override them. Fixes #11611
* Reduce Grid's sort complexity. (#11566)Anna Koskinen2019-05-151-4/+5
| | | | | | - limit DataCommunicator workaround from #11320 to ComboBox only - don't reset DataCommunicator before modifying all sorting data Fixes #11532
* Code format (#11548)Sun Zhe2019-04-291-1/+1
| | | | | | * Code format * Merge branch 'master' into code-format
* Custom serializers accessors (#10658)Olli Tietäväinen2019-02-221-0/+52
| | | | | | | | | | | | | | | | | | | | | | | | * add accessor methods for CUSTOM_SERIALIZERS in JsonCodec * javadoc * removed removeCustomSerializer method, renamed putCustomSerializer to addCustomSerializer, added sanity checks and JavaDocs * refactored addCustomJsonSerializer to set, added test UI * move enums to be parsed after custom serializers * move adding custom serializer to static block * throw an exception if multiple serializers are registered for class * updated javadocs * changed CustomJSONSerializerTest to a SingleBrowserTest * moved CustomJSONSerializerTest to server/ and it's now not a browser test * removed CustomJSONSerializerTest
* Provide extensive error information on GridLayout.OutOfBoundsException and ↵Martin Vysny2019-02-211-0/+24
| | | | | | IllegalArgumentException (#11461)
* Update release note and since tag (#11386)Sun Zhe2018-12-201-23/+28
| | | | * Some formatting changes
* Checkbox allow customizing of input and label classNames. (#11372)Knoobie2018-12-181-0/+107
| | | | | | | | | * add client side integration for custom styles for checkbox.label and checkbox.input * add server side integration for checkbox element styling * add server side tests * add client side test
* Request data update before client response (#11341)Sun Zhe2018-12-111-5/+4
| | | | | | | | | * Request data update before client response * fix the accidental commit * add tests fixes #11320
* Fixing NPE in Binder, ported from Flow (#11290)Mehdi Javan2018-11-061-0/+54
|
* Remove objects from ActiveDataHandler that are no longer available in used ↵Ilia Motornyi2018-09-071-1/+64
| | | | | | DataProvider (#11167) Remove objects from DataCommunicator.ActiveDataHandler that are no longer available in used DataProvider.
* Add API to access features of SelectionModels (#10939)Teemu Suo-Anttila2018-09-041-0/+62
|
* Add fallback resolvers for CurrentInstance (#10974)Gilberto Torrezan2018-09-031-0/+120
| | | | | | | | | This allow applications to inject custom default instances when the current instances cannot be found by regular means. For example, when VaadinServlet.getCurrent() would return null, a fallback resolver could be invoked to properly create the servlet and return it.
* Fix Grid MultiSelectionModel to always use getId (#11086)Teemu Suo-Anttila2018-07-302-1/+102
| | | Fixes #11083
* Fix DataCommunicator not sending data on filter updates (#11068)Teemu Suo-Anttila2018-07-192-1/+44
|
* Fix formatting (#11023)Ilia Motornyi2018-07-042-4/+3
|
* Code cleanup and serialization test in compatibility package (#10977)Ilia Motornyi2018-06-211-5/+13
|
* Fix TabSheet attaching and detaching components (#10988)Teemu Suo-Anttila2018-06-191-9/+13
| | | | | | | This patch reverts the fix #10557 and replaces it with a proper solution from Grid perspective. Fixes #10987 Fixes #10985