Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Undefined array key 0 on missing DN #250

Closed
williamdes opened this issue Dec 8, 2023 · 2 comments
Closed

Undefined array key 0 on missing DN #250

williamdes opened this issue Dec 8, 2023 · 2 comments
Labels
old Old version of PLA, may not be fixed.

Comments

@williamdes
Copy link

Describe the bug

Error
E_WARNING: Undefined array key 0
PHP Debug Backtrace
File	/var/www/phpldapadmin/lib/functions.php (192)
 	Function	error ([a:5:{i:0;s:32:"E_WARNING: Undefined array key 0";i...](http://xxxxxx/tools/unserialize.php?index=0))
File	/var/www/phpldapadmin/lib/import_functions.php (184)
 	Function	app_error_handler ([a:4:{i:0;i:2;i:1;s:21:"Undefined array key 0";i:2;...](http://xxxxxx/tools/unserialize.php?index=1))
File	/var/www/phpldapadmin/htdocs/import.php (54)
 	Function	readEntry ([a:0:{}](http://xxxxx/tools/unserialize.php?index=2))
File	/var/www/phpldapadmin/htdocs/cmd.php (59)
 	Function	include ([a:1:{i:0;s:39:"/var/www/phpldapadmin/htdocs/import...](http://xxxxxx/tools/unserialize.php?index=3))

To Reproduce

Import

version: 1
dn: dc=network

Expected behavior
Show the error that exists in the code: A valid dn line is required

Additional context

phpLDAPadmin: 1.2.6.6

@leenooks
Copy link
Owner

leenooks commented Jan 7, 2024

Unable to reproduce the issue.

@leenooks leenooks closed this as not planned Won't fix, can't repro, duplicate, stale Jan 7, 2024
@leenooks
Copy link
Owner

leenooks commented Jan 8, 2024

OK, I was able to produce this. Looks like PLA is expecting a line between version and dn:.

@leenooks leenooks reopened this Jan 8, 2024
@leenooks leenooks added the old Old version of PLA, may not be fixed. label Jan 8, 2024
leenooks added a commit that referenced this issue Jan 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
old Old version of PLA, may not be fixed.
Projects
None yet
Development

No branches or pull requests

2 participants