
GITHUB . COM {
}
Detected CMS Systems:
- Wordpress (2 occurrences)
Title:
tmpdir creation fails when the username contains illegal characters for directory names Β· Issue #8317 Β· pytest-dev/pytest
Description:
tmpdir, tmpdir_factory and tmp_path_factory rely on getpass.getuser() for determining the basetemp directory. I found that the user name returned by getpass.getuser() may return characters that are not allowed for directory names. This m...
Website Age:
17 years and 8 months (reg. 2007-10-09).
Matching Content Categories {π}
- Technology & Computing
- Mobile Technology & AI
- Games
Content Management System {π}
What CMS is github.com built with?
Github.com is built with WORDPRESS.
Traffic Estimate {π}
What is the average monthly size of github.com audience?
ππ Tremendous Traffic: 10M - 20M visitors per month
Based on our best estimate, this website will receive around 10,653,780 visitors per month in the current month.
check SE Ranking
check Ahrefs
check Similarweb
check Ubersuggest
check Semrush
How Does Github.com Make Money? {πΈ}
Subscription Packages {π³}
We've located a dedicated page on github.com that might include details about subscription plans or recurring payments. We identified it based on the word pricing in one of its internal links. Below, you'll find additional estimates for its monthly recurring revenues.How Much Does Github.com Make? {π°}
Subscription Packages {π³}
Prices on github.com are in US Dollars ($).
They range from $4.00/month to $21.00/month.
We estimate that the site has approximately 5,316,107 paying customers.
The estimated monthly recurring revenue (MRR) is $22,327,651.
The estimated annual recurring revenues (ARR) are $267,931,808.
Wordpress Themes and Plugins {π¨}
What WordPress theme does this site use?
It is strange but we were not able to detect any theme on the page.
What WordPress plugins does this website use?
It is strange but we were not able to detect any plugins on the page.
Keywords {π}
issue, verified, merge, tmpdir, directory, characters, added, sign, pytest, illegal, getpassgetuser, plugin, type, symonk, projects, fails, username, names, nicoddemus, commit, references, navigation, enterprise, pytestdev, pull, requests, actions, security, creation, closed, pborsutzki, logged, create, mode, def, path, filenotfounderror, echo, related, builtin, bug, problem, addressed, fixed, contained, bors, partially, github, milestone, footer,
Topics {βοΈ}
/users/john_doe/appdata/local/temp/pytest users\\john_doe\\appdata\\local\\temp\\pytest complicated ssh/windows setup echo def test_tmpdir assigned labels plugin python38\lib\pathlib comment metadata assignees type projects projects milestone contained illegal characters temp directory symonk added tmpdir related local session fails contoso\john_doe contoso/john_doe' contoso\\john_doe' addressed type directory names ssh connection exist_ok=false illegal characters tmpdir pytest pytest 6 basetemp directory temporary directory return characters test test_tmp tmp_path_factory rely 7p1 server command python error message parents = false parents=false bug problem milestone relationships py john_doe github domain username mode=0o777 import getpass issue mkdir directory fixed username mode = 511
Payment Methods {π}
- Braintree
Questions {β}
- Already have an account?
Schema {πΊοΈ}
DiscussionForumPosting:
context:https://schema.org
headline:tmpdir creation fails when the username contains illegal characters for directory names
articleBody:`tmpdir`, `tmpdir_factory` and `tmp_path_factory` rely on `getpass.getuser()` for determining the `basetemp` directory. I found that the user name returned by `getpass.getuser()` may return characters that are not allowed for directory names. This may lead to errors while creating the temporary directory.
The situation in which I reproduced this issue was while being logged in through an ssh connection into my Windows 10 x64 Enterprise version (1909) using an OpenSSH_for_Windows_7.7p1 server. In this configuration the command `python -c "import getpass; print(getpass.getuser())"` returns my domain username e.g. `contoso\john_doe` instead of `john_doe` as when logged in regularly using a local session.
When trying to create a temp directory in pytest through e.g. `tmpdir_factory.mktemp('foobar')` this fails with the following error message:
```
self = WindowsPath('C:/Users/john_doe/AppData/Local/Temp/pytest-of-contoso/john_doe')
mode = 511, parents = False, exist_ok = True
def mkdir(self, mode=0o777, parents=False, exist_ok=False):
"""
Create a new directory at this given path.
"""
if self._closed:
self._raise_closed()
try:
> self._accessor.mkdir(self, mode)
E FileNotFoundError: [WinError 3] The system cannot find the path specified: 'C:\\Users\\john_doe\\AppData\\Local\\Temp\\pytest-of-contoso\\john_doe'
C:\Python38\lib\pathlib.py:1266: FileNotFoundError
```
I could also reproduce this without the complicated ssh/windows setup with pytest 6.2.2 using the following commands from a `cmd`:
```bat
echo def test_tmpdir(tmpdir):>test_tmp.py
echo pass>>test_tmp.py
set LOGNAME=contoso\john_doe
py.test test_tmp.py
```
Thanks for having a look at this!
author:
url:https://github.com/pborsutzki
type:Person
name:pborsutzki
datePublished:2021-02-04T15:17:13.000Z
interactionStatistic:
type:InteractionCounter
interactionType:https://schema.org/CommentAction
userInteractionCount:1
url:https://github.com/8317/pytest/issues/8317
context:https://schema.org
headline:tmpdir creation fails when the username contains illegal characters for directory names
articleBody:`tmpdir`, `tmpdir_factory` and `tmp_path_factory` rely on `getpass.getuser()` for determining the `basetemp` directory. I found that the user name returned by `getpass.getuser()` may return characters that are not allowed for directory names. This may lead to errors while creating the temporary directory.
The situation in which I reproduced this issue was while being logged in through an ssh connection into my Windows 10 x64 Enterprise version (1909) using an OpenSSH_for_Windows_7.7p1 server. In this configuration the command `python -c "import getpass; print(getpass.getuser())"` returns my domain username e.g. `contoso\john_doe` instead of `john_doe` as when logged in regularly using a local session.
When trying to create a temp directory in pytest through e.g. `tmpdir_factory.mktemp('foobar')` this fails with the following error message:
```
self = WindowsPath('C:/Users/john_doe/AppData/Local/Temp/pytest-of-contoso/john_doe')
mode = 511, parents = False, exist_ok = True
def mkdir(self, mode=0o777, parents=False, exist_ok=False):
"""
Create a new directory at this given path.
"""
if self._closed:
self._raise_closed()
try:
> self._accessor.mkdir(self, mode)
E FileNotFoundError: [WinError 3] The system cannot find the path specified: 'C:\\Users\\john_doe\\AppData\\Local\\Temp\\pytest-of-contoso\\john_doe'
C:\Python38\lib\pathlib.py:1266: FileNotFoundError
```
I could also reproduce this without the complicated ssh/windows setup with pytest 6.2.2 using the following commands from a `cmd`:
```bat
echo def test_tmpdir(tmpdir):>test_tmp.py
echo pass>>test_tmp.py
set LOGNAME=contoso\john_doe
py.test test_tmp.py
```
Thanks for having a look at this!
author:
url:https://github.com/pborsutzki
type:Person
name:pborsutzki
datePublished:2021-02-04T15:17:13.000Z
interactionStatistic:
type:InteractionCounter
interactionType:https://schema.org/CommentAction
userInteractionCount:1
url:https://github.com/8317/pytest/issues/8317
Person:
url:https://github.com/pborsutzki
name:pborsutzki
url:https://github.com/pborsutzki
name:pborsutzki
InteractionCounter:
interactionType:https://schema.org/CommentAction
userInteractionCount:1
interactionType:https://schema.org/CommentAction
userInteractionCount:1
External Links {π}(2)
Analytics and Tracking {π}
- Site Verification - Google
Libraries {π}
- Clipboard.js
- D3.js
- Lodash
Emails and Hosting {βοΈ}
Mail Servers:
- aspmx.l.google.com
- alt1.aspmx.l.google.com
- alt2.aspmx.l.google.com
- alt3.aspmx.l.google.com
- alt4.aspmx.l.google.com
Name Servers:
- dns1.p08.nsone.net
- dns2.p08.nsone.net
- dns3.p08.nsone.net
- dns4.p08.nsone.net
- ns-1283.awsdns-32.org
- ns-1707.awsdns-21.co.uk
- ns-421.awsdns-52.com
- ns-520.awsdns-01.net