Opened 9 years ago

Closed 9 years ago

#1026 closed defect (fixed)

WCST-Import need escape special characters in file name (not only space)

Reported by: Bang Pham Huu Owned by: Bang Pham Huu
Priority: minor Milestone:
Component: petascope Version: development
Keywords: Cc:
Complexity: Medium

Description

I've fixed ticket http://www.rasdaman.org/ticket/986 but today I've found out that this is not good enough if file name contains character like '( )' for example this file name 'ABC 4234 (copy).tif' is valid but the effect is:

it will just create a coverage in Petascope but empty (no value when query because it is empty)

 <limits>
          <GridEnvelope>
            <low>0 0</low>
            <high>0 0</high>
          </GridEnvelope>
        </limits>

and if the filename is valid it look like this

<limits>
          <GridEnvelope>
            <low>0 0</low>
            <high>599 719</high>
          </GridEnvelope>
        </limits>

I will fix this ticket

Change History (3)

comment:1 by Alex Dumitru, 9 years ago

This is due to the rasql functionality in rasdaman. See here http://rasdaman.org/browser/applications/petascope/src/main/java/petascope/util/ras/RasUtil.java#L526 - this should be fixed here, probably spaces need to be escpaed.

comment:2 by Bang Pham Huu, 9 years ago

yes, I could understand it run by rasql because if don't escape space, wcstimport return error with rasql command line. Thanks for showing where I need to fix (in fact, I've fixed in wcstimport but it should be fixed in the main point as you mentioned).

comment:3 by Bang Pham Huu, 9 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.