Jump to content

Tikhonov Ivan

Clients
  • Posts

    27
  • Joined

  • Last visited

 Content Type 

Downloads

Release Notes

IPS4 Guides

IPS4 Developer Documentation

Invision Community Blog

Development Blog

Deprecation Tracker

Providers Directory

Projects

Forums

Events

Store

Gallery

Posts posted by Tikhonov Ivan

  1. 16 minutes ago, Jim M said:

    Please ensure that you have applied the latest release and all patches. I have tagged a developer to review what you have posted though.

    Thanks, Jim. That's the point of latest release as well, compared with v4.7.15 the btoa() function appeared in core java-script and utf-8 character string is unacceptable as a btoa() argument.

  2. After upgrade we've noticed the new btoa() function and error "failed to execute btoa()" in global_global_core.js
    As a result, pagination for cyrillic urls stopped working. 
    See https://developer.mozilla.org/en-US/docs/Glossary/Base64#the_unicode_problem

    As a temporary solution we implemented the convertion between UTF-8 and single-byte representations before call btoa(), like

    Quote

        const toBinaryStr = url => {
            const encoder = new TextEncoder();
            const charCodes = encoder.encode(url);
            const binString = Array.from(charCodes, (byte) => String.fromCodePoint(byte), ).join("");
            return binString;
        };
       <...>
        this._stateKey = `table${btoa(toBinaryStr(this.scope.attr('data-baseurl') ? ips.utils.url.pageParamToPath(this._cleanUpURL(this.scope.attr('data-baseurl')), this._pageParam, 1) : ''))}`;

  3. On 6/16/2022 at 12:39 PM, Matt said:

    Are you concerned about brute force log in attempts? We have built in protection for this as multiple failed attempts to log into a user account lock the account for 15 minutes.

    Hello. The problem is still relevant. Hackers check login information from other hacked forums and other databases. They use an array of proxy servers and will check emails and passwords from other services. Users often use the same emails and passwords. A captcha on the login form could prevent such an attack.

  4. I'am not sure I got the point. InnoDB strict mode is enabled by default and we guess that's correct. Rebuilding the search index is not in connection with innodb syntax rules.

    System core generates AGAINST ('*someword* *') or AGAINST ('*') which leads to error statement, just try to execute the following two commands.

    • IPS applications/core/modules/front/search/search.php query:
      SELECT *, ( MATCH(index_title) AGAINST ('*someword* *' IN BOOLEAN MODE)) as result FROM `core_search_index` LIMIT 5;
    • no error query: 
      SELECT *, ( MATCH(index_title) AGAINST ('*someword*' IN BOOLEAN MODE)) as result FROM `core_search_index` LIMIT 5;
  5. We've converted all tables of forum's DB into InnoDB format as suggested by AdminCenter.

    Just then the system log began collecting the errors in search query "IPS\Db\Exception: syntax error, unexpected $end, expecting FTS_TERM or FTS_NUMB or '*' (1064)" 

    The query itself is in the following format:
    SELECT *, (( MATCH(index_title) AGAINST ('*some_word* *' IN BOOLEAN MODE)<... and so on...>

    We believe the forum core generates it while this is coming from data input when the user is asking something like to "see everything", but for InnoDB AGAINST('*' ...) is not valid. Fulltext expects to see some_word(s), not a lone wildcard '*' (nor separately).

    Would it be fixed (or tell us, please, how can we do it) or we are better to fall back to MyISAM table?

    Invision Community v4.7.5, PHP 8.0.26, Percona Server for MySQL 5.7.40-43

  6. @Adriano Faria Hello!

    Thanks for the plugin! Maybe you will help me to solve this problem: 
    Invision Community v4.3.4.  During installation I receive an error 1S111/1

    image.thumb.png.319d79971d5b8836983d656ef4a89d1e.png

    After that, there are 2 items "New Topic Rules" appear in the menu

    image.thumb.png.299b37085cb5c5e2ac15f13aed649fb1.png

    A tab "newtopicrules" appears in the section settings, but if you try to save the text, an error occurs: "EX1054 Something went wrong. Please try again. "

    image.thumb.png.ad67a634594954fdb379b427ff7f9d73.png

×
×
  • Create New...