Coder Social home page Coder Social logo

Comments (4)

mzmcbride avatar mzmcbride commented on August 19, 2024

What code are you using?

The "edit" method in page.py has a "skipmd5" argument that you can pass; cf. https://github.com/alexz-enwp/wikitools/blob/63a967b4/wikitools/page.py#L568.

from wikitools.

tshrinivasan avatar tshrinivasan commented on August 19, 2024

The code we use is here
https://github.com/tshrinivasan/tools-for-wiki/blob/master/pdf-upload-commons/pdf-djvu-uploader-commons.py

Will check the fix and share the results soon.

from wikitools.

alexz-enwp avatar alexz-enwp commented on August 19, 2024

Using skipmd5 will work around the problem here.

I don't think this is a problem with wikitools. It looks like a bug with MediaWiki. The issue is the character ā§Ÿ. Python/wikitools is correctly encoding it as e0a79f. But by the time it gets to the MD5 check in the MW API, it's been converted to āĻ¯+ āĻŧ, which is equivalent but is 2 separate characters, e0a6af+e0a6bc and will hash differently. It looks like it's correctly encoded in the PHP $_POST variable, so the problem is in MediaWiki somewhere.

Filed upstream - https://phabricator.wikimedia.org/T144071

from wikitools.

alexz-enwp avatar alexz-enwp commented on August 19, 2024

The change made in 8f7a4f2 should fix this issue.

from wikitools.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤ī¸ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.