Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sub URLs return 404 instead of empty list [DATAREST-1401] #1760

Open
spring-projects-issues opened this issue Jun 22, 2019 · 4 comments
Open

Sub URLs return 404 instead of empty list [DATAREST-1401] #1760

spring-projects-issues opened this issue Jun 22, 2019 · 4 comments
Assignees
Labels

Comments

@spring-projects-issues
Copy link

@spring-projects-issues spring-projects-issues commented Jun 22, 2019

Paul opened DATAREST-1401 and commented

Spring Data Sub URL don't work

The are generated succefully:

!image-2019-06-22-13-58-43-050.png|width=454,height=261!

But you can't follow the link:

!image-2019-06-22-13-59-32-669.png|width=320,height=137!

Expected

The same result is displayed as if when I remove the "foo" from the URL.

Reproduce

  1. Open PersonDao
  2. Adjust path property

!image-2019-06-22-14-01-44-870.png|width=550,height=66!


Affects: 3.1.9 (Lovelace SR9)

Attachments:

Referenced from: commits 2d994c7

@spring-projects-issues
Copy link
Author

@spring-projects-issues spring-projects-issues commented Jun 26, 2019

Oliver Drotbohm commented

The Javadoc for the path property states:

The path segment under which this resource is to be exported.

i.e. slashes are not supported

@spring-projects-issues
Copy link
Author

@spring-projects-issues spring-projects-issues commented Jun 26, 2019

Paul commented

Understood. The problem is then that no error is created and the URLs are generated just fines. Means it looks like everything is okay Mata data looks good to. It just doesn't work and seems to be a bug.

I would suggest to fail the start of the container as the generated meta data is wrong.

@spring-projects-issues
Copy link
Author

@spring-projects-issues spring-projects-issues commented Jun 26, 2019

Oliver Drotbohm commented

I've just pushed fixes for the upcoming 3.2 to actively reject malformed configurations pointing to the annotation attribute

@spring-projects-issues
Copy link
Author

@spring-projects-issues spring-projects-issues commented Jun 29, 2019

Paul commented

Oliver Drotbohm thank you very much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants