Skip to content

GoIntegerDeserializer match defaultMode 400, is it wrong? #7148

Open
@own-idea

Description

@own-idea

Describe the bug

given secret defaultMode=400, then Deserializer result is 0, i think it is wrong
it seems regex

private static final Pattern OCTAL = Pattern.compile("(0[oO]?)([0-7]+)"); 

is not correct

should be

private static final Pattern OCTAL = Pattern.compile("^(0[oO]?)([0-7]+)$"); 

Fabric8 Kubernetes Client version

7.1.0

Steps to reproduce

given secret defaultMode=400, then Deserializer result is 0, i think it is wrong

Expected behavior

i think 400 should not match OCTAL regex pattern ,and return 400

Runtime

other (please specify in additional context)

Kubernetes API Server version

other (please specify in additional context)

Environment

Linux

Fabric8 Kubernetes Client Logs

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions