Page MenuHomePhabricator
Feed Advanced Search

Oct 13 2015

beber added a comment to T9553: www.googleapis.com refuses GET with Content-Length.
$ git show
commit 367fadac24f24b826820e2fadced34b21cfff9ef
Merge: 4348cea d0105f1
Author: epriestley <git@epriestley.com>
Date:   Sat Oct 3 05:09:03 2015 -0700
Oct 13 2015, 12:27 AM · libphutil

Oct 12 2015

epriestley added a comment to T9553: www.googleapis.com refuses GET with Content-Length.

Can you show me the output of these commands on the server?

Oct 12 2015, 11:50 PM · libphutil
beber created T9553: www.googleapis.com refuses GET with Content-Length.
Oct 12 2015, 11:35 PM · libphutil

Oct 9 2015

joshuaspence updated the task description for T1116: Function __phutil_autoload should probably not throw an exception if it is the only registered autoload function.
Oct 9 2015, 1:51 AM · libphutil

Oct 7 2015

joshuaspence added a parent task for T5155: Evaluate support for AWS IAM Roles in S3 Client: T9526: Support IAM credentials for Elasticsearch.
Oct 7 2015, 5:13 PM · Files

Sep 29 2015

RyanNerd added a comment to T9444: The function phutil_console_get_terminal_width needs to work with Windows.

I forgot about that. The Windows

mode

command will return the words such as "Columns" per the locale of Windows. So looking for literally "Columns" will only work for the English Windows locales.

Sep 29 2015, 6:40 PM · Windows, libphutil

Sep 28 2015

theunreplicated added a comment to T9444: The function phutil_console_get_terminal_width needs to work with Windows.

As for the regex note that I am not the author of it,as stated in my comment above(maybe it has been overlooked because i didn't say that clearly),i have just taken it from stackoverflow(if that's ok) to provide a solution for this task as it seemed to be straightforward.As you said this regex looks really weird,I for myself would't even be able to form such an regex,but I am able to explain roughly in detail.
So mode contains in my case 2 blocks,one with sth others and the other with the headline containng CON,this regex looks for the first appearance of CON followed by an arbitary number of any characters following a : .As you have pointed it's better to use the con directly via mode con,i have added a patch that does it.The : is follwed by a sequence marked by ( ),this sequence is detected when a line break(\n occurs) followed by an arbitary number of characters without |,so every time a line break occurs it will trigger that sequence.THe 3 in the { specifies how many times this sequence should match in the text before the regex engine proceeds with the next statement(I bet you're aware of this),which is (?<cols>\d+).
I guess ?<cols> is to copy the matched contents of this sequence in to the key with cols in $matches,so it's redundant as basically every sequence marked with( is accessible by a number as key.The \d stands for digits,so as soon as the regex engine encounters a non-digit,it will abort.

Sep 28 2015, 10:17 PM · Windows, libphutil
RyanNerd added a comment to T9444: The function phutil_console_get_terminal_width needs to work with Windows.

"I see" said the blind man as he tripped over his code.

Sep 28 2015, 6:17 PM · Windows, libphutil
cspeckmim added a comment to T9444: The function phutil_console_get_terminal_width needs to work with Windows.

My suggestion was regarding the

`mode`

changing to

`mode con`

Which will limit the output of the mode command to only include the keyboard/console device, rather than running a blanket mode that returns status for all devices, then relying on the regex to locate the CON. I suggested this as a way that might reduce the complexity of the regex.

Sep 28 2015, 3:08 AM · Windows, libphutil
RyanNerd added a comment to T9444: The function phutil_console_get_terminal_width needs to work with Windows.

+1 vote from me to comment the use of regular expressions (how can anything that looks like this "'/CON.*:(\n[^|]+?){3}(?<cols>\d+)/" be called regular?)

Sep 28 2015, 3:05 AM · Windows, libphutil

Sep 26 2015

cspeckmim added a comment to T9444: The function phutil_console_get_terminal_width needs to work with Windows.

If you submit this as a differential revision it will give a better interface for others to review and discuss the suggested change.

Sep 26 2015, 10:19 PM · Windows, libphutil
theunreplicated added a comment to T9444: The function phutil_console_get_terminal_width needs to work with Windows.

