Project

General

Profile

Zlib::DataError (incorrect header check) in Wiki history viewer

Added by Tomasz K over 13 years ago

Hi,

I added new issue #6634 but maybe you can help me.

My wiki history viewer don't work correct.

I changed wiki when zlib compression of wiki history was turned on (but like I wrote in issue description #6634 there is error when I want to read history changes).
After that I turned off zlib compression and added few new changes in wiki. Now when I want to look at wiki changes redmine shows me only that text as wiki diffs:

\x68312e205a6(...)0a6272616b
\x6423a48f36482346823(...)

^^ two hex coded lines, one green and one red.


Replies (8)

RE: Zlib::DataError (incorrect header check) in Wiki history viewer - Added by Felix Schäfer over 13 years ago

The Development forum is, as it's subtitle "Redmine core development" implies, is only for core discussions, not for support requests. Moving to Help.

RE: Zlib::DataError (incorrect header check) in Wiki history viewer - Added by Tomasz K over 13 years ago

I found solution. New PostgreSQL 9 default bytea output format is hex. So you have only change in configuration file value to old 'escape' format.

RE: Zlib::DataError (incorrect header check) in Wiki history viewer - Added by Etienne Massip about 13 years ago

Tomasz K wrote:

I found solution. New PostgreSQL 9 default bytea output format is hex. So you have only change in configuration file value to old 'escape' format.

Same issue with Rails 2.3.10, resolved it by using native pg adapter instead of ruby postgres-pr, which looks bugged (created an issue here https://github.com/mneumann/postgres-pr/issues/#issue/4])

RE: Zlib::DataError (incorrect header check) in Wiki history viewer - Added by Arye H over 11 years ago

Tomasz K wrote:

I found solution. New PostgreSQL 9 default bytea output format is hex. So you have only change in configuration file value to old 'escape' format.

Hello,

I have this same problem with postgres 9.1 on ubuntu 12.04 LTS.

Environment:
  Redmine version                          2.1.0.stable
  Ruby version                             1.8.7 (java)
  Rails version                            3.2.8
  Environment                              production
  Database adapter                         PostgreSQL

I edited the /etc/postgresql/9.1/main/postgresql.conf with:

bytea_output = 'escape'                 # hex, escape

and restarted the postgres server. The diff viewer in the wiki still appears in hex:

Wiki
Version 2 (Redmine Admin, 09/24/2012 10:10 am) → Version 3/3 (Redmine Admin, 09/24/2012 10:10 am)

\150\061\056\040\127\151\153\151\015\012\015\012\110\145\154\154\157\040\167\157\162\154\144\041 \150\061\056\040\127\151\153\151\015\012\015\012\110\145\154\154\157\040\167\157\162\154\144

Any ideas greatly appreciated.
Arye.

RE: Zlib::DataError (incorrect header check) in Wiki history viewer - Added by Arye H over 11 years ago

Etienne Massip wrote:

Use pg gem.

Hi Etienne!
Thanks for your response,

I used bundle as described in the install wiki:
http://www.redmine.org/projects/redmine/wiki/RedmineInstall

to install all the required gems.

I installed the pg gem as you recommended on top of the other ones:

redmine@dm4:~/redmine-2.1$ gem install pg

and the pb is still there.
Did I miss something?

RE: Zlib::DataError (incorrect header check) in Wiki history viewer - Added by Etienne Massip over 11 years ago

If you have postgres-pr grem installed, please uninstall it.

But that's weird, it should work already.

RE: Zlib::DataError (incorrect header check) in Wiki history viewer - Added by Arye H over 11 years ago

Etienne Massip wrote:

If you have postgres-pr grem installed, please uninstall it.

But that's weird, it should work already.

redmine@dm4:~/redmine-2.1$ gem uninstall postgres-pr 
INFO:  gem "postgres-pr" is not installed

Thanks much anyways.
I can live without that feature for now.

    (1-8/8)