Skip to content

project.propeties file in the resource root cause conflict with other libraries #480

@AlexYeremin

Description

@AlexYeremin

Problem:

The software.amazon.encryption.s3.internal.ApiNameVersion uses resource.properties resource file, property "version", and throws NPE when the library is used together with aws-encryption-sdk-java, which has it's own resource.properties file with property "esdkVersion".

Right now if aws-encryption-sdk-java resource loads first, amazon-s3-encryption-client-java throws NPE exception, as no property "version" in the property file of that library.

How to reproduce:

  1. add your own resource.properties file to the project resources with absent "value" property
  2. try to create S3EncryptedClient
  3. receive NPE

Solution:

A hide used resource file somewhere else, give a propery some more distinct name.

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