I think my suggested code from stackoverflow for Windows behaves like its unix counterpart,as it outputs the same numberm,namely 80, and does not rely on the actual size of the terminal window.However,note,that I have not tested the following code in conjunction with phutil,only tested the code stated in my comment above.

Sep 26 2015, 9:17 PM · Windows, libphutil

Sep 21 2015

RyanNerd added a comment to T9444: The function phutil_console_get_terminal_width needs to work with Windows.

Here is the code snippet for Unix/Linux:

Sep 21 2015, 2:40 AM · Windows, libphutil
RyanNerd added a comment to T9444: The function phutil_console_get_terminal_width needs to work with Windows.

In the code the unix Command tput cols is used. All this really does is look at the $TERM environment variable and infers the column count from that. On my Mint 17.2 this is 'xterm' and the tput cols command always returns 80 (which is the default column width for xterm).

Sep 21 2015, 2:31 AM · Windows, libphutil

Sep 20 2015

theunreplicated added a comment to T9444: The function phutil_console_get_terminal_width needs to work with Windows.
preg_match('/CON.*:(\n[^|]+?){3}(?<cols>\d+)/', `mode`, $matches);
$cols = $matches['cols'];

This outputs the number of columns of the terminal window according to http://stackoverflow.com/questions/263890/how-do-i-find-the-width-height-of-a-terminal-window (it's a weird trick),so I assume the width can be concluded in some way from the number of columns. Tested it ,but however when resizing the window by mouse the number of columns stays the same,don't know whether this behaves exactly as the non-Windows implementation.

Sep 20 2015, 7:49 PM · Windows, libphutil

Sep 19 2015

joshuaspence renamed T9444: The function phutil_console_get_terminal_width needs to work with Windows from The function phutil_console_get_terminal_width() needs to work with Windows to The function phutil_console_get_terminal_width needs to work with Windows.
Sep 19 2015, 3:56 AM · Windows, libphutil
RyanNerd added a project to T9444: The function phutil_console_get_terminal_width needs to work with Windows: Windows.
Sep 19 2015, 2:10 AM · Windows, libphutil
RyanNerd added a comment to T1273: There should be a way to specify phutil library dependencies.

Thanks for the response. I have similar concerns about security and using Composer in my own personal projects.
Perhaps similar logic to bower could be leveraged (which I think is more security conscious).
I'd hate to have to reinvent the wheel for library dependencies.

Sep 19 2015, 2:05 AM · libphutil

Sep 18 2015

chad changed the visibility for T1273: There should be a way to specify phutil library dependencies.
Sep 18 2015, 9:20 PM · libphutil
epriestley added a comment to T1273: There should be a way to specify phutil library dependencies.

Yes. This project does not use Composer. See T6012. See also T5055.

Sep 18 2015, 9:14 PM · libphutil
RyanNerd added a comment to T1273: There should be a way to specify phutil library dependencies.

Forgive my ignorance, but isn't this what Composer does?

Sep 18 2015, 9:11 PM · libphutil
RyanNerd created T9444: The function phutil_console_get_terminal_width needs to work with Windows.
Sep 18 2015, 9:02 PM · Windows, libphutil

Sep 6 2015

joshuaspence added a parent task for T7488: Add shell completion support to PhutilArgumentWorkflow: T9116: Shell completion doesn't work for filenames containing a space.
Sep 6 2015, 8:10 AM · Restricted Project, libphutil

Aug 30 2015

kfll created T9285: Custom locale may fail when pht a sentence with variants.
Aug 30 2015, 8:07 AM · Localization

Aug 29 2015

joshuaspence updated subscribers of T5155: Evaluate support for AWS IAM Roles in S3 Client.
Aug 29 2015, 1:38 AM · Files

Aug 22 2015

joshuaspence merged task T9230: Libphutil xhpast seems broken into T9175: XHPAST doesn't build automatically.
Aug 22 2015, 4:38 AM · XHPAST

Aug 20 2015

tycho.tatitscheff closed T9230: Libphutil xhpast seems broken as Resolved.

After a few try seems to works ..

Aug 20 2015, 8:20 PM · XHPAST
joshuaspence added a comment to T8258: Allow comments in JSON.

I want to work on this eventually but I haven't had the time.

