Skip to content
This repository was archived by the owner on Dec 30, 2025. It is now read-only.
This repository was archived by the owner on Dec 30, 2025. It is now read-only.

GeoServerRESTPublisher::appendParameters - ArrayIndexOutOfBoundsException #210

@makosteel

Description

@makosteel

You can get unhandled ArrayIndexOutOfBoundsException if a single parameter is passed that is empty string, this line is the cause.

Normally the code higher in the stack filters out null passed but not empties leading to this edge case, I suggest fixing this function for speed of resolution and maybe examine the higher code later, identified lines so far :

a better approach maybe to filter out the empty strings at the top method level, for example.

but i'm unsure how many functions are affected by this, all this so maybe a issue for later to go through.

I'm re-implementing the appendParameters function and submitting a pull request, will update this issue when submitted.

Pull request submitted #211

I will try and implement a test for also for this in another pull request.

Test pull request submitted #212

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions