Clone Tools
  • last updated a few minutes ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Log throwable if it's not null (#349)

Due to the inverted condition, the throwable was actually ignored if it

wasn't null, which is the opposite of what was intended.

Provide a way to determine SessionExpired on disconnect (#351)

    • -0
    • +23
    ./api/SessionExpiredException.java
  1. … 1 more file in changeset.
  1. … 1 more file in changeset.
Changes necessary to debug RPC calls

ERRAI-1104: Ability to intercept any remote call from the ClientMessageBus

    • -0
    • +30
    ./api/messaging/MessageInterceptor.java
    • -41
    • +54
    ./framework/ClientMessageBusImpl.java
Merge branch 'master' into errai-codegen-apt

    • -10
    • +27
    ./framework/ClientMessageBusImpl.java
  1. … 142 more files in changeset.
Fix the condition and remove outer loop.

Fix issues where deferred messages error handling would be ignored.

1. Once we've sent all deferred messages with remote subscribers, iterate through remaining deferred messages.

2. For every remaining deferred message, check if it has any local subscribers. If so, remove it as well.

3. Whatever is left had no subscribers, local or remote, so throw an exception.

    • -9
    • +28
    ./framework/ClientMessageBusImpl.java
Add Errai APT Generators mechanism

  1. … 269 more files in changeset.
AF-546: Reduce startup time of AppFormer apps and workbenches

This commit:

* Adds logging to audit startup to entrypoints, RPCs, bean manager

* Load RPC proxies before the bus initializes so that startup RPC calls

can be queued up and sent in a single payload

* Don't wait for bus to initialize to send CDI client assoicate message

(allows this to also be sent with initial bus payload)

* Don't delay InitVotes in SecurityContextImpl if a user has been injected

onto the host page

  1. … 6 more files in changeset.
Make sure the bus content is valid before processing

    • -0
    • +35
    ./api/InvalidBusContentException.java
  1. … 1 more file in changeset.
Make sure the bus content is valid before processing

    • -0
    • +35
    ./api/InvalidBusContentException.java
  1. … 1 more file in changeset.
Delete dead code

    • -31
    • +0
    ./api/BadlyFormedMessageException.java
    • -32
    • +0
    ./api/builder/RemoteCallServiceDef.java
    • -23
    • +0
    ./protocols/SerializationCommands.java
    • -23
    • +0
    ./protocols/SerializationParts.java
  1. … 34 more files in changeset.
ERRAI-979: Provide functionality for CSRF protection

CSRF protection on message bus servlets is enabled by property.

Enabling the property creates a CSRF token on the first POST

request to the server bus.

The token can be written to an HTML page as a JavaScript variable

with a filter, or else the client can acquire it from a challenge

from the server (a 403 response containing the token as a header).

There is also a filter that protects REST endpoints using the same token.

When an Errai REST caller finds the token in a global JavaScript variable,

it will set this as a header for all REST requests.

Errai REST callers will also retry after a challenge from the server

(403 + token in header).

  1. … 18 more files in changeset.
ERRAI-986: Memory leak in ServerMessageBusImpl on remoteSubscriptions

    • -0
    • +11
    ./framework/ClientMessageBusImpl.java
  1. … 3 more files in changeset.
Improve size and generation time of RPC proxies

  1. … 1 more file in changeset.
ERRAI-981: Convert @UncaughtException to work with all uncaught exceptions (not just those in the client message bus)

    • -24
    • +2
    ./framework/ClientMessageBusImpl.java
  1. … 19 more files in changeset.
ERRAI-975: Remove temporary client-side replacements of Optional, Function, Supplier, etc.

    • -27
    • +27
    ./framework/ClientMessageBusImpl.java
  1. … 24 more files in changeset.
Cleanup and fixes based on FindBugs analysis

  1. … 35 more files in changeset.
Fixes for RPC shadow services (see below)

- RPC return value now properly passed on to remote callback

- Shadow services are now being used if the message bus is

offline, remote communication is disabled or no remote

endpoint for the service exists

- No longer attempt to contact remote endpoint if message

was deferred or was already delivered to a shadow service

- No longer swallow exceptions thrown by shadow service

implementations

- Test coverage

    • -22
    • +24
    ./framework/ClientMessageBusImpl.java
  1. … 10 more files in changeset.
Don't process error twice if sent with CLIENT_ERROR_SUBJECT as subject and errorTo fields.

  1. … 1 more file in changeset.
ERRAI-884: ClientMessageBusImpl catches exceptions in MessageCallbacks, preventing @UncaughtException Handing

Additionally this commit also changes client-side error handling as follows.

* noErrorHandling suppresses sending errors to CLIENT_ERROR_SUBJECT.

* Handle case where GWT.uncaughtExceptionHandler is null.

* Invoke error callback when error occurs in ClientMessageBus.send

instead of throwing exception.

* Test new behaviour in ErrorHandlingTest.

* Send RPC errors to CLIENT_ERROR_SUBJECT a supplied error handler

returns true.

    • -0
    • +34
    ./api/base/NoHandlingErrorCallback.java
    • -27
    • +28
    ./framework/ClientMessageBusImpl.java
  1. … 10 more files in changeset.
Show more exception info for exceptions thrown in message callbacks.

    • -10
    • +10
    ./framework/ClientMessageBusImpl.java
Move some messages from ClientMessageBusImpl class to ClientMessageBus interface.

Add missing license headers and update copyright notice in existing headers.

    • -2
    • +2
    ./api/BadlyFormedMessageException.java
  1. … 3042 more files in changeset.
Revert "Remove old JBoss and Red Hat license headers. Add new "Red Hat and affiliates" header."

Changes from the reverted commit did not preserve original copyright dates.

This reverts commit d8e735dfe2f6ed25fe9e06b753ae2f6154d76b02.

    • -3
    • +3
    ./api/BadlyFormedMessageException.java
  1. … 3068 more files in changeset.
Remove old JBoss and Red Hat license headers. Add new "Red Hat and affiliates" header.

    • -3
    • +3
    ./api/BadlyFormedMessageException.java
  1. … 3150 more files in changeset.
Moved all test base classes to src/test/java

- This makes sure applications can compile in strict

mode without inheriting the JUnit GWT module

- To use our test base classes for application tests

the corresponding test-jar has to be included i.e.

<dependency>

<groupId>org.jboss.errai</groupId>

<artifactId>errai-cdi-client</artifactId>

<type>test-jar</type>

<scope>test</scope>

</dependency>

Conflicts:

errai-bom/pom.xml

errai-cdi/weld-integration/pom.xml

errai-ioc/pom.xml

  1. … 35 more files in changeset.
Moved all test base classes to src/test/java

- This makes sure applications can compile in strict

mode without inheriting the JUnit GWT module

- To use our test base classes for application tests

the corresponding test-jar has to be included i.e.

<dependency>

<groupId>org.jboss.errai</groupId>

<artifactId>errai-cdi-client</artifactId>

<type>test-jar</type>

<scope>test</scope>

</dependency>

  1. … 35 more files in changeset.
Fixed SSE reconnection logic

    • -2
    • +12
    ./framework/transports/SSEHandler.java