Skip to content
This repository was archived by the owner on Jan 19, 2022. It is now read-only.

Ability to get s3:// URI back from an S3 resource #361

Closed
osi opened this issue Jul 23, 2018 · 12 comments
Closed

Ability to get s3:// URI back from an S3 resource #361

osi opened this issue Jul 23, 2018 · 12 comments
Assignees
Labels
component: s3 S3 integration related issue help wanted type: enhancement A general enhancement

Comments

@osi
Copy link

osi commented Jul 23, 2018

I am trying to "round-trip" resources from a s3:// URI into a Resource and back again. Currently, SimpleStorageResource#getURL returns a https:// URI into AWS.

It would be nice to be able to round-trip these URIs

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Oct 1, 2018
@spencergibb spencergibb added help wanted type: enhancement A general enhancement and removed status: waiting-for-triage An issue we've not yet triaged labels Jan 29, 2019
@tmnuwan12
Copy link
Contributor

I want to help. Where should I look into.?

@maciejwalkowiak maciejwalkowiak added the component: s3 S3 integration related issue label May 29, 2020
@maciejwalkowiak
Copy link
Contributor

@tmnuwan12 go for it. Just keep in mind that whatever we do here should stay backward compatible.

@tmnuwan12
Copy link
Contributor

Can you assign it to me.. But I need some time with this if that's ok. I have some office stuff to clear out this week.

@tmnuwan12
Copy link
Contributor

For bug fixes do we need to branch off from master or 2.2.x branch..?

@maciejwalkowiak
Copy link
Contributor

Good question! Ideally from 2.2.x

@tmnuwan12
Copy link
Contributor

I checked the code for SimpleStorageResource. From what I understand from the requirement is ability to specify "s3://" endpoint when creating SimpleStorageResource and return
"s3://" compliant URL by calling method getURL().. Before I change anything want to check the approach here.. I was thinking of add/modify constructor to accommodate a URL object or url string and return a compatible URL based on constructor argument.. Feel free to provide some inputs please.

@tmnuwan12
Copy link
Contributor

@maciejwalkowiak

@maciejwalkowiak
Copy link
Contributor

I think it it should be possible to obtain s3:// and https:// no matter how what parameters were passed to the constructor. What do you think?

@osi
Copy link
Author

osi commented Jun 2, 2020

agreed @maciejwalkowiak

@tmnuwan12
Copy link
Contributor

tmnuwan12 commented Jun 3, 2020

@osi @maciejwalkowiak Yes I agree. What do you think about adding getURI() implementation for SimpleStorageResource class that provides the "s3://" URI.

tmnuwan12 added a commit to tmnuwan12/spring-cloud-aws that referenced this issue Jun 6, 2020
tmnuwan12 added a commit to tmnuwan12/spring-cloud-aws that referenced this issue Jun 6, 2020
@tmnuwan12
Copy link
Contributor

tmnuwan12 commented Jun 6, 2020

@maciejwalkowiak I am getting some compilation errors when running maven tests ( but in Intellij editor no compilation errors). Is this something known issue or am I missing something..?

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.0:testCompile (default-testCompile) on project spring-cloud-aws-core: Compilation failure: Compilation failure:
[21,17] package org.junit does not exist

Also I am getting a warning in the build logs as below not sure anything related.

[WARNING] Could not transfer metadata org.springframework.boot:spring-boot-dependencies:2.4.0-SNAPSHOT/maven-metadata.xml from/to apache.snapshots (https://repository.apache.org/snapshots): peer not authenticated

@maciejwalkowiak
Copy link
Contributor

@tmnuwan12 I explained reasons for compilation failure here #565 (review). Lets continue discussion in the pull request.

tmnuwan12 added a commit to tmnuwan12/spring-cloud-aws that referenced this issue Jun 7, 2020
tmnuwan12 added a commit to tmnuwan12/spring-cloud-aws that referenced this issue Jun 7, 2020
maciejwalkowiak pushed a commit to maciejwalkowiak/spring-cloud-aws that referenced this issue Oct 15, 2020
maciejwalkowiak pushed a commit to maciejwalkowiak/spring-cloud-aws that referenced this issue Oct 15, 2020
maciejwalkowiak pushed a commit to maciejwalkowiak/spring-cloud-aws that referenced this issue Oct 15, 2020
maciejwalkowiak pushed a commit to maciejwalkowiak/spring-cloud-aws that referenced this issue Oct 15, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
component: s3 S3 integration related issue help wanted type: enhancement A general enhancement
Development

Successfully merging a pull request may close this issue.

5 participants