- Notifications
You must be signed in to change notification settings - Fork 305
Fix/issue#1692#1778
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
Fix/issue#1692 #1778
Uh oh!
There was an error while loading. Please reload this page.
Conversation
TallTed left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
human-facing language tweaks for clarity
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: Ted Thibodeau Jr <tthibodeau@openlinksw.com>
Co-authored-by: Ted Thibodeau Jr <tthibodeau@openlinksw.com>
Co-authored-by: Ted Thibodeau Jr <tthibodeau@openlinksw.com>
bourgeoa commented Mar 21, 2024 • edited
Loading Uh oh!
There was an error while loading. Please reload this page.
edited
Uh oh!
There was an error while loading. Please reload this page.
@zg009 Thanks for looking at this issue.
The container name
Line 331 in f5652f3
Point 2. may be added in this above function |
…h-test and put in http-test, cleaned up package.json
bourgeoa commented Mar 22, 2024
zg009 commented Mar 22, 2024
There are tests for invalid slug on POST requests here: https://github.com/nodeSolidServer/node-solid-server/blob/f5652f3dfa3ae630408125af99bcf90b7fe21c0d/test/integration/http-test.js#L863C4-L876C7 I added the check I believe you requested |
bourgeoa commented Mar 23, 2024
Sorry I am on a tablet. Not easy to code
The test should create a container. The container name can be found in Your code in |
zg009 commented Mar 23, 2024 • edited
Loading Uh oh!
There was an error while loading. Please reload this page.
edited
Uh oh!
There was an error while loading. Please reload this page.
Alain, I do not see how you can do what you are stating is possible. If slug has extension and extension is .acl or .meta, 403 is thrown If slug has no extension, it becomes container. I do not know how the situation you are describing can exist. |
Uh oh!
There was an error while loading. Please reload this page.
bourgeoa commented Mar 23, 2024 • edited
Loading Uh oh!
There was an error while loading. Please reload this page.
edited
Uh oh!
There was an error while loading. Please reload this page.
@zg009 Could you review at my changes
Can you
|
zg009 commented Mar 25, 2024
@bourgeoa I renamed it and added some clarity on the new .meta and .acl tests |
Uh oh!
There was an error while loading. Please reload this page.
bourgeoa left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
some console in lib/ldp.js to remove
Uh oh!
There was an error while loading. Please reload this page.
bourgeoa commented Mar 29, 2024
Thanks LGTM just remove the 2 console.log() in the recursive |
bourgeoa left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
TallTed left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
human facing, relatively small
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: Ted Thibodeau Jr <tthibodeau@openlinksw.com>
Co-authored-by: Ted Thibodeau Jr <tthibodeau@openlinksw.com>
wording Co-authored-by: Ted Thibodeau Jr <tthibodeau@openlinksw.com>
wording Co-authored-by: Ted Thibodeau Jr <tthibodeau@openlinksw.com>
wording Co-authored-by: Ted Thibodeau Jr <tthibodeau@openlinksw.com>
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: Ted Thibodeau Jr <tthibodeau@openlinksw.com>
zg009 commented Apr 1, 2024
@TallTed If it looks good to you, can you go ahead and approve the changes and I'll merge |
TallTed left a comment • edited
Loading Uh oh!
There was an error while loading. Please reload this page.
edited
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK by me. Note that I code primarily in English, and cannot provide much if any useful input on the JavaScript or other code here.
zg009 commented Apr 1, 2024
@TallTed That is OK. It is nice to have more input regarding clarity, when a test or code change has to be revisited later. |
See here: #1692
Added a check in put.js handler to see if a client is attempting to create an invalid resource uri
Alain, before this gets merged, let me know if there is a better way to get the RESERVED_SUFFIXES, and if the function should be moved to ldp.js instead