Contribute to Open Source. Search issue labels to find the right project for you!

2.3.1 TSX spread with union types


TypeScript Version: 2.3.1, 2.4.0-dev.20170427


type Foo = { foo: string }
type Bar = { bar: string }
type Baz = { baz: string }

type FBB = Foo | Bar | Baz

declare const obj: FBB

const FbbComponent = (props: FBB) => (

const comp1 = React.createElement(FbbComponent, { ...obj }) // works
const comp2 = <FbbComponent {...obj as Foo} /> // works
const comp3 = <FbbComponent {...obj} /> // does not work

Expected behavior:

Compiles without errors

Actual behavior: Error: Type '{}' is not assignable to type '(IntrinsicAttributes & Foo) | (IntrinsicAttributes & Bar) | (IntrinsicAttributes & Baz)'. Type '{}' is not assignable to type 'IntrinsicAttributes & Baz'. Type '{}' is not assignable to type 'Baz'. Property 'baz' is missing in type '{}'.

Updated 28/04/2017 23:18 1 Comments

Auto paste and preferences


If the selected (“insert”) clip were auto pasted, it should be the best clipboard manager around. The option could be also customizable, like Clipit does. I noted that the indicator creates an .indicator-bulletin-config.json file in my home, but it’s empty and I found nothing about how to compile it. You could add an option in the menu to edit preferences like clipit or diodon do, and make the .indicator-bulletin-config.json file have a sense.

Updated 29/04/2017 16:12 1 Comments

Incorrect intellisense error msg in rest params


TypeScript Version: vscode 1.11.2 builtin typescript


interface buttonObject {
  text: string;
  title: string;
  color?: boolean

interface Func {
  (...groups: Array<buttonObject | Array<buttonObject>>): any

let func: Func = function(...groups){
  let result ={
    if( === '[object Object]'){
      return [buttons];
      return buttons;

  // do something else

Then I invoke func, if I passed a object, the intellisense error msg is incorrect

  text: 123,
  title: 'title'

Expected behavior: [ts] Argument of type '{ text: number; title: string; }' is not assignable to parameter of type 'buttonObject'. Types of property 'text' are incompatible. Type 'number' is not assignable to type 'string'.

Actual behavior: [ts] Argument of type '{ text: number; title: string; }' is not assignable to parameter of type 'buttonObject | buttonObject[]'. Type '{ text: number; title: string; }' is not assignable to type 'buttonObject[]'. Property 'length' is missing in type '{ text: number; title: string; }'.

AND If I import the buttonObject interface from this file outside and
If I passed a object to func, there is no intellisense when I write object property. But if I put the object in an array, the intellisense worked again.

func({ // have no intellisense
  text: 123,
  title: 'title'

func([{ // intellisense works
  text: 123,
  title: 'title'



Updated 28/04/2017 16:44 1 Comments

Variable declared after use in generated code


TypeScript Version: 2.2.2


function foo() {
    const key = 'bar';

    return {
        [key || 'baz']: true

Expected behavior: js function foo() { var key = 'bar'; var _a; return _a = {}, _a[key || 'baz'] = true, _a; }

Actual behavior: js function foo() { var key = 'bar'; return _a = {}, _a[key || 'baz'] = true, _a; var _a; }

Updated 28/04/2017 07:01 3 Comments

[3.1.0 M5] Plugins installer is not working


STR : Navigate to the WSO2 IoT pack plugins and run the plugins-deployer.xml.

cd <IoT_HOME>/plugins mvn clean install -f plugins-deployer.xml

Following log is thrown. ```

/bin/sh -c cd /home/malintha/iot/stuff/wso2iot-3.1.0-SNAPSHOT/plugins && /usr/lib/jvm/java-8-oracle/jre/bin/java -jar /home/malintha/.m2/repository/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/plugins/org.eclipse.equinox.launcher_1.2.0.v20110725-1610.jar -nosplash -application org.eclipse.equinox.p2.director -metadataRepository file:/home/malintha/iot/stuff/wso2iot-3.1.0-SNAPSHOT/plugins/target/p2-repo -artifactRepository file:/home/malintha/iot/stuff/wso2iot-3.1.0-SNAPSHOT/plugins/target/p2-repo -profileProperties org.eclipse.update.install.features=true -installIU,,,, -bundlepool /home/malintha/iot/stuff/wso2iot-3.1.0-SNAPSHOT/plugins/../wso2/components -shared /home/malintha/iot/stuff/wso2iot-3.1.0-SNAPSHOT/plugins/../wso2/components/p2 -destination /home/malintha/iot/stuff/wso2iot-3.1.0-SNAPSHOT/plugins/../wso2/components/default -profile default -roaming

Installing 3.0.27. Installing 3.0.27. Installing 3.0.27. Installing 3.0.27. Installation failed. An error occurred while configuring the installed items session context was:(profile=default, phase=org.eclipse.equinox.internal.p2.engine.phases.Configure, operand=null –> [R] 3.0.27, action=org.eclipse.equinox.internal.p2.touchpoint.natives.actions.MkdirAction). Could not create directory /home/malintha/iot/stuff/wso2iot-3.1.0-SNAPSHOT/wso2/components/default/../../deployment/server/webapps/. Application failed, log file location: /home/malintha/.m2/repository/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/configuration/1493291086781.log

[INFO] ———————————————————————— [INFO] BUILD FAILURE [INFO] ———————————————————————— [INFO] Total time: 18.601 s [INFO] Finished at: 2017-04-27T16:34:54+05:30 [INFO] Final Memory: 18M/1041M [INFO] ———————————————————————— [ERROR] Failed to execute goal org.wso2.maven:carbon-p2-plugin:1.5.3:p2-profile-gen (default-feature-install) on project iot-devicetype-feature-installation: P2 publisher return code was 13 -> [Help 1]


Updated 28/04/2017 04:39 1 Comments

Yarn install is including tests and docs folder


<!– Before creating an issue please make sure you are using the latest version of yarn. –>

Do you want to request a feature or report a bug? <!– Is the feature a substantial feature request? Please use –> feature

What is the current behavior? I only tried this on a private repo, where yarn is including tests and docs folder when yarn install

If the current behavior is a bug, please provide the steps to reproduce. <!– If you can, provide a link to a public repository which contains the files necessary to reproduce this. –>

What is the expected behavior? To not include tests and docs folder

Please mention your node.js, yarn and operating system version. node.js v7.9.0, OSX 10.11.6

Updated 28/04/2017 15:28 2 Comments

Failed 8 out of 16 tests on Ubuntu 16.04


Similar to : I have compiled your gst-interpipe plugin on my 64bit Ubuntu 16.04 PC and after calling “make check” 8 out of 16 tests failed. You can see test logs here:

Additional information:

GStreamer version: 1.8.3
uname -a: Linux MyMachineName 4.8.0-49-generic #52~16.04.1-Ubuntu SMP Thu Apr 20 10:55:59 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
gcc version: gcc (Ubuntu 5.4.0-6ubuntu1~16.04.4) 5.4.0 20160609
Updated 26/04/2017 16:52 1 Comments

Auto-check for unused library dependencies.


@adamjstewart @tgamblin @davydden

After installing a shared library we should run scanelf -n (from pax-utils) on the libraries and check if all dependencies listed actually show up.

If they don’t show up, it might be just a build dependency or no dependency at all. We should print a maintainer message in this case.

Updated 26/04/2017 16:42 4 Comments

BMC Reset Reload TC fails due to Chassis is powered off

Firmware Image Details:
- [x] BUILD_ID :
- [x] VERSION_ID : v1.99.4-60-g1fb2a9d
- [x] Kernel : Linux witherspoon 4.7.10-b6e95d08c1fd39409fe0d127007a4166024fc8e7 #1 Tue Apr 25 21:40:52 UTC 2017 armv6l GNU/Linux

Test Case Ran: BMC Reset Reload when host is up and running. Expected Result: BMC Reset Reload happen without disturbing host power state. Actual Result: BMC reset reload happened successfully but brought down the chassis power also as off.

We are observing this frequently.

Updated 27/04/2017 17:56 5 Comments

LinkAssemblies issue




I get this error when i build with Link only SDK Assemblies. MSB4018: The “LinkAssemblies” task failed unexpectedly.


  • Xamarin.Forms.GoogleMaps - 1.7.1
  • Xamarin.Forms -
  • - 32.961.0


  • [x] Android
  • [ ] iOS
  • [ ] UWP

C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(1575,5): error MSB4018: The “LinkAssemblies” task failed unexpectedly. C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(1575,5): error MSB4018: Java.Interop.Tools.Diagnostics.XamarinAndroidException: error XA2006: Could not resolve reference to ‘Android.Gms.Maps.GoogleMap Android.Gms.Maps.MapView::get_Map()’ (defined in assembly ‘Xamarin.Forms.GoogleMaps.Android, Version=, Culture=neutral, PublicKeyToken=null’) with scope ‘Xamarin.GooglePlayServices.Maps, Version=, Culture=neutral, PublicKeyToken=null’. When the scope is different from the defining assembly, it usually means that the type is forwarded. —> Mono.Cecil.ResolutionException: Failed to resolve Android.Gms.Maps.GoogleMap Android.Gms.Maps.MapView::get_Map()

Updated 27/04/2017 10:05 7 Comments



P180 标签label的for属性是对应到input的id属性值的

P181 原文:则contactForm.value的值为: {name: ‘李四’, telNum: ‘123456789’} 此处name应该为contactName。取得是input的name属性值

Updated 26/04/2017 13:53 1 Comments

LTE / 4G not work, only Edge, H, H+


ISSUES ARE NOT A DISCUSSION/SUPPORT FORUM. Comments irrelevant to the issue WILL be removed.

If this issue is to report a bug, please provide everything you can from the list below: - ROM build version (date): 14.1-20170420-UNOFFICIAL-z2_plus - logcat (pastebin link): - dmesg (pastebin link): - console-ramoops (pastebin link): - Steps to reproduce: update from 14.1-20170330-UNOFFICIAL-z2_plus

Baseband-Version: 9-00026-M8996FAAAANAZM-1.63821.1 Provider: Vodafone Germany

Updated 26/04/2017 09:54 1 Comments

Error with this['prop'] type interacting with || operator


<!– BUGS: Please use this template. –>

TypeScript Version: 2.2.1, 2.3.0


// A *self-contained* demonstration of the problem follows...
// Compiled with strictNullChecks=true
class Foo {
    test1(foo:string|undefined):string {
        return foo || 'default'; // no error
    test2(params:{foo: string|undefined}):string {
        return || 'default'; // no error
    test3(params:Pick<{foo: string|undefined}, 'foo'>):string {
        return || 'default'; // no error


    test4(params:Pick<this, 'foo'>):string {
        return || 'default'; // error: undefined not assignable to string
    test5(foo:this['foo']):string {
        return foo || 'default'; // error: undefined not assignable to string
    test6(foo:this['foo']):string {
        return (foo as string|undefined) || 'default'; // no error

Expected behavior: Expected no errors because the type of the expression foo || 'default' should be string in all cases.

Actual behavior: When a type is derived indrectly from this it seems to break the type inference of the || operator.

Error:(17, 6) TS2322:Type 'this["foo"]' is not assignable to type 'string'.
  Type 'string | undefined' is not assignable to type 'string'.
    Type 'undefined' is not assignable to type 'string'.
Error:(20, 6) TS2322:Type 'this["foo"]' is not assignable to type 'string'.
  Type 'string | undefined' is not assignable to type 'string'.
    Type 'undefined' is not assignable to type 'string'.
Updated 26/04/2017 20:49 3 Comments

Error TS2346 when importing React components written in JavaScript


<!– BUGS: Please use this template. –> <!– QUESTIONS: This is not a general support forum! Ask Qs at –> <!– SUGGESTIONS: See –>

TypeScript Version: 2.3.0

Code See repo here:

import React from 'react';

export default class Component extends React.Component {
    constructor(...args) {

Expected behavior:

No error

Actual behavior:

Error: src/component.js(5,9): error TS2346: Supplied parameters do not match any signature of call target.
Updated 25/04/2017 20:58 1 Comments

Try to send html from controller


Summary of problem or feature request

I want send to the table some HTML tags like

I use editColumn to add some HTML code to this column its work with addColumn but not with editColumn the question is how I can send HTML elements to table from controller the example above show the HTML tags when I need to view label

<!– Please describe your problem/feature request here. –>

Code snippet of problem

public function CustomerTicketAjax(Request $request, $id)
    if ($request->ajax()) {
        $tickets = Customer::find($id);
        return Datatables::of(CustomerTicket::with('user')->where('customer_id', $tickets->id))

            ->editColumn('status', function ($tickets) {
                if ($tickets->status == 1) {
                    return '<span class="label bg-red" style="font-size: 21px;">open</span>';
                } elseif ($tickets->status == 0) {
                    return '<span class="label bg-red" style="font-size: 21px;">close</span>';


<!– If applicable, please include a copy of your code which triggers the suspected bug.

You may use the markdown php code tags to format your paste:

$params = ['foo'];


System details

<!– Please include these details about your system! If they are omitted, the ticket will be deprioritized over other users requests/tickets. –>

  • PHP 7.1
  • Laravel 5.4
  • Laravel-Datatables 7.*
Updated 26/04/2017 02:57 1 Comments

Интеллектуальный выбор (фокус) между окнами контейнеров


Кратковременное переключение на другой контейнер, например, для заимствования и переноса параметра или блока

не должно менять фокус предыдущего окна, либо можно использовать прозрачность, либо понимать что пользователь не хочет менять фокус текущего окна, и кратковременно переключился на другой контейнер Раскрытые контейнеры загораживают друг и друга и нужно будет придумать решение

Не забыть подискутировать на эту тему.

Updated 27/04/2017 09:46 1 Comments

Rename string literal values


I have interfaces in my app.

Let’s take a dog as example :

interface Dog {
  name: string
  id?: number

When I post a Dog on the server, I ask the user to give me the dog’s name and the server will return an object of Dog type.

So my function to post the Dog only needs his name : ```typescript function postDog(name: string) { // … }

const dog: Dog = { name: ‘wouaf’ } postDog( ```

The thing is, if I decide to rename the Dog’s name property, my function won’t have the parameter renamed. (yes this is pure luxury :gem: and it wouldn’t break anything in frontend at least because if my interface matches what the server is expecting …)

So a collegue (@vnoel) helped me figure that out : ```typescript // utility type Prop<T, K extends keyof T> = { [P in K]: T[P] }

type Doggy = Prop<Dog, ‘name’ | ‘id’>

function f(o: Doggy) { console.log(, }

f({ id: 5, name: ‘wouaf’ }) ```

This is great ! The only thing is that when I use F2 to rename the property (in VSC) : image

Would it be possible to auto-rename the property everywhere ?
At least we have an error which is great for now :) But doing that automatically would be :1st_place_medal:

PS : I think it’s related to and but a little bit different

Updated 26/04/2017 18:48 1 Comments

Broken cursor and current line highligting after CtrlSpace


When I enter CtrlSpace window and close it I have my cursor looking as in insert-mode and current line isn’t highlighted until I go to different mode and then back, or for example press % (move around brackets).

Minimal init.vim to reproduce it:

filetype off
exec 'set rtp+='. ($HOME) .'/.config/nvim/bundle/Vundle.vim'                                                                                             
call vundle#begin($HOME . '/.config/nvim/bundle')                                                                                                        
Plugin 'gmarik/Vundle.vim', {'pinned': 1} " provided by git-submodule                                                                                    
Plugin 'vim-ctrlspace/vim-ctrlspace'                                                                                                                                
call vundle#end()                                                                                                                                        
filetype plugin indent on 
set hidden

Short screencast that demonstrates the issue:

I’m sure it isn’t connected directly to the CtrlSpace plugin but the Oni’s issue, it was just obvious way for me to reproduce it. In nvim TUI or nvim-qt GUI it can’t be reproduced.

Updated 26/04/2017 16:21 2 Comments

js error when click the save button


dashboard.js:29 Dashboard Object {id: “58f0bcebdce3b51308cbe45c”, template: “capone”, title: “ljtesthygieia”, widgets: Array[5], owners: Array[1]…} bower.js:15606 TypeError: Cannot read property ‘$setValidity’ of undefined at config.js:99 at processQueue (bower.js:18103) at bower.js:18119 at Scope.$eval (bower.js:19401) at Scope.$digest (bower.js:19215) at Scope.$apply (bower.js:19509) at done (bower.js:13489) at completeRequest (bower.js:13698) at XMLHttpRequest.requestLoaded (bower.js:13626) (anonymous) @ bower.js:15606 (anonymous) @ bower.js:12114 processQueue @ bower.js:18111 (anonymous) @ bower.js:18119 $eval @ bower.js:19401 $digest @ bower.js:19215 $apply @ bower.js:19509 done @ bower.js:13489 completeRequest @ bower.js:13698 requestLoaded @ bower.js:13626

anyone know?

Updated 27/04/2017 12:39 1 Comments

Wrapped types


Has anyone proposed support for wrapped types?

I don’t know if this is the correct name for it, but what I mean is, the ability to “specialize” primitive types, in the static sense only, e.g. meaning a particular assertion has been made about the pseudo-type or the content, range, format, etc. of a given value.


  • Columns (e.g. grid units) are a kind of number
  • Zip-code is a kind of number
  • E-mail address is a kind of string
  • Hex color code is a kind of string
  • User ID is a kind of number

And so on.

Currently we can’t define types for these types.

That is, type aliases don’t really work for this:

type Columns = number;

var c = 12 as Columns; // inferred type is number

Becaus they’re just aliases, obviously.

But even extending Number into Columns doesn’t really work:

interface Columns extends Number { }

var c = 12 as Columns; // works, but...

c = 6; // ... doesn't really work

Here the type of c is Columns, but a regular number is direcly assignable to it with no assertion about the unit - there’s no guarantee here that 6 is actually a number of columns.

So the behavior I’m looking for is something more along the lines of this:

typedef Columns = number;

var c = 12 as Columns; // c inferred as Columns

c = 6; // should error

So typedef would work more like extends, but with stricter type-checking: you should be able to cast a number to Columns, but the compiler should not permit you to implicitly cast a number literal to Columns.

This would enable us to make “type-casts” in the form of simple functions that make various assertions - for example:

typedef Color = string;

function color(hex: string): Color {
    if (/^[0-9a-f]{6}$/.test(hex)) {
        return hex as Color;
    throw new Error("out of range: " + hex);

let maroon = color("ee30a7");

let blue = color("blue"); // throws Error

How come we don’t have this feature?

Seems like this would be low hanging fruit?

Updated 26/04/2017 03:48 5 Comments

'Jump to test' does not popup 'create test' dialog if no tests exist


Steps: 1. Install intellij idea (17.1.1) 2. install moreunit plugin from repositories (1.0.6) 3. write a java class (no test class) 4. select goto -> jump to test

On first attempt, it shows a popup on class name saying that no test class was found. Then on there is no popup. Neither is there a dialog asking to create a new test; similar to how in Eclipse plugin does. It is preferable to have the generator called because the built in test generator in Idea does not support JMockit mocking of autowired dependencies and you have to do it manually.

Updated 25/04/2017 06:52 1 Comments

SSH server failure.


Ver Build 16179.rs_prerelease. 170414-1642

After several update, i can not connect to WSL ssh server.

Is there same issue like this?

$ssh WSL

ssh_exchange_identification: Connection closed by remote host
$ssh WSL -vvvv

OpenSSH_5.3p1, OpenSSL 1.0.1e-fips 11 Feb 2013
debug1: Reading configuration data /home/wyim/.ssh/config
debug1: Applying options for won
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Connecting to [] port 222.
debug1: Connection established.
debug1: identity file /home/wyim/.ssh/identity type -1
debug1: identity file /home/wyim/.ssh/identity-cert type -1
debug3: Not a RSA1 key file /home/wyim/.ssh/id_rsa.
debug2: key_type_from_name: unknown key type '-----BEGIN'
debug3: key_read: missing keytype
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug2: key_type_from_name: unknown key type '-----END'
debug3: key_read: missing keytype
debug1: identity file /home/wyim/.ssh/id_rsa type 1
debug1: identity file /home/wyim/.ssh/id_rsa-cert type -1
debug1: identity file /home/wyim/.ssh/id_dsa type -1
debug1: identity file /home/wyim/.ssh/id_dsa-cert type -1
debug1: identity file /home/wyim/.ssh/id_ecdsa type -1
debug1: identity file /home/wyim/.ssh/id_ecdsa-cert type -1
ssh_exchange_identification: Connection closed by remote host
 ll ~/.ssh
total 48K
drwx------.  2 wyim 4.0K Apr 24 15:35 .
drwx------. 52 wyim 4.0K Apr 24 15:35 ..
-rw-------.  1 wyim 6.8K Dec 28 10:37 authorized_keys
-rw-------.  1 wyim  830 Apr 24 15:35 config
-rw-------.  1 wyim 1.7K Apr 24 15:34 id_rsa
-rw-------.  1 wyim  392 Apr 24 15:34
-rw-------.  1 wyim 9.0K Jan  2 11:06 known_hosts

WSL sshd_config ``` $ cat /etc/ssh/sshd_config

Package generated configuration file

See the sshd_config(5) manpage for details

What ports, IPs and protocols we listen for

Port 222

Use these options to restrict which interfaces/protocols sshd will bind to

ListenAddress ::

ListenAddress Protocol 1,2

HostKeys for protocol version 2

HostKey /etc/ssh/ssh_host_rsa_key HostKey /etc/ssh/ssh_host_dsa_key HostKey /etc/ssh/ssh_host_ecdsa_key HostKey /etc/ssh/ssh_host_ed25519_key

Privilege Separation is turned on for security

UsePrivilegeSeparation no

Lifetime and size of ephemeral version 1 server key

KeyRegenerationInterval 3600 ServerKeyBits 1024


SyslogFacility AUTH LogLevel INFO


LoginGraceTime 120 PermitRootLogin prohibit-password StrictModes yes

RSAAuthentication yes PubkeyAuthentication yes

AuthorizedKeysFile %h/.ssh/authorized_keys

Don’t read the user’s ~/.rhosts and ~/.shosts files

IgnoreRhosts yes

For this to work you will also need host keys in /etc/ssh_known_hosts

RhostsRSAAuthentication no

similar for protocol version 2

HostbasedAuthentication no

Uncomment if you don’t trust ~/.ssh/known_hosts for RhostsRSAAuthentication

IgnoreUserKnownHosts yes

To enable empty passwords, change to yes (NOT RECOMMENDED)

PermitEmptyPasswords no

Change to yes to enable challenge-response passwords (beware issues with

some PAM modules and threads)

ChallengeResponseAuthentication no

Change to no to disable tunnelled clear text passwords

PasswordAuthentication yes

Kerberos options

KerberosAuthentication no

KerberosGetAFSToken no

KerberosOrLocalPasswd yes

KerberosTicketCleanup yes

GSSAPI options

GSSAPIAuthentication no

GSSAPICleanupCredentials yes

X11Forwarding yes X11DisplayOffset 10 PrintMotd no PrintLastLog yes TCPKeepAlive yes

UseLogin no

MaxStartups 10:30:60

Banner /etc/

Allow client to pass locale environment variables

AcceptEnv LANG LC_*

Subsystem sftp /usr/lib/openssh/sftp-server

Set this to ‘yes’ to enable PAM authentication, account processing,

and session processing. If this is enabled, PAM authentication will

be allowed through the ChallengeResponseAuthentication and

PasswordAuthentication. Depending on your PAM configuration,

PAM authentication via ChallengeResponseAuthentication may bypass

the setting of “PermitRootLogin without-password”.

If you just want the PAM account and session checks to run without

PAM authentication, then enable this but set PasswordAuthentication

and ChallengeResponseAuthentication to ‘no’.

UsePAM yes

PermitRootLogin no AllowUsers wyim ```

$ cat /etc/hosts.deny

# /etc/hosts.deny: list of hosts that are _not_ allowed to access the system.
#                  See the manual pages hosts_access(5) and hosts_options(5).
# Example:    ALL:, .some.domain
#             ALL EXCEPT in.fingerd:, .other.domain
# If you're going to protect the portmapper use the name "rpcbind" for the
# daemon name. See rpcbind(8) and rpc.mountd(8) for further information.
# The PARANOID wildcard matches any host whose name does not match its
# address.
# You may wish to enable this to ensure any programs that don't
# validate looked up hostnames still leave understandable logs. In past
# versions of Debian this has been the default.
$ cat /etc/hosts.allow
# /etc/hosts.allow: list of hosts that are allowed to access the system.
#                   See the manual pages hosts_access(5) and hosts_options(5).
# Example:    ALL: LOCAL @some_netgroup
#             ALL: EXCEPT
# If you're going to protect the portmapper use the name "rpcbind" for the
# daemon name. See rpcbind(8) and rpc.mountd(8) for further information.
Updated 24/04/2017 23:50 1 Comments

add "none" body option with no content type for OPTIONS requests.


Create a OPTIONS request Send the request and check the server header dumper. Expect no body or content-type header. Actually a content-type header of plain/text is received.

Recommend to add a ‘none’ option to the possible body tap radio options for body type, for OPTIONS requests.


If none is selected do NOT send content-type.

This may apply to other request methods for which this is an issue.

Updated 24/04/2017 18:22 1 Comments

Sometimes it uses the goto option without asking (and does it wrongly)


Well, this is actually just one problem. But since I installed this months ago, passff changes its configuration suddenly with no apparent reason.
I have setted it for just fill on the forms. But, sometimes I use it with Ctrl+Y and Enter to notice that it has disconfigured itself and now it uses the Goto>Fill>Submit.

So, the problem is having to configure it again, and the changes won’t work until I restart Firefox. It’s so annoying because, another issue that I’m having is that when that happens, it’s still not working properly.

For example, I have this password:

In theory, the Goto option should go to and send a login request. But what it does is: go to http://mratmartinez/

I don’t know if that’s because a bug or just my password storage structure isn’t the right one for using that option. But I wouldn’t have noticed this without the first problem.

Also, excuse me if there is any error in my english. If something isn’t clear enough, I will try to explain it again differently. I don’t think I can provide a screenshot, because as I said, this happens randomly. Most of the times it works right just filling. But some others, it uses the Goto option and tries send me to my nickname instead of the webpage.

Updated 25/04/2017 19:23 2 Comments

Handshake fail with NYT's The Daily


Not sure if this is just me, or if it’s on NYT’s end, but could someone let me know if they are able to successfully download any episodes from this feed:

gpodder is able to grab the feed info and the file size for me, but on download fails with:

Failed: I/O Error: [Errno 1] _ssl.c:510: error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure: None - The Daily

Sorry if this shouldn’t be an issue. Still needs confirmation and it’s a new podcast, so very likely isn’t on gpodder’s end…

Updated 23/04/2017 16:23 2 Comments

Feature request: tag-scoped expressions


On numerous occasions I have needed to use the same expression multiple times within the same tag. It would be great if we could store that in a local variable within the tag to prevent the browser having to re-evaluate the expression, plus improve DRY & readability.

E.g. BEFORE: <div each={item in items}> <div> Result is {item.a * item.b + item.c} </div> <sub-tag some-opt={item.a * item.b + item.c} /> <some-other-tag some-opt={(item.a * item.b + item.c) * 10} /> </div>

AFTER: ``` <div each={item in items}> <var name=“result” value={item.a * item.b + item.c} />

    Result is {result}

<sub-tag some-opt={result} />
<some-other-tag some-opt={result * 10} />

</div> ```

… 5. How would you tag this issue?

  • [ ] Question
  • [ ] Bug
  • [ ] Discussion
  • [X] Feature request
  • [ ] Tip
  • [ ] Enhancement
  • [ ] Performance
Updated 23/04/2017 14:28 3 Comments

Improper scrollbar layout in subtitle preferences


<!– Please use English, if possible. If you really feel the need to use a different language to get your point across, you may add a description in your native language to supplement your report. –> <!– Please also try to search for your issue to avoid it being closed as a duplicate. –>

<!– Change these to match your system. If you’re using a version compiled from source, please mention so here along with the commit you’re using. –> System and IINA version:

  • macOS 10.12.4
  • IINA 0.0.7 and 2ec1f651324b1e1aa13c8bc856269baa4e1ea53c

Expected behavior: IINA should not let scrollbars in subtitle preferences overlap the content area when Show scroll bars preference is set to Always.

<!– If this is feature request, please use this section to explain the rationale behind your idea and why you believe it would be beneficial. –> Actual behavior: Scrollbars overlap the content area, and even further a horizontal scrollbar appears. <!– If you’re reporting a crash, please copy the stack trace below, between the backticks (you can find these in ~/Library/Logs/DiagnosticReports/; the filename should prefixed with IINA and include the crash time). If not, feel free to delete this section. –>

Workaround: I am not very familiar with GUI stuff, so I cannot tell you how to fix it properly. Supposedly the layout should account for scrollbar size regardless of the mentioned preference and never let the contents overlap with the scrollbar (even if it is partially transparent).

A quick and dirty workaround until could be to enforce partially transparent scrollbars and thus override the system preference. To do so add scrollView.scrollerStyle = NSScrollerStyle.overlay right after this line.

Autolayout warnings: ``` 2017-04-23 03:11:48.112239+0300 IINA[11056:12477828] [Layout] Unable to simultaneously satisfy constraints: ( “<NSAutoresizingMaskLayoutConstraint:0x600000087440 h=-&- v=-&- H:[NSClipView:0x103443180]-(15)-| (active, names: ‘|’:NSScrollView:0x6100001c2580 )>”, “<NSLayoutConstraint:0x610000085320 NSScrollView:0x6100001c2580.trailing == NSView:0x610000122440.trailing (active)>”, “<NSLayoutConstraint:0x610000089510 H:[NSView:0x610000122440]-(0)-| (active, names: ‘|’:NSClipView:0x103443180 )>” )

Will attempt to recover by breaking constraint <NSLayoutConstraint:0x610000089510 H:[NSView:0x610000122440]-(0)-| (active, names: ‘|’:NSClipView:0x103443180 )>

Set the NSUserDefault NSConstraintBasedLayoutVisualizeMutuallyExclusiveConstraints to YES to have -[NSWindow visualizeConstraints:] automatically called when this happens. And/or, set a symbolic breakpoint on LAYOUT_CONSTRAINTS_NOT_SATISFIABLE to catch this in the debugger. 2017-04-23 03:11:48.172936+0300 IINA[11056:12477828] [Layout] Unable to simultaneously satisfy constraints: ( “<NSLayoutConstraint:0x610000085320 NSScrollView:0x6100001c2580.trailing == NSView:0x610000122440.trailing (active)>”, “<NSLayoutConstraint:0x610000089510 H:[NSView:0x610000122440]-(0)-| (active, names: ‘|’:NSClipView:0x103443180 )>”, “<NSAutoresizingMaskLayoutConstraint:0x600000087440 h=-&- v=-&- H:[NSClipView:0x103443180]-(15)-| (active, names: ‘|’:NSScrollView:0x6100001c2580 )>” )

Will attempt to recover by breaking constraint <NSLayoutConstraint:0x610000089510 H:[NSView:0x610000122440]-(0)-| (active, names: ‘|’:NSClipView:0x103443180 )>

Set the NSUserDefault NSConstraintBasedLayoutVisualizeMutuallyExclusiveConstraints to YES to have -[NSWindow visualizeConstraints:] automatically called when this happens. And/or, set a symbolic breakpoint on LAYOUT_CONSTRAINTS_NOT_SATISFIABLE to catch this in the debugger. ```

Updated 23/04/2017 01:16 4 Comments



The function alignAgents in Behavior class isn’t working correctly. It seems like it only aligns agents at the beginning of the program, because groups of neighboring flocks are immediately formed and refuse to interact with other agents/flocks.

Fix to this is figuring out how to update the neighboring agents correctly.

EDIT: see version 4/24/2017 jason-wip branch for this phenomena

Updated 27/04/2017 00:32 7 Comments

Error with combining Array types? Error: Cannot invoke an expression whose type lacks a call signature


TypeScript Version: 2.2.1


function getHandler(handlers: number[] | string[]): any {
    return => handler);

Expected behavior: Without error!

Actual behavior: Error text:

error TS2349: Cannot invoke an expression whose type lacks a call signature. Type ‘{ (this: [string, string, string, string, string], callbackfn: (value: string, index: number, …’ has no compatible call signatures.

Updated 24/04/2017 16:43 1 Comments

Support for Mix-in classes: can not export mixing function from a module


TypeScript Version: 2.2


// A *self-contained* demonstration of the problem follows...
export interface ITagged {
    _tag: string;

export type TAnyConstructor<T> = new (...args: any[]) => T;

export function MixedTagged<T extends TAnyConstructor<{}>>(Base: T) {
    return class extends Base implements ITagged {
        _tag: string;
        constructor(...args: any[]) {
            this._tag = "";

Expected behavior: Should be no error. The function returns a class which implements interface. It should be treated by compiler as original Base class which supports ITagged interface. Otherwise this mixing is useless.

Actual behavior: Error Build:Return type of exported function has or is using private name ‘(Anonymous class)’

Updated 23/04/2017 15:06 1 Comments

Assigning string values to string literal type class properties raises type error


<!– BUGS: Please use this template. –> <!– QUESTIONS: This is not a general support forum! Ask Qs at –> <!– SUGGESTIONS: See –>

TypeScript Version: 2.2.2


interface SomeInterface {
    mProperty: "property" | "anotherProperty";

class Test implements SomeInterface {
    mProperty = "property";

I initially ran into this issue when writing something in React:

interface ComponentState {
    selectedOption: "option1" | "option2" | "option3";

class SomeComponent extends React.Component<any, ComponentState> {
    state = {
        selectedOption: "option1"

both the above raise the same error.

Expected behavior: I’m not actually sure if this is intended behaviour or not, but, in my mind, TS should infer that string literal “property” can be either type string or type string literal "property".

Actual behavior: Types of property 'property' are incompatible. Type 'string' is not assignable to type '"property" | "anotherProperty"'.

Updated 25/04/2017 23:05 2 Comments



<!— Provide a general summary of your changes in the Title above –>


<!— Describe your changes in detail –> PR to merge changes from main repo, while changes were to forked repo, before pushing to the main repo.

Motivation and Context

<!— Why is this change required? What problem does it solve? –> <!— If it fixes an open issue, please link to the issue here. –> Merge changes with main repo.

How Has This Been Tested?

<!— Please describe in detail how you tested your changes. –> <!— Include details of your testing environment, and the tests you ran to –> <!— see how your change affects other areas of the code, etc. –> Tested locally.

Types of changes

<!— What types of changes does your code introduce? Put an x in all the boxes that apply: –> - [x] Bug fix (non-breaking change which fixes an issue) - [x] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to change)


<!— Go over all the following points, and put an x in all the boxes that apply. –> <!— If you’re unsure about any of these, don’t hesitate to ask. We’re here to help! –> - [x] My code follows the code style of this project. - [x] My change requires a change to the documentation. - [x] I have updated the documentation accordingly. - [x] I have read the CONTRIBUTING document. - [ ] I have added tests to cover my changes. - [x] All new and existing tests passed.

Updated 21/04/2017 21:42

Temporary variable declared too late


Code ```js var b; class C { static properties: { [key: string]: string } = { [“foo”] : “bar1”,
}; static otherproperties = (
b = {}, b[“foo”] = “bar2”, b); }

// Use C console.log([“foo”] + “ ” + C.otherproperties[“foo”]) // End of original src ``` Expected behavior:

I would have expected that the sugar/javascript for constructing ‘properties’ would have declared the tmp variable before the construction. In the compile js the _a is declared after the last expression (but before that last comment??).

Google closure compiler warns about this.

Actual behavior: js var _b; var C = (function () { function C() { } return C; }()); = (_a = {}, _a["foo"] = "bar1", _a); C.otherproperties = (_b = {}, _b["foo"] = "bar2", _b); // Use C console.log(["foo"] + " " + C.otherproperties["foo"]); var _a; // End of original src

Updated 24/04/2017 17:33 4 Comments

Error while read Class/struct from s7-1200


Code Issue - index out of range exception when read class. ```C# namespace DemoS7NetPlus {

/// <summary>
/// Interaction logic for MainWindow.xaml
/// </summary>
public partial class MainWindow : Window

    public class TestDB
        public bool TestowyBool { get; set; }
        public bool DrugiBool { get; set; }

    public MainWindow()

        Plc plc = new Plc(CpuType.S71200, "", 0, 1);


        if (!plc.IsConnected)

        Task.Run(() =>

    TestDB demo = new TestDB();

            while (true)
                plc.ReadClass(demo, 1); //here index out of range exception 
                //"   w S7.Net.Types.Class.FromBytes(Object sourceClass, Type classType, Byte[] bytes)\r\n   w S7.Net.Plc.ReadClass(Object sourceClass, Int32 db, Int32 startByteAdr)\r\n   w DemoS7NetPlus.MainWindow.<>c__DisplayClass1_0.<.ctor>b__0() w C:\\Users\\Admin\\Documents\\Visual Studio 2017\\Projects\\DemoS7NetPlus\\DemoS7NetPlus\\MainWindow.xaml.cs:wiersz 55\r\n   w System.Threading.Tasks.Task`1.InnerInvoke()\r\n   w System.Threading.Tasks.Task.Execute()"


} ```


virtualbox_win7_32_tia 13_21_04_2017_11_35_28

Updated 25/04/2017 08:43 2 Comments

Cert auth per frontend


What version of Traefik are you using (traefik version)?

Version:      v1.2.3
Codename:     morbier
Go version:   go1.7.5
Built:        2017-04-13_07:21:10PM
OS/Arch:      linux/amd64

What is your environment & configuration (arguments, toml…)?

Docker + labels.

What did you do?

I wanted to make sure that only certificate-authenticated clients can connect to a certain subpath of some services.

What did you expect to see?

A way to do this.

What did you see instead?

Current Traefik’s cert auth is implemented by entrypoint, similar to #751. Obeying, here’s its counterpart for cert auth. 😊

Updated 21/04/2017 19:54

Fork me on GitHub