Modify

Opened 6 years ago

Closed 6 years ago

#3549 closed defect (fixed)

Each page generates "TypeError: Incorrect padding"

Reported by: rwargo@… Owned by: lei
Priority: normal Component: PageToDocIntegration
Severity: blocker Keywords:
Cc: Trac Release: 0.11

Description

Using a non-default theme, each page I try to download in MS Word format results in the error message: "TypeError: Incorrect padding". Trac is running under Win2003 Server.

I'm also using the latest release of trac in the trunk (7444 as of this moment).

Attachments (2)

screenshot.png (205.9 KB) - added by anonymous 6 years ago.
screenshot2.png (40.8 KB) - added by anonymous 6 years ago.

Download all attachments as: .zip

Change History (6)

Changed 6 years ago by anonymous

comment:1 Changed 6 years ago by anonymous

Hi,

please check if this issue got fixed in [3563].

comment:2 follow-up: Changed 6 years ago by anonymous

Sry, [4563].

Changed 6 years ago by anonymous

comment:3 in reply to: ↑ 2 Changed 6 years ago by anonymous

Replying to anonymous:

Sry, [4563].

Still receiving same error, now at line 81. I've tested in IE7, Firefox and Chrome. I've attached another screenshot of error.

comment:4 Changed 6 years ago by markm

  • Resolution set to fixed
  • Status changed from new to closed

Wow - I was making this very complicated :)

The fix is simple (and I hope it works for you). The change in [4563] was not done correctly. There should have been brackets around the two exception types. This is in fact one of those typical Python pitfalls. (change was made in [5400])

Currently the code only handles Basic authentication - and I guess your setup has Digest authentication. I hope that the code as it is now will work for your site (without trying to handle digest authentication).

If I need to handle digest authentication then I think a new bug should be opened.

Add Comment

Modify Ticket

Action
as closed The owner will remain lei.
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.