github vaadin/flow 23.3.5
Vaadin Flow 23.3.5

latest releases: 24.6.0.alpha4, 24.5.4, 24.6.0.alpha3...
20 months ago

Changes since 23.3.4

All changes

New features

  • Update Apache Commons File Upload to 1.5 (#15982)

  • Add upload limits for Apache File Upload (#16091)
    Commit · Pull request

    Adds the default limit of maximum file part count for upload (10000) and also gives an opportunity to override it and other two limits (upload maximum file size and maximum request size) by creating a custom StreamRequestHandler :

    public class CustomServiceInitListener implements VaadinServiceInitListener {
        @Override
        public void serviceInit(ServiceInitEvent event) {
            event.addRequestHandler(new CustomStreamRequestHandler());
        }
    
        private static final class CustomStreamRequestHandler
                extends StreamRequestHandler {
            // override getFileSizeMax() and/or getRequestSizeMax() if needed
            @Override
            protected long getFileCountMax() {
                // your limit:
                return 1000;
            }
        }
    }

    See https://vaadin.com/docs/v10/flow/advanced/tutorial-service-init-listener for more information on how to add a custom request handler.

Fixes

  • Option key does not work in addClickShortCut() method (#16086)
    Commit · Pull request

  • Ignore missing files in theme processing (#15896)
    Commit · Pull request · Issue

    During theme processing, a file detected as existing may be delete before it gets copied, causing a ENOENT (No such file or directory) error. After such failure, dev server live reload stops working. This change catches errors in file copy operations, ignoring ENOENT and propagating other failures.

  • Consume parallel streams when fetching paginated data (#15924)
    Commit · Pull request · Issue

    DataCommunicator internally uses a Stream.Builder to collect paginated data. but it fails it the DataProvider returns a parallel stream. This change consumes parallel streams before adding items to the builder.

  • Use setAttribute in setAriaLabel method (#16085)
    Commit · Pull request

    This is a follow-up of #16081, where a bug on HasAriaLabel#setAriaLabel was found. It turns out that the current implementation uses getElement().setProperty() to set the aria-label to the component, but since the value of ElementConstants.ARIA_LABEL_PROPERTY_NAME is in the Kebab Case format (aria-label) instead of the Camel Case one (ariaLabel), it doesn't correctly set the property.

  • Serve text/css/xml/javascript resources correctly outside the context of a page (#15824)
    Commit · Pull request · Issue

    When the resource is served without a charset, it seems the encoding of the page is used to interpret the resource correctly as utf-8. If you load a file outside the context of a page however, the content is wrong when the charset is not specified.

  • Add push servlet mapping & fix automatic push endpoint location (#15791)
    Commit · Pull request · Issue

    Introduces a parameter to set push servlet mapping. Fixes automatic determination of said mapping if an explicit mapping is not provided.

Don't miss a new flow release

NewReleases is sending notifications on new releases.