Opened 10 years ago

Closed 9 years ago

#3549 closed defect (fixed)

Each page generates "TypeError: Incorrect padding"

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


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 10 years ago.
screenshot2.png (40.8 KB) - added by anonymous 10 years ago.

Download all attachments as: .zip

Change History (6)

Changed 10 years ago by anonymous

Attachment: screenshot.png added

comment:1 Changed 10 years ago by anonymous


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

comment:2 Changed 10 years ago by anonymous

Sry, [4563].

Changed 10 years ago by anonymous

Attachment: screenshot2.png added

comment:3 in reply to:  2 Changed 10 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 9 years ago by markm

Resolution: fixed
Status: newclosed

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.

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain Lucas Eisenzimmer.
The resolution will be deleted.

Add Comment

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

Note: See TracTickets for help on using tickets.