Have you read T9456
- Queries
- All Stories
- Search
- Advanced Search
- Transactions
- Transaction Logs
All Stories
Sep 28 2015
Hiding is completely essential. If you have 10 lines of code with 5 comments, where there are say 1 reply each, All the comments inline make it impossible to read the code anymore. Inline comments are not helpful for larger more complex code where the reviewer needs to reason about more than 1 line of code.
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.
Right, sometimes it works perfectly. I just don't get it, it seems kinda random. Maybe I should try once more on another new VM. Please note it only happens when there were commits to push. Pushing without changes always works.
Quick progress update here: Owners packages now have configurable custom fields, so you can add one like this:
Resources still do not have expiration behaviors.
"I see" said the blind man as he tripped over his code.
One idea is that we could let you designate peers (either explicitly, or implicitly by sharing administrative control with them? -- but probably explicitly) who are permitted to strip your MFA tokens.
Thank you, I will look into it. Do you have any idea why this worked with the IP address on another machine (a "normal" computer, not a VM)?
Do you think, this could be the problem?
When I accessed the IP address of the VM at this point.
Have you not set up a domain name yet?
Not as an upstream solution.
Would stripping the tags from the md file during rendering be a solution? It would be sufficient here...
You said it doesn't happen every time with SSH? I had setup SSH on my 3.5.1 <-> 3.5.1 setup and it seemed to push without issues, but I think I only tried once or twice.
When I accessed the IP address of the VM at this point.
This is my latest debugging result:
There's no way to do this. It would allow anyone with commit access to XSS other users and take over their accounts.
I've installed Phabricator on a freshly installed server and switched to Mercurial over SSH. Now I'm getting the same problem, but it's kinda random somehow. Sometimes I don't get the error, but most of the times I do:
Pretty sure this was only possible after the introduction of .arclint.
Yes, this did the trick:
Thank you for your reply.
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.
+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 27 2015
You can't add Conduit tokens without MFA though right?
T7248 was a case of a user with neither the mysql nor mysqli extensions installed.
If users have MFA configured, I think it's important that we not let an attacker avoid MFA checks on operations (including adding SSH keys) by using Conduit. So if we had a method for adding SSH keys we'd either have to deactivate it when we hit an MFA block, or implement CLI MFA somehow (seems tricky/complex?) or have it add a "request" and then require the user to confirm that they want to add the key via MFA from the web UI after passing MFA, maybe (this feels bad to me for a bunch of reasons, though).
It would be easier to implement this if we say the second form is required (enter JSON -> parse JSON -> interpolate the variable in stirings), but I think it's not intuitive that you can't just type {$me.phid} into a field like authorPHID. Certainly, I'd expect that if the console supported variables they'd be proper-value-variables, not string-interpolation-variables, since string interpolation is completely useless except that it's easier to implement.
I can't remember off the top of my head, but I thought we had a way to pass flags to external linters. Something like this:
In T8975#138256, @epriestley wrote:We haven't seen other requests for this and I don't think it's very straightforward. Consider these JSON values:
[{$me.phid}] ["{$me.phid}"]
The former value is not valid JSON though?
There are two use-cases here:
We're already impersonating them; we do the standard arc install-certificate process to configure Arcanist, and then we want to automatically configure SSH access afterwards. This is to make configuration of a developer's machine only require one manual step (authenticating with Phabricator for Arcanist).
Aha, so the users are also different, and they're real users (not bots)?
Because they're developer machines VMs, we want pushes to be recognized as that developer, so they have the correct policies applied.
I don't understand this use case. Why do you have unique keys per-VM?
Pretty sure this was fixed during T2769. I can't reproduce it at HEAD:
Ran into this today and had to try again for it to work (and upgrade). The error is scary and probably should be addressed.
D14173 explains upstream attitudes toward exit codes in greater detail.
All result pages have a "Hide Query" button now, I think since the last redesign.
I'm just going to close this, I think T1460 has similar discussion already.
We haven't seen reports about this from other installs or experienced it ourselves, and we've run an instanced production cluster with a mixture of workloads for more than 6 months now. All the daemon stuff has also changed a lot over the course of the last two years since this was originally reported.
T8818 was a specific example of a user hitting open_basedir issues.
I think this is a duplicate of T9260, and was likely resolved by D14169.
bin/files compact shouldn't normally do much of anything; the better fix might be to identify what's causing these files to be written despite being compactable and stop it from doing that. My expectation is that all file writing callsites should automatically reuse storage if possible in modern code.
Never mind, there's already such a note.
I can't reproduce this. Here's what I did:
Since php.ini settings are shared across all PHP scripts on computer there is no way to increase per-script memory limit other than changing script invocation command line to something like php -d memory_limit=-1 actual_script.
From discussion on IRC, I think this was a UI issue (these parsers do not block the queue, it just isn't clear that "Leased" includes tasks being actively worked on and tasks waiting on lease expiry), not a queue issue? We can improve this UI but I'm probably not going to touch it until I can collect some more stuff there (cf T7307).
We haven't seen other requests for this and I don't think it's very straightforward. Consider these JSON values:
Oh, I didn't look at the stack trace carefully when dealing with T9458. I think the fix for that (D14142) almost certainly resolved this, too.
I think this isn't our responsibility.
I think the way forward here is likely:
Possibly a bug with PHP's implementation of escapeshellarg for Windows?
Sep 26 2015
If you submit this as a differential revision it will give a better interface for others to review and discuss the suggested change.
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.
There's some relevant information on the progress on the Drydock side of this here: T9252#138215
These things are now complete:
API keys are now all cycled (except ReCAPTCHA, which doesn't seem to be cyclable and is a ~zero-value target anyway) and everything seems to have swapped over cleanly.
(Testing inbound mail...)
(Testing S3 / SES keys on this host...)