Better AX shortname construction is needed, using only last URI path isn't working for some parameters e.g. http://axschema.org/contact/phone/home or http://axschema.org/contact/city/home (they both will get short name "home").
Additionally "http://axschema.org/" check prevents any AX extension to use the openid_ax_client hook, so I removed it in the patch.
I attached also screenshot of my example request, which was generated using this patch. I know, dvm() will be better, but I made it this way, so...
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | 1033292-6-openid_client_ax-ax_extensions.patch | 3.53 KB | xamanu |
| #5 | ax_extensions_avoiding_namespace_collision-1033292-5.patch | 3.53 KB | xamanu |
| #2 | openid_client_ax_shortname.patch | 2.17 KB | wojtha |
| #1 | openid_client_ax_notices.patch | 1.37 KB | wojtha |
| #3 | openid_client_ax_notices.patch | 1.37 KB | wojtha |
Comments
Comment #1
wojtha commentedFixing three unitialized variable notices.Edit: Aarrg... the patch is reversed. Check below.
Comment #2
wojtha commentedFixing three unitialized variable notices. (Once more and better...)Edit: Wrong patch ...
Comment #3
wojtha commentedOh man, I need more sleep... so now: Fixing three unitialized variable notices.
Comment #4
wojtha commented#1055838: Namespace collision with short ax identifiers marked as duplicate of this issue.
It includes patch which doesn't introduce new function. However I prefer "my version" of the fix - the explicit name builder function, as it could be used in dependent modules or in other places of the module.
+ Changing the title to be more descriptive.
Comment #5
xamanu commentedI just put your changes from both patches into one single patch. This might be easier for the module's maintainer to commit. Further I rerolled the patch based on the patch from #501702: Support update_url AX method to update profile data comment #7 since those had conflicts and support of update_url is way older and IMO really necessary.
Comment #6
xamanu commentedWith git diff it made some a/ and b/ directories on the files. Git apply works with this, but it's not working with drush make. So here is a new patch that should apply nicely.
Comment #7
xamanu commentedI know of two modules that have to change on that:
* OpenID Profile: Newest commit depends on this patch here.
* OpenID CP Field: Patch available #1146326: Support AX extensions
Comment #8
xamanu commentedCommitted.