Log message #4228255

# At Username Text
# Feb 22nd 2020, 17:52 matthttam Mine are slightly different but it shouldn't matter... and you are running this from within Windows 10 ubuntu?
# Feb 22nd 2020, 17:51 slackebot <davinci>
# Feb 22nd 2020, 17:51 matthttam "ls -ls"
# Feb 22nd 2020, 17:50 slackebot <davinci>
# Feb 22nd 2020, 17:50 matthttam Can you do an ls -ls on bin/ and ensure that the permissions on cake are correct?
# Feb 22nd 2020, 17:49 davinci Trying to install CakePHP 4, and all seems well. I have the welcome app page up and running. But I can't use `bin/cake` . It just throws: `Could not open input file: /C/Users/Documents/mysite/bin/cake.php`
# Feb 22nd 2020, 17:28 matthttam @admad Sure. Uhh. the debug_kit page shows a stack trace... not sure how to export that in a meaningful way.
# Feb 22nd 2020, 16:19 admad @matthttam sorry but the info you have provided in the issue is not enough for me to be able to provide any useful response. Maybe if you provide an actual stack trace it might be helpful
# Feb 22nd 2020, 16:12 ndm Looks like + is special: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/decodeURIComponent#Decoding_query_parameters_from_a_URL
# Feb 22nd 2020, 16:10 wizardfix That doesn't work for spaces though: `$this->response = $this->response->withCookie(new Cookie('email', 'words with spaces'));` results in ```document.cookie "email=words+with+spaces" decodeURIComponent(document.cookie); "email=words+with+spaces"```
# Feb 22nd 2020, 16:08 slackebot everything. Thanks again :)
# Feb 22nd 2020, 16:08 matthttam @admad Hey! I was the Bil8411 from IRC earlier. I submitted issues 87 for the beta of muffin/webservice:^3.0 yesterday. Just wanted to say thanks for the response. I was finally able to pull an endpoint from the remote API (yay). If the issue I submitted isn't really an issue maybe you can help me fix it so the config being pulled isn't datasource -> app. I'm new to cakephp in general so I'm drinking from a hose on the best way to do
# Feb 22nd 2020, 16:05 wizardfix Ah, ok thanks @ndm :)
# Feb 22nd 2020, 16:01 ndm It's simple URL encoding which you should be able to decode using `decodeURIComponent()`
# Feb 22nd 2020, 16:00 ndm That is because per the specs, only US ASCII characters excluding control characters, whitespaces, double quotes, commas, semicolons, and backslashes are allowed in cookie values.
# Feb 22nd 2020, 15:51 wizardfix (3.8)... If I set a cookie like this: `$this->response = $this->response->withCookie(new Cookie('email', 'test@example.com'));` when I read it at the front end it has `@` replaced with `%40`. ```document.cookie``` Spaces also get replaced with plus signs. I wonder why this is and how to handle it?
# Feb 22nd 2020, 15:31 challgren @etibor shouldnt be too painful. Really just type defining things. I think they learned the lesson from 2.x to 3.x
# Feb 22nd 2020, 15:29 st.steinkuehler @etibor perhaps this will help you https://github.com/dereuromark/cakephp-hashid - "Exposes hashids as drop-in replacement for your numeric primary keys"
# Feb 22nd 2020, 15:22 etibor How do you prevent such as mysql injection localhost/cakephp-project/users-roles/delete/1 or something similar, unwanted add to users-roles table etc
# Feb 22nd 2020, 15:21 etibor hopefully it will less painable than the changing to 3.0
# Feb 22nd 2020, 15:21 etibor uh Jesus, once again a big upgrade
# Feb 22nd 2020, 03:32 ron.rattie I'm glad you were able to get help from yourself.
# Feb 22nd 2020, 02:41 challgren Cake 4.0.4 released https://github.com/cakephp/cakephp/tree/4.0.4
# Feb 21st 2020, 18:11 ricksaccous AuthenticationComponent has setIdentity
# Feb 21st 2020, 18:11 ricksaccous thanks anyways
# Feb 21st 2020, 18:11 ricksaccous welp i fixed it, nevermind
# Feb 21st 2020, 18:07 ricksaccous yep, i was right....
# Feb 21st 2020, 18:02 ricksaccous i still don't know how the component knows whether to persist it though
# Feb 21st 2020, 17:58 ricksaccous looking at AuthenticationComponent
# Feb 21st 2020, 17:58 ricksaccous so this is intended behavior
# Feb 21st 2020, 17:58 ricksaccous i suppose the token is meant to be passed throughout, rather than persisting
# Feb 21st 2020, 17:50 ricksaccous but I don't understand why they'd behave differently
# Feb 21st 2020, 17:50 ricksaccous and that's what's causing it
# Feb 21st 2020, 17:50 ricksaccous I have a sneaking suspicion token isn't writing to Session for whatever reason
# Feb 21st 2020, 17:48 ricksaccous hmmmmm
# Feb 21st 2020, 17:47 slackebot <ricksaccous>
# Feb 21st 2020, 17:46 ricksaccous I'll also show the authentication set up I have in middleware:
# Feb 21st 2020, 17:45 ricksaccous Only log in action
# Feb 21st 2020, 17:44 ricksaccous so
# Feb 21st 2020, 17:44 ricksaccous I think this is nonsensical without showing some code
# Feb 21st 2020, 17:43 ricksaccous the token identifier returns valid but it never redirects after "logging in" , the first identifier I have (form one) redirects fine