Skip to content

Error generating URN-catalog when blank one exists #5188

Closed
@JamesonNetworks

Description

@JamesonNetworks

Preconditions

Install Magento from develop branch.

Steps to reproduce

  1. Install Magento from develop branch.
  2. Create a blank misc.xml file inside of the .idea folder (if using php storm)
  3. Run 'bin/magento dev:urn-catalog:generate --ide="phpstorm" ./.idea/misc.xml'

Expected result

  1. A new URN catalog for the project should get generated

Actual result

  1. User receives the error "Warning: DOMDocument::loadXML(): Empty string supplied as input in /Sites/magento2ce/app/code/Magento/Developer/Model/XmlCatalog/Format/PhpStorm.php on line 61"

I admit that it is an esoteric case, however, the routine generating the xml file is only creating a new fresh file in the instance that the file doesn't exist. If a blank file exists, it attempts to read the existing XML out of the file and throws the error. I had a problem where I created the .idea/misc.xml file but an exception was thrown during the creation process. The invalid misc.xml would generate this error until I removed the file entirely and ran the command again. Pretty low priority, but just thought I'd report it.

Metadata

Metadata

Assignees

Labels

Fixed in 2.2.xThe issue has been fixed in 2.2 release lineFixed in 2.3.xThe issue has been fixed in 2.3 release lineIssue: Clear DescriptionGate 2 Passed. Manual verification of the issue description passedIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedIssue: Format is validGate 1 Passed. Automatic verification of issue format passedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentReproduced on 2.1.xThe issue has been reproduced on latest 2.1 releaseReproduced on 2.2.xThe issue has been reproduced on latest 2.2 releaseReproduced on 2.3.xThe issue has been reproduced on latest 2.3 release

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions