<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>34336</bug_id>
          
          <creation_ts>2017-12-13 17:06:15 +0300</creation_ts>
          <short_desc>Проблема с полем выбора получателей в SOGo</short_desc>
          <delta_ts>2018-01-29 13:22:03 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>sogo3</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>C, backport</keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Andrey Cherepanov">cas</reporter>
          <assigned_to name="Ivan Zakharyaschev">imz</assigned_to>
          
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>167929</commentid>
    <comment_count>0</comment_count>
    <who name="Andrey Cherepanov">cas</who>
    <bug_when>2017-12-13 17:06:15 +0300</bug_when>
    <thetext>В веб интерфейсе при написании имени пользователя в полу Кому при составлении письма ввод символа &quot;б&quot;, начиная со второй позиции, воспринимается как нажатие Enter.

Т.е. например, ввести в поле Кому &quot;Рябов&quot; нельзя.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>167950</commentid>
    <comment_count>1</comment_count>
    <who name="Andrey Cherepanov">cas</who>
    <bug_when>2017-12-14 15:39:10 +0300</bug_when>
    <thetext>Ошибка воспроизводится в Chromium и не воспроизводится в Firefox.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>168290</commentid>
    <comment_count>2</comment_count>
    <who name="Ivan Zakharyaschev">imz</who>
    <bug_when>2017-12-30 14:15:05 +0300</bug_when>
    <thetext>Уже известная нам ошибка. (И не только нам: https://lists.inverse.ca/sogo/arc/users/2016-07/msg00032.html и https://github.com/angular/material/issues/8319 .)

Должна исправляться в JS-коде Angular в духе патчей (для работы с keys/chars, а не keycodes). Или более более топорным выключением.

Но для этого надо перегенирировать JS из исходников после патча, что у нас при сборке не происходит.

Напишу подробнее сейчас.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>168291</commentid>
    <comment_count>3</comment_count>
    <who name="Ivan Zakharyaschev">imz</who>
    <bug_when>2017-12-30 14:43:11 +0300</bug_when>
    <thetext>(In reply to comment #2)
&gt; Уже известная нам ошибка. (И не только нам:
&gt; https://lists.inverse.ca/sogo/arc/users/2016-07/msg00032.html и
&gt; https://github.com/angular/material/issues/8319 .)
&gt; 
&gt; Должна исправляться в JS-коде Angular в духе патчей (для работы с keys/chars, а
&gt; не keycodes).

1. пример для angular (для старой ли версии? sogo не могут пока переехать на новую, а та не поддерживается):

https://github.com/angular/material/pull/8321
https://github.com/vbraun/material/commit/50e929cba57b4b5197fcc2c12cb4d8e317f57758

2. где-то ещё (в каких-то форках на основе angular):

merged: https://github.com/Gbuomprisco/ngx-chips/pull/254/commits/e6e567e72d665ce7bcb3442efea7a963db3564ff

non-merged (solves other problems?): https://github.com/Gbuomprisco/ngx-chips/pull/266

&gt; Но для этого надо перегенирировать JS из исходников после патча, что у нас при
&gt; сборке не происходит.

Как делает InverseBot в своих коммитах. Тут всякие инструменты используются (npm, grunt, etc.). См.   UI/WebServerResources/GNUmakefile :

# GNUstep makefile

include ../common.make

WEBSERVER_RESOURCE_DIRS = css fonts img js
JS_FILES = js/Administration.* js/Common.* js/Contacts.* js/Mailer.* js/Main.* js/Preferences.* js/Scheduler.*
JS_LIB_FILES = js/vendor/angular-animate.* js/vendor/angular-aria.* js/vendor/angular-cookies.* js/vendor/angular-messages.* js/vendor/angular-file-upload.* js/vendor/FileSaver.* js/vendor/ng-sortable.* js/vendor/angular-material.* js/vendor/angular-sanitize.* js/vendor/angular-ui-router.* js/vendor/angular.* js/vendor/lodash.*
CSS_FILES = css/styles.css css/styles.css.map css/no-animation.css  css/no-animation.css.map

.DEFAULT_GOAL := all

dev:
	npm install --production
	@if [ ! -e angular-material/src ]; then \
	  git submodule init; \
	fi
	git submodule update
	@if [ -d bower_components ]; then \
	  bower update --allow-root; \
	else \
	  bower install --allow-root; \
	fi
	grunt --stack build

prod:
	grunt --stack build
	git update-index --no-assume-unchanged $(CSS_FILES) $(JS_FILES) $(JS_LIB_FILES)
	git add -f $(CSS_FILES) $(JS_FILES) $(JS_LIB_FILES)
	@if ! git diff --cached --quiet --exit-code; then \
		git commit -m &quot;(js/css) Update generated files&quot;; \
	else \
		echo &quot;Nothing to commit; skipping git-commit&quot;; \
	fi
	git update-index --assume-unchanged $(CSS_FILES) $(JS_FILES) $(JS_LIB_FILES)

all:
	@echo &quot;The &apos;all&apos; target does nothing. Use &apos;make dev&apos; to generate static files and &apos;make install&apos; to install them.&quot;

install:
	@if [ -L &quot;$(SOGO_WEBSERVERRESOURCESDIR)&quot; ]; then \
	  echo &quot;$(SOGO_WEBSERVERRESOURCESDIR) is a symbolic link (for development?). Installation skipped.&quot;; \
	else \
	  mkdir -p $(SOGO_WEBSERVERRESOURCESDIR); \
	  cp -r $(WEBSERVER_RESOURCE_DIRS) $(SOGO_WEBSERVERRESOURCESDIR)/; \
	fi

check:

clean:

distclean: clean

uninstall:
	@if [ -L &quot;$(SOGO_WEBSERVERRESOURCESDIR)&quot; ]; then \
	  echo &quot;$(SOGO_WEBSERVERRESOURCESDIR) is a symbolic link (for development?). Uninstallation skipped.&quot;; \
	else \
	  rm -rf $(SOGO_WEBSERVERRESOURCESDIR); \
	fi</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>168662</commentid>
    <comment_count>4</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2018-01-29 13:22:03 +0300</bug_when>
    <thetext>sogo3-3.2.10.20171010-alt2 -&gt; sisyphus:

Thu Jan 25 2018 Ivan Zakharyaschev &lt;imz@altlinux&gt; 3.2.10.20171010-alt2
- Fixed entering some letters (for example, Cyrillic Be or Zhe) in the
  address fields (like To:) of the message editor so that they do not act as
  &quot;separator&quot; keys (like comma or semicolon) any more; this error&apos;s cause
  was that these letters and the separators are on the same physical keys.
  (Thanks Volker Braun for implementing the underlying feature
  for this fix in the old angular-material.) (ALT#34336)

Wed Jun 21 2017 Evgeny Sinelnikov &lt;sin@altlinux.ru&gt; 3.2.9-alt2%ubt
- Add universal build tag (aka ubt macros)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>