Opened 9 years ago

Closed 9 years ago

#1072 closed defect (invalid)

Coverage metadata is invalid should not show the Javascript code

Reported by: Bang Pham Huu Owned by: Alex Toader
Priority: major Milestone: 9.1.x
Component: petascope Version: development
Keywords: Cc: Alex Dumitru
Complexity: Medium

Description

Hi Alex Toader,

your new installation work good with WCS Client, however when I access a WCS service (rgb with error metadata)

http://localhost:8080/rasdaman/ows?service=WCS&version=2.0.1&request=GetCoverage&coverageId=rgb&rangesubset=red:green&format=image/png

it shows like this

<ows:ExceptionReport xmlns:ows="http://www.opengis.net/ows/2.0" xmlns:xsd="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink" version="2.0.0" xsd:schemaLocation="http://www.opengis.net/ows/2.0 http://schemas.opengis.net/ows/2.0/owsExceptionReport.xsd">
<script>
(function () { return window.__zm = { toggle: function(enabled) { return document.dispatchEvent(new CustomEvent('toggle', { detail: enabled })); }, setPageExcludes: function(list) { return document.dispatchEvent(new CustomEvent('setPageExcludes', { detail: list })); }, update: function() { return document.dispatchEvent(new CustomEvent('updateZM')); }, updateWithCredentials: function(creds) { return document.dispatchEvent(new CustomEvent('updateWithCredentials', { detail: creds })); }, getData: function(cb) { var ts; ts = Date.now(); document.dispatchEvent(new CustomEvent('request:getData', { detail: ts })); return document.addEventListener('response:getData', function(e) { if (e.detail.timestamp === ts && (cb != null)) { return cb({ user: e.detail.user, device: e.detail.device }); } }); } }; })();
</script>
<ows:Exception locator="rgb" exceptionCode="NoApplicableCode">
<ows:ExceptionText>Metadata for coverage 'rgb' is not valid.</ows:ExceptionText>
</ows:Exception>
</ows:ExceptionReport>

Please make sure no source code from Javascript appear in gml file as above.

Change History (3)

comment:1 by Alex Toader, 9 years ago

This is not related to the client. That is an error message returned by the server. Reassign this ticket to the owner of the WCS component.

comment:2 by Bang Pham Huu, 9 years ago

Cc: Alex Dumitru added

@Alex Toader: Ok, thanks for your time.
@Alex: please assign to someone who have been charged to this bug. Thanks.

comment:3 by Alex Dumitru, 9 years ago

Resolution: invalid
Status: newclosed

The javascript is injected into the page by one of your browser's extensions (ZenMate). Disable it and the script will disappear. Closing as not a rasdaman issue.

Note: See TracTickets for help on using tickets.