Aug 20 2015, 12:42 PM · Restricted Project, libphutil, Arcanist
cburroughs added a comment to T8258: Allow comments in JSON.

@joshuaspence Did your stab draw blood?

Aug 20 2015, 12:31 PM · Restricted Project, libphutil, Arcanist
tycho.tatitscheff created T9230: Libphutil xhpast seems broken.
Aug 20 2015, 10:33 AM · XHPAST

Jul 23 2015

chad changed the visibility for T1649: Make it easy to run another PhutilArgumentParser workflow from within a workflow.
Jul 23 2015, 4:40 AM · libphutil

Jul 21 2015

tycho.tatitscheff added a comment to T8914: Refine libphutil/resources/ssl/README.

Looking at https://phabricator.marc-richter.info it is an RSA based cert so nevermind.

Jul 21 2015, 8:13 PM · Documentation, libphutil
tycho.tatitscheff added a comment to T8914: Refine libphutil/resources/ssl/README.

Let me ask something, since I get a similar issue.
What type of crypto your self-signed cert is using ??

Jul 21 2015, 8:10 PM · Documentation, libphutil
Judge created T8914: Refine libphutil/resources/ssl/README.
Jul 21 2015, 1:47 PM · Documentation, libphutil

Jul 14 2015

chad edited projects for T8845: Headings which resolve with markup become an `X` in Table of Contents on Wiki, added: Remarkup, libphutil; removed Phriction.
Jul 14 2015, 8:24 PM · libphutil, Remarkup

Jul 12 2015

quinyx_martin added a comment to T8821: arc commands (diff, version) fails on Windows - terrible fix inside.

Of course, I understand that the solution needs to be done properly in order to not break for others. I like the implementation in the diff you mentioned - it is not pretty but at least we contain the "hacks" in one place for the different environments. And who knows - maybe Windows 10 will give us a proper bash to use so that these problems will be long gone.

Jul 12 2015, 2:54 PM · Windows, libphutil, Arcanist
hach-que added a comment to T8821: arc commands (diff, version) fails on Windows - terrible fix inside.

The problem is that escaping commands on Windows is thoroughly broken; there is no one solution that will work universally for everyone. Fixing this issue by changing the escaping so that it works under Command Prompt may well break it under msysGit, and it's important to understand in what situations the error occurs so that we don't cause regressions for anyone else.

Jul 12 2015, 1:39 PM · Windows, libphutil, Arcanist
quinyx_martin added a comment to T8821: arc commands (diff, version) fails on Windows - terrible fix inside.

Can you try running Arcanist commands under msysGit?

Jul 12 2015, 1:31 PM · Windows, libphutil, Arcanist
quinyx_martin updated the task description for T8821: arc commands (diff, version) fails on Windows - terrible fix inside.
Jul 12 2015, 1:28 PM · Windows, libphutil, Arcanist
hach-que added a comment to T8821: arc commands (diff, version) fails on Windows - terrible fix inside.

Can you try running Arcanist commands under msysGit?

Jul 12 2015, 1:25 PM · Windows, libphutil, Arcanist
quinyx_martin added a comment to T8821: arc commands (diff, version) fails on Windows - terrible fix inside.

We used the above script to install Arcanist this Friday (2 days ago). If you are running a version near that date or before it, then it's definitely an environment issue as the script works fine.

The only real issue with this approach is that there is a limit to the PATH environment string so what I had to do was to shorten all my entries by converting everything to DOS paths.

This is somewhat concerning; I have no idea what effect this will have.

I do not run msysGit Bash

You'll need Git installed for even the most basic of Arcanist commands to work (how did you clone Arcanist / libphutil without having Git installed?)

Jul 12 2015, 1:24 PM · Windows, libphutil, Arcanist
hach-que added a comment to T8821: arc commands (diff, version) fails on Windows - terrible fix inside.

We used the above script to install Arcanist this Friday (2 days ago). If you are running a version near that date or before it, then it's definitely an environment issue as the script works fine.

Jul 12 2015, 1:08 PM · Windows, libphutil, Arcanist
quinyx_martin added a comment to T8821: arc commands (diff, version) fails on Windows - terrible fix inside.

I don't understand where these issues are coming from; we have several developers that use the latest version of Arcanist and libphutil on Windows without issue.

I think what needs to be established:

  • How did you install PHP?
  • What version of PHP are you using?
  • Does Arcanist work fine under msysGit Bash?
  • Does Arcanist work fine under Windows Command Prompt?
  • Does Arcanist work fine under Windows PowerShell?
  • What value do you have for system-wide PATH?
  • Is both arc.bat and php.exe in your system-wide PATH?
Jul 12 2015, 1:05 PM · Windows, libphutil, Arcanist
hach-que added a comment to T8821: arc commands (diff, version) fails on Windows - terrible fix inside.

For reference, this is the Powershell script we use to install Arcanist on developer machines (replace the URL https://code.redpointsoftware.com.au/ with your own instance). On a fresh install of Windows (or an install of Windows that does not have PHP or Arcanist installed), run this under an Administrator Powershell prompt and restart the computer.

Jul 12 2015, 12:15 PM · Windows, libphutil, Arcanist
hach-que added a comment to T8821: arc commands (diff, version) fails on Windows - terrible fix inside.

I don't understand where these issues are coming from; we have several developers that use the latest version of Arcanist and libphutil on Windows without issue.

Jul 12 2015, 12:11 PM · Windows, libphutil, Arcanist

Jul 10 2015

avivey added a project to T8821: arc commands (diff, version) fails on Windows - terrible fix inside: Windows.
Jul 10 2015, 8:08 PM · Windows, libphutil, Arcanist
quinyx_martin updated the task description for T8821: arc commands (diff, version) fails on Windows - terrible fix inside.
Jul 10 2015, 11:16 AM · Windows, libphutil, Arcanist
quinyx_martin created T8821: arc commands (diff, version) fails on Windows - terrible fix inside.
Jul 10 2015, 10:33 AM · Windows, libphutil, Arcanist

Jul 7 2015

yelirekim added a revision to T6646: phutil_console_get_terminal_width failing intermittently when left to its own devices inside a screen session: D13519: Cache terminal width.
Jul 7 2015, 6:48 PM · libphutil

Jun 16 2015

joshuaspence updated subscribers of T8258: Allow comments in JSON.
Jun 16 2015, 9:06 PM · Restricted Project, libphutil, Arcanist

Jun 15 2015

josetesan updated the task description for T8541: Domain Exception on trying to write to undefined property mailer.
Jun 15 2015, 8:57 AM · Mail
josetesan created T8541: Domain Exception on trying to write to undefined property mailer.
Jun 15 2015, 8:57 AM · Mail
joshuaspence merged task T8540: Phabricator daemons do not start after upgrade into T8538: Phd daemon won't run .
Jun 15 2015, 8:36 AM · Arcanist, libphutil
josetesan created T8540: Phabricator daemons do not start after upgrade.
Jun 15 2015, 8:29 AM · Arcanist, libphutil

Jun 14 2015

joshuaspence created T8532: Filesystem class need some test coverage.
Jun 14 2015, 5:50 AM · libphutil

Jun 13 2015

joshuaspence added a revision to T5655: Standardize naming conventions: D13271: Rename DoorkeeperBridge subclasses.
Jun 13 2015, 4:55 AM · libphutil, Arcanist
joshuaspence added a revision to T5655: Standardize naming conventions: D13266: Rename PassphraseCredentialType subclasses for consistency.
Jun 13 2015, 12:44 AM · libphutil, Arcanist

Jun 11 2015

Mnkras updated the task description for T8505: Extending testing functionality.
Jun 11 2015, 3:05 AM · libphutil, Infrastructure

Jun 10 2015

joshuaspence created T8505: Extending testing functionality.
Jun 10 2015, 9:36 PM · libphutil, Infrastructure
joshuaspence merged T8494: Autoloader throws if class does not exist into T1116: Function __phutil_autoload should probably not throw an exception if it is the only registered autoload function.
Jun 10 2015, 11:15 AM · libphutil
joshuaspence merged task T8494: Autoloader throws if class does not exist into T1116: Function __phutil_autoload should probably not throw an exception if it is the only registered autoload function.
Jun 10 2015, 11:15 AM · libphutil
joshuaspence created T8494: Autoloader throws if class does not exist.
Jun 10 2015, 8:21 AM · libphutil

Jun 5 2015

joshuaspence added a revision to T5655: Standardize naming conventions: D13165: Rename some remarkup classes.
Jun 5 2015, 11:03 AM · libphutil, Arcanist

May 28 2015

joshuaspence updated subscribers of T7488: Add shell completion support to PhutilArgumentWorkflow.
May 28 2015, 9:24 PM · Restricted Project, libphutil

May 23 2015

joshuaspence claimed T8258: Allow comments in JSON.

I might take a stab at this.

May 23 2015, 12:14 PM · Restricted Project, libphutil, Arcanist
joshuaspence triaged T8258: Allow comments in JSON as Wishlist priority.
May 23 2015, 12:13 PM · Restricted Project, libphutil, Arcanist
joshuaspence renamed T8258: Allow comments in JSON from (optional) allow json linter to accept comments to Allow comments in JSON.
May 23 2015, 12:13 PM · Restricted Project, libphutil, Arcanist

May 19 2015

joshuaspence added a comment to T8258: Allow comments in JSON.

I think there's a point at which your parsing JavaScript instead of JSON...

May 19 2015, 9:11 PM · Restricted Project, libphutil, Arcanist
staticshock added a comment to T8258: Allow comments in JSON.

Seems weird, primarily due to lack of standardization. Would // and # both work? Or only one of them? The decision winds up being kind of arbitrary.

May 19 2015, 9:02 PM · Restricted Project, libphutil, Arcanist
joshuaspence added a comment to T8258: Allow comments in JSON.

This has come up for discussion before, although I can't remember when/where. Generally, I'm onboard with it.

May 19 2015, 8:35 PM · Restricted Project, libphutil, Arcanist
cburroughs created T8258: Allow comments in JSON.
May 19 2015, 3:56 PM · Restricted Project, libphutil, Arcanist

May 18 2015

avivey added a project to T3130: Improve recognition of symbols in Java: Symbols.
May 18 2015, 5:24 AM · Symbols, libphutil
joshuaspence placed T7286: Re-evaluate whether passing GET data in the body is a good idea up for grabs.

I haven't actually done anything on this.

May 18 2015, 12:02 AM · libphutil

May 14 2015

newint33h added a comment to T7616: Arcanist to be able to access site requiring client side SSL certificate.

I had added code to implement this feature to arcanist and libphutil and is working. How can I contribute to have this feature added to code base?

May 14 2015, 11:44 PM · Arcanist, libphutil

May 12 2015

joshuaspence triaged T7488: Add shell completion support to PhutilArgumentWorkflow as Low priority.
May 12 2015, 11:41 PM · Restricted Project, libphutil
joshuaspence triaged T7489: Move argument spelling correction to PhutilArgumentWorkflow as Low priority.
May 12 2015, 11:41 PM · libphutil

May 4 2015

joshuaspence claimed T7488: Add shell completion support to PhutilArgumentWorkflow.
May 4 2015, 8:10 AM · Restricted Project, libphutil
joshuaspence claimed T7489: Move argument spelling correction to PhutilArgumentWorkflow.
May 4 2015, 8:10 AM · libphutil

May 3 2015

joshuaspence added a revision to T5655: Standardize naming conventions: D12669: Rename PhabricatorSearchEngine subclasses.
May 3 2015, 7:57 AM · libphutil, Arcanist

Apr 27 2015

joshuaspence added a revision to T5655: Standardize naming conventions: D12568: Rename some functions.
Apr 27 2015, 10:57 AM · libphutil, Arcanist
joshuaspence added a revision to T5655: Standardize naming conventions: D12563: Rename protocol adapter classes.
Apr 27 2015, 9:20 AM · libphutil, Arcanist

Apr 7 2015

epriestley removed 1 mock(s) for T5042: Futures()->limit(X) does not ensure that X number of tasks are running after the first set of tasks: Restricted Pholio Mock.
Apr 7 2015, 12:25 PM · Restricted Project, libphutil
epriestley removed a revision from T5042: Futures()->limit(X) does not ensure that X number of tasks are running after the first set of tasks: D12308: Further improvements to array comma linter rule.
Apr 7 2015, 12:25 PM · Restricted Project, libphutil
epriestley removed a subtask for T5042: Futures()->limit(X) does not ensure that X number of tasks are running after the first set of tasks: T7740: Chrome exhibits weird scrolling jumping with anchor in the URL.
Apr 7 2015, 12:25 PM · Restricted Project, libphutil
nagym718 added a subtask for T5042: Futures()->limit(X) does not ensure that X number of tasks are running after the first set of tasks: T7740: Chrome exhibits weird scrolling jumping with anchor in the URL.
Apr 7 2015, 8:04 AM · Restricted Project, libphutil
nagym718 added a revision to T5042: Futures()->limit(X) does not ensure that X number of tasks are running after the first set of tasks: D12308: Further improvements to array comma linter rule.
Apr 7 2015, 8:03 AM · Restricted Project, libphutil
nagym718 added 1 mock(s) for T5042: Futures()->limit(X) does not ensure that X number of tasks are running after the first set of tasks: Restricted Pholio Mock.
Apr 7 2015, 8:03 AM · Restricted Project, libphutil

Apr 6 2015

epriestley triaged T7616: Arcanist to be able to access site requiring client side SSL certificate as Wishlist priority.
Apr 6 2015, 1:29 PM · Arcanist, libphutil
epriestley added a comment to T7616: Arcanist to be able to access site requiring client side SSL certificate.

We haven't seen other interest in this and don't plan to pursue it in the near term. I believe deployment of client SSL certificates is exceptionally rare in the wild. Running Conduit over SSH (T550) might solve some of the same problems but has far broader acceptance.

Apr 6 2015, 1:29 PM · Arcanist, libphutil

Mar 30 2015

epriestley added a comment to T7692: Support for pure AnonymousUser LDAP binds.

I assume that was handled by the password envelope

Mar 30 2015, 2:22 PM · LDAP, libphutil
devurandom added a comment to T7692: Support for pure AnonymousUser LDAP binds.

In some setups, your patch allows any attacker to log in to any LDAP account by just not typing a password.

Mar 30 2015, 2:18 PM · LDAP, libphutil
epriestley closed T7692: Support for pure AnonymousUser LDAP binds as Wontfix.

I assume my patch does not change current behaviour for others

Mar 30 2015, 2:01 PM · LDAP, libphutil
devurandom added a comment to T7692: Support for pure AnonymousUser LDAP binds.

In my authentication module I have e.g. this code for my PhutilAuthAdapter:

public function getAccountRealName() {
  $username = explode("@", $this->getAccountID(), 2)[0];
  $provider = PhabricatorLDAPAuthProvider::getLDAPProvider();
Mar 30 2015, 1:51 PM · LDAP, libphutil
devurandom renamed T7692: Support for pure AnonymousUser LDAP binds from Support for AnonymousUser LDAP binds to Support for pure AnonymousUser LDAP binds.
Mar 30 2015, 1:48 PM · LDAP, libphutil
epriestley added a comment to T7692: Support for pure AnonymousUser LDAP binds.

It is expected that this block will handle the case you describe, note the comment about rebinding with anonymous credentials and the actual rebind lower down.

Mar 30 2015, 12:10 PM · LDAP, libphutil
devurandom updated the task description for T7692: Support for pure AnonymousUser LDAP binds.
Mar 30 2015, 9:43 AM · LDAP, libphutil
devurandom created T7692: Support for pure AnonymousUser LDAP binds.
Mar 30 2015, 9:39 AM · LDAP, libphutil

Mar 18 2015

vgabor added revisions to T7616: Arcanist to be able to access site requiring client side SSL certificate: D12107: T7616: Arcanist to be able to access site requiring client side SSL certificate, D12106: T7616: Arcanist to be able to access site requiring client side SSL certificate.
Mar 18 2015, 12:55 AM · Arcanist, libphutil
vgabor created T7616: Arcanist to be able to access site requiring client side SSL certificate.
Mar 18 2015, 12:40 AM · Arcanist, libphutil

Mar 15 2015

epriestley added a comment to T5155: Evaluate support for AWS IAM Roles in S3 Client.

Support for streaming files (vs fire-and-forget requests) -- which I think was discussed somewhere -- is no longer very important after T7149. We can now store files of arbitrary size in engines that only expose the existing writeEntireFile($big_chunk_of_data) API without major downsides.

Mar 15 2015, 7:31 PM · Files