Unability to update the Account Picture in Nested Field
I tried different ways from the client-side to update the account picture and it seems it is never saved. An example of sib-form is as follow:
sib-form#entrepreneur_profile_picture.block_log.block_creat_count(
bind-user
nested-field="account"
fields="foaf:depiction, slug, issuer"
widget-issuer="sib-form-hidden"
widget-slug="sib-form-hidden"
upload-url-foaf:depiction=`${sdn}upload/`
widget-foaf:depiction='cs-ent-profile-picture'
class-foaf:depiction='input_photo w_25'
submit-button=`${data.SaveModification}`
)
An example of CURL request that generates is as follows:
curl 'http://localhost:8000/accounts/balessan_en/' -X PUT -H 'User-Agent: ...' -H 'Accept: */*' -H 'Accept-Language: en-US,en;q=0.5' --compressed -H 'Referer: http://localhost:9000/en/entrepreneur-dashboard/entrepreneur-account-edit' -H 'authorization: ...' -H 'content-type: application/ld+json' -H 'Origin: http://localhost:9000' -H 'Connection: keep-alive' -H 'Cookie: ...' -H 'Pragma: no-cache' -H 'Cache-Control: no-cache' --data-raw '{"foaf:depiction":"http://localhost:8000/media/Capture%20d%E2%80%99%C3%A9cran%20de%202020-04-20%2019-02-21_TDmxTTZ.png","slug":"balessan_en","issuer":"","@id":"http://localhost:8000/accounts/balessan_en/","@context":{"@vocab":"http://happy-dev.fr/owl/#","rdf":"http://www.w3.org/1999/02/22-rdf-syntax-ns#","rdfs":"http://www.w3.org/2000/01/rdf-schema#","ldp":"http://www.w3.org/ns/ldp#","foaf":"http://xmlns.com/foaf/0.1/","name":"rdfs:label","acl":"http://www.w3.org/ns/auth/acl#","permissions":"acl:accessControl","mode":"acl:mode","geo":"http://www.w3.org/2003/01/geo/wgs84_pos#","lat":"geo:lat","lng":"geo:long","entrepreneurProfile":"http://happy-dev.fr/owl/#entrepreneur_profile","mentorProfile":"http://happy-dev.fr/owl/#mentor_profile","account":"hd:account","messageSet":"http://happy-dev.fr/owl/#message_set","author":"http://happy-dev.fr/owl/#author_user","title":"http://happy-dev.fr/owl/#title","picture":"foaf:depiction"}}'
I am pretty sure that used to work, looks like a regression to me.
Both using picture
or foaf:depiction
as predicate changes nothing.
Changing the field value through the admin works. I'd like to help on debugging that but do not know where to start to be efficient.
Any idea ?