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

[Bug] route project/:ProjectHandle/data/:itemHandle?metadata_recommendations is giving recommendations for projects and folders that do not exist #225

Open
NelsonPereira1991 opened this issue May 5, 2017 · 0 comments
Assignees

Comments

@NelsonPereira1991
Copy link
Collaborator

NelsonPereira1991 commented May 5, 2017

Dendro Version if known (or site URL)

master

Please describe the expected behaviour

Should return a 404 response

Please describe the actual behaviour

Is returning all metadata descriptors

What steps can be taken to reproduce the issue?

run the following tests in the newTestsWorkNelson branch:

require(Config.absPathInTestsFolder("/routes/project/public_project/data/testFolder1/__metadata_recommendations/routes.project.publicProject.data.testFolder1.__metadata_recommendations.Test"));

require(Config.absPathInTestsFolder("/routes/project/privateProject_project/data/testFolder1/__metadata_recommendations/routes.project.privateProject.data.testFolder1.__metadata_recommendations.Test"));

require(Config.absPathInTestsFolder("/routes/project/metadata_only_project/data/testFolder1/__metadata_recommendations/routes.project.metadataonlyProject.data.testFolder1.__metadata_recommendations.Test"));

Possible ways to fix the problem (programmers)

validations at controller level ?

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

No branches or pull requests

2 participants