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

If not configured page returns empty #10

Open
LukePercy opened this issue Mar 26, 2017 · 1 comment
Open

If not configured page returns empty #10

LukePercy opened this issue Mar 26, 2017 · 1 comment

Comments

@LukePercy
Copy link

When configuring a CataloguePage or BrowsePage type and leaving the Catalogue Tab server URL and credentials empty, there is no handling or validation, so the page is able to be saved resulting in a blank and empty template.

Step to reproduce :-
(1) Do not configure Catalogue URL or credentials and save the page type
(2) Click on search the catalogue (enter "1" in the search box) or browser the catalogue search to return results.

==

[Notice] Trying to get property of non-objectLine.

39 and 40 in ../geocatalogue/code/commands/ParseXML2MCPCommand.php :-

$mdItem['metadataStandardName'] = $xpath->query('gmd:metadataStandardName/gco:CharacterString', $metadata)->item(0)->nodeValue;
$mdItem['metadataStandardVersion'] = $xpath->query('gmd:metadataStandardVersion/gco:CharacterString', $metadata)->item(0)->nodeValue;

@dhensby
Copy link
Contributor

dhensby commented Mar 30, 2017

Thanks for taking the time to post to our issue tracker.

This repository is in the SilverStripe Archive which means it's a module we no longer actively support.

We're looking more to the community to provide support for these modules if users want to continue to use them.

Would you be willing to spend the time submitting a patch for this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants