signalpoint / angular-drupal

An Angular JS module for Drupal.
GNU General Public License v2.0
116 stars 33 forks source link

403 PUT/PATCH on user register/update on a multilingual site #44

Open stsier opened 6 years ago

stsier commented 6 years ago

When enabling Language module in Drupal 8.4.4 I get 403 PUT/PATCH error on user register/update

signalpoint commented 6 years ago

@stsier Have you by chance located a working example in Drupal 8.4.4+ with the Language module on what a successful PUT/PATCH request/response should look like?

Also, what does the JSON payload look like being sent by angular-drupal?

stsier commented 6 years ago

for example I patch the user's profile which has a field "styles": {"field_user_styles":[{"target_id":1}],"uid":[{"value":165}]} just removing Language module solves the problem same thing with creating a new user. I tried doing this with admin rights, same problem. By the way, Language module doesn't affect PUT or PATCH on Content entities, it works perfectly.

signalpoint commented 6 years ago

@stsier Thank you for the follow up. This could be an issue with Drupal 8 core... have you raised this issue anywhere on drupal.org ?

stsier commented 6 years ago

no, which branch do you suggest?

stsier commented 6 years ago

another question, I've seen somewhere in the feeds that there's a bug which doesn't allow registering a new user for anonymous. So the WA is to register a new user via a super user with "Administer users" permission. So far I confirm this behaviour as well, but maybe it has since been solved. In any case, as of today the issue persists (sorry for off topic, but maybe they have the same root)

signalpoint commented 6 years ago

@stsier This sounds like a Drupal Core REST issue/support-request, I'd search through the core's REST issue queue looking for stuff about language codes and user entities. If you can find/file an issue there and link it back here, I'd like to follow it as well.

Regarding registering anonymous users, please open a new issue, thanks.