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

Error while executing ItemExists(string path='//BUG') #1358

Open
alan-null opened this issue Sep 19, 2024 · 1 comment
Open

Error while executing ItemExists(string path='//BUG') #1358

alan-null opened this issue Sep 19, 2024 · 1 comment
Assignees
Labels
area-platform 🐞 bug Oops! Sorry for the inconvenience.
Milestone

Comments

@alan-null
Copy link
Member

Expected Behavior

No exceptions in logs

Actual Behavior

SPE Logs:

112336 08:34:42 INFO  Arbitrary script execution in ISE by user: 'sitecore\Admin'
ManagedPoolThread #8 08:34:42 ERROR Error while executing ItemExists(string path='//BUG')
Exception: System.NullReferenceException
Message: Object reference not set to an instance of an object.
Source: Spe
   at Spe.Core.Provider.PsSitecoreItemProvider.GetItemForPath(String path)
   at Spe.Core.Provider.PsSitecoreItemProvider.ItemExists(String path)

Steps to Reproduce the Problem

  • open ISE
  • run Test-Path "//BUG"
  • see SPE logs
@alan-null alan-null added the 🐞 bug Oops! Sorry for the inconvenience. label Sep 19, 2024
@michaellwest
Copy link
Member

michaellwest commented Sep 19, 2024

These work as expected:

Test-Path -Path "//bug"
Get-Item -Path "master://bug"
Get-ChildItem -Path "//bug"

This threw an error:

Get-Item -Path "//bug"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-platform 🐞 bug Oops! Sorry for the inconvenience.
Projects
None yet
Development

No branches or pull requests

2 participants