Skip to content

Serializing and deserializing a blank URI returns null #398

@pgieser

Description

@pgieser

Here is a failing test:

    public void test() throws Exception {
        URI blankUri = URI.create("");
        assertNotNull(blankUri);

        ObjectMapper objectMapper = new ObjectMapper();

        assertNotNull("serialized and deserialized blank URI should not be null",
                objectMapper.readValue(objectMapper.writeValueAsString(blankUri), URI.class));
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions