aboutsummaryrefslogtreecommitdiffstats
path: root/server/src
Commit message (Collapse)AuthorAgeFilesLines
* Code cleanup (#12333)Anna Koskinen2021-07-0817-121/+188
| | | | | | | | | | | | | | | | - 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-234-9/+793
| | | | | | | 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
* fix: add JavaDoc warning to avoid using ResponseWriter for directories (#12324)Anna Koskinen2021-06-151-0/+7
| | | | | | * fix: add JavaDoc warning to avoid using ResponseWriter for directories Cherry-picked from: https://github.com/vaadin/flow/pull/11112
* Update Atmosphere (#12293)Tatu Lund2021-05-171-1/+1
| | | Fixes concurrency issue with UUIDBroadcasterCache that may lead to loss of packets and thus repeated resynchronizations when using Push.
* Fix validation in non-buffered Grid editor (#12281)Tarek Oraby2021-04-281-0/+5
| | | | | Handle possible race condition by disabling the editor's widget while awaiting validation from the server. Fixes #12270
* Add browser specific handling in setRows (#12141)Tatu Lund2021-04-191-2/+5
| | | | | | | | | | | * Add browser specific handling in setRows Fixes: https://github.com/vaadin/framework/issues/10138 Fixes: https://github.com/vaadin/framework/issues/7878 * Enforced minimum height to 1 rows and added a test. Co-authored-by: Anna Koskinen <anna@vaadin.com>
* feat: Add API to control whether Binder converts back to presentation (#12246)Tatu Lund2021-03-182-3/+55
| | | #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.
* Add missing 8.13 since tag (#12236)Zhe Sun2021-03-112-3/+3
|
* Fix updating Grid's item set when details rows are open. (#12231)Anna Koskinen2021-03-081-0/+10
| | | | | | | | | | - Old details should close. - New details should open. - If some row has details in both old and new item set, the details row contents should get updated. - Updating details row contents should not break the positioning of the rows and details below. Fixes #12211
* Prevent NPE in comparison (#12218)Tatu Lund2021-03-051-1/+1
| | | Fixes: https://github.com/vaadin/framework/issues/12207
* Update copyright year range. (#12215)Anna Koskinen2021-03-04555-555/+555
| | | | * Update copyright year range.
* update to Atmosphere runtime 2.4.30.vaadin3 (#12214)Olli Tietäväinen2021-03-031-1/+1
|
* Merged column headers should work within declarative Grid. (#12206)Anna Koskinen2021-02-262-10/+15
| | | | | | | | | - null check to prevent NPE from the merged column headers - convert to internal columnIds for merge handling - use correct cell in merge handling - switch away from streams in merge handling for easier readability - regression test Fixes: #10464
* Add API to prevent invalid input when integrated range validator is used ↵Tatu Lund2021-02-191-1/+34
| | | | | | | (#12168) Do not fire DateField's value change event if the new date is not within the range. Fixes: #12163
* Added missing file ending (#12202)Anna Koskinen2021-02-161-0/+0
|
* Clear out ClientCache when UI is detached to prevent a minor memory leak ↵Anna Koskinen2021-02-111-0/+15
| | | | | | | | | | | | | (#12199) * Clear out ClientCache when UI is detached to prevent a minor memory leak Implemented with a listener rather than direct call from UI.detach() in order to avoid new public API, since the whole feature has been marked for removal. This doesn't yet prevent the cache or the type map from getting slightly bloated during the UI's lifetime. See: #3705
* Dead code removal (#12187)Tatu Lund2021-02-041-3/+0
|
* fix: use time-constant comparison for CSRF tokens (#12188)Tatu Lund2021-02-011-1/+5
| | | | | | This hardens the framework against a theoretical timing attack based on comparing how quickly a request with an invalid CSRF token is rejected. Cherry-picked from: https://github.com/vaadin/flow/pull/9875
* fix: use time-constant comparison for security tokens (#12189)Tatu Lund2021-01-293-3/+18
| | | | | | | | | This is the same as https://github.com/vaadin/framework/pull/12188, but also applied for the upload security key and the push id since both of those are also used to protect against cross-site attacks. In addition, documentation for the push id is clarified to point out its role. Cherry-picked from: https://github.com/vaadin/flow/pull/9896
* DateField value should actively adjust to the set resolution. (#12183)7.7.23Anna Koskinen2021-01-226-40/+108
|
* Update Atmosphere vaadin2 patch (#12181)Tatu Lund2021-01-181-1/+1
|
* Add getter for presentationProvider in Grid.Column (#10323) (#12060)jdewaen2020-12-181-0/+12
| | | | | Without access to the presentation provider used for a column, it is often not possible to reconstruct the data as shown on the end-user's screen This commit adds a getter method to Grid.Column to allow access to this provider
* Fix to LayoutManager size calculations during transform. (#12138)Anna Koskinen2020-12-181-0/+34
| | | | | | | | | | | | | | | | | | | | | | | * Fix to LayoutManager size calculations during transform. - ComputedStyle is slower but more reliable than using getBoundingClientRect, which does not work as expected if a transform has been applied to the element or one of its parents. This is a problem e.g. with PopupView, where getBoundingClientRect will return too small size (or even zero size) for all the popup contents while the opening animation is active. ComputedStyle ignores the transform and returns the expected value. - The presence of the element in DOM must be checked before the size is requested from ComputedStyle, if the element has disappeared from DOM without a warning and calculation is attempted anyway, the browser gets stuck. - Possibility to configure LayoutManager to use the less reliable calculations for applications where the slight performance difference is more important than layout issues within elements that have transform animations. - Manual test, problem isn't reproducible by TestBench. Fixes: #11187
* Better error handling trying to enable HTML5 DnD for mobile from thread (#12170)Anna Koskinen2020-12-071-0/+7
| | | | | | | - Informative error message - Reset back to disabled state when enabling fails - Incorrect usage also detectable using non-mobile devices Fixes #12152
* Binder: Also use converter for user-changed values (#12132)Tatu Lund2020-12-032-1/+74
| | | See: https://vaadin.com/forum/thread/15931682
* Replace function reference with anonymous class for serialization (#12137)Tatu Lund2020-11-261-19/+20
| | | | | Lambdas and function references do not serialize See: https://vaadin.com/forum/thread/18462951/vaadin-8-stateful-session
* Make checkAtmosphereSupport() non-static (#12131)Tatu Lund2020-11-241-3/+6
| | | Fixes: https://github.com/vaadin/multiplatform-runtime/issues/77
* Log informative message instead of failing with ClassCastException when ↵Martin Vysny2020-10-121-2/+18
| | | | | | polling an obsolete resource (#12115) https://github.com/vaadin/framework/issues/12113
* Add DateField(LocalDate value) constructor (#12096)Tatu Lund2020-09-251-0/+11
|
* 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-082-1/+29
| | | | (#12091)
* Add convenience overloading for setColumn (#12093)8.12.0.alpha2Tatu Lund2020-09-042-0/+41
| | | Fixes: https://github.com/vaadin/framework/issues/7773
* Update ServletPortletHelper.java (#12087)Clemens von Schwerin2020-09-031-0/+4
| | | This is needed to get /UIDL working behind a reverse proxy. Without the change pathInfo would be "/UIDL" but prefix would be "/UIDL/" in line 105.
* Add API to detect if GridMultiSelect select-all checkbox is checked (#12086)Tarek Oraby2020-08-263-9/+27
|
* Bump hibernate-validator from 4.3.2.Final to 5.3.5.Final (#12083)Tatu Lund2020-08-252-2/+6
| | | | | Hibernate Validator 5+ requires - Validation API 2+ - explicit Expression Language dependency
* Added missing MIME types to FileTypeResolver (#12070)Anna Koskinen2020-08-121-14/+40
| | | Fixes #11235
* Explicitly remove old dataprovider listener when new one is set (#12064)Tatu Lund2020-08-071-7/+35
| | | | | | | | | | | | | | | | | | | | | | | * Explicitly remove old dataprovider listener when new one is set If not done, this can cause memory leakage * Formatting * Fixed coding style * Take into account further scenarios Component maybe detached permanently and thus data provider listener needs to be remove in detach. Also if this is only momentary remove from layout add back cycle, re-setup is needed in attach, in case it was not already setup before attaching by setDataProvider. * Change super.detach() call order * Added null check to getDataProvider * Setting dataProviderListener to null on detach * Removing listener only if it exists * Fix
* Fix possible NPE with MPR (#12040)Tatu Lund2020-08-052-5/+17
| | | | | 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
* Add support for "ww" in date format (#12037)Tatu Lund2020-07-031-1/+27
| | | | | Calculate number of the week in the year based on Date. Note, support for "ww" is missing from GWT DateTimeFormat and java.util.Calendar is not supported in GWT, hence DIY method is needed. Fixes: #10603
* Ensure type safety and serializable nature of all the listeners (#12045)Tatu Lund2020-07-0324-67/+651
|
* Clear thread local instances on connection lost in push handler (#12042)Tatu Lund2020-06-305-7/+175
| | | Adopted from https://github.com/vaadin/flow/pull/8567
* Fixed error message to use given parameters. (#12008)Anna Koskinen2020-05-141-4/+5
| | | Fixes #11993
* Removing deprecated parameter (#12004)Tatu Lund2020-05-141-2/+1
| | | | | | * Removing deprecated parameter Fixes: https://github.com/vaadin/framework/issues/11958
* Support for javax.validation @NotEmpty annotation. (#11985)Martín López2020-05-121-1/+2
| | | Fixes #10914
* Refresh DataProvider only once when reordering the grid using GridRowDragger ↵Martín López2020-05-112-1/+25
| | | | | (#11981) Fixes #10844
* Removed unused parameter from DataNode creation (#11976)James Pether Sörling2020-05-111-2/+1
| | | Fixes #11958
* Add missing since tag (#11957)8.11.0.alpha1Zhe Sun2020-04-233-9/+9
|
* Add asMultiSelect() to Tree class (#11949)Tarek Oraby2020-04-211-0/+12
| | | | | Tree class doesn't currently provide an obvious way that would enable a Tree object to be treated as a multi select. This commit extends the Tree API, enabling it to be used as a multi select, which would importantly facilitate the selection/deselection of multiple items in trees whose SelectionMode is MULTI. closes #11948
* Fixed the JavaDoc (#11950)Vesa Nieminen2020-04-211-2/+2
| | | | | HierarchyMapper. getParentIndex() method has a different JavaDoc from the HierarchicalDataCommunicator. This is a simple fix for that. https://github.com/vaadin/framework/blob/master/server/src/main/java/com/vaadin/data/provider/HierarchyMapper.java#L96
* Allow AbstractDateField to provide DST zone names over custom ranges (#11927)Tarek Oraby2020-04-212-10/+121
| | | | | | | | | DateTimeField and DateField currently implement a hardcoded logic by which they adjust their time zone names to display daylight-saving time (DST) zone names. Specifically, this hardcoded logic only adjusts the displayed date to DST format if that date falls in one of the years between 1980 and the following 20 years in the future from the current date (that is, until 2040 at the time of this commit). For some use cases, this is problematic because it is desirable to display proper DST-adjusted time zones beyond the 20 years limit (and possibly also before 1980). Rather than choosing another arbitrary, hardcoded threshold, this commit extends the AbstractDateField API to allow the user to choose the range (start and end years) between which the DST transition dates are calculated (and hence displayed properly). If the user doesn't invoke this new API, DateTimeField and DateField will default to behave according the existing logic (i.e. display DST zone names between 1980 and 20 years into the future). Closes #11919