Opened 2 years ago

Closed 2 years ago

#589 closed defect (fixed)

unable to add blogs protected with the HTTP-Authentication

Reported by: daniloercoli Owned by: daniloercoli
Priority: critical Milestone: 2.6.4
Component: Add Blog/Site Version:
Keywords: Cc: ercoli@…

Description

A)
can't add a blog protected with http-auth ( tested on WP303 multisite and WP301 single site ).
The app ask you to put the http-auth credentials and you can correctly insert them. The app takes you on the previous screen and you can insert the blog username and password.
Hitting the btn "add blog" the following message appear: "The operation could't be completed. (NSURLErrorDomain error -1012.)

B)
if you set the HTTP auth to a blog already added within the app you can set the http-auth credentials and the new credentials work fine. But when inserted the credentials and clicked the save btn the app takes you on the blogs list and the following message appears: "Bad HTTP .....". Anyway, the new credential working fine.

Attachments (1)

http-auth-A.diff (10.2 KB) - added by daniloercoli 2 years ago.

Download all attachments as: .zip

Change History (6)

comment:1 Changed 2 years ago by daniloercoli

  • Owner set to daniloercoli
  • Status changed from new to assigned

A) happens when http credentials are different from blog credentials. There are some connection that are not handled by ASIHTTPRequest. We should control the http auth data for those connections.

B) sounds like the previous issue.

comment:2 Changed 2 years ago by daniloercoli

I should have a patch for this issue. i will share the patch tomorrow after more testing.

Changed 2 years ago by daniloercoli

comment:3 Changed 2 years ago by daniloercoli

I've attached a patch that should solve the authentication issues when using http credentials different from the blog credentials. This patch enable you to add several blogs with different authentication data without issue, although still remains some incongruence with the ASIHTTP framework.
I will provide a patch that resolve the point B asap.

comment:4 Changed 2 years ago by daniloercoli

fixed in [1351]

comment:5 Changed 2 years ago by daniloercoli

  • Resolution set to fixed
  • Status changed from assigned to closed
Note: See TracTickets for help on using tickets.