Project

General

Profile

« Previous | Next » 

Revision 10413

Added by Jing Tao about 7 years ago

Change back to use URLDecoder to decode the code.

View differences:

src/edu/ucsb/nceas/metacat/restservice/D1ResourceHandler.java
54 54
import org.dataone.service.types.v1.Session;
55 55
import org.dataone.service.types.v1.Subject;
56 56
import org.dataone.service.types.v1.SubjectInfo;
57
import org.dataone.service.util.EncodingUtilities;
58 57

  
59 58
import edu.ucsb.nceas.metacat.AuthSession;
60 59
import edu.ucsb.nceas.metacat.MetacatHandler;
......
553 552
        if(s != null) {
554 553
            try
555 554
            {
556
                result = EncodingUtilities.decodeString(s);
555
                result = URLDecoder.decode(s, "UTF-8");
557 556
            }
558 557
            catch (UnsupportedEncodingException e)
559 558
            {
560
                s = s.replace("+", "%2B");
561 559
                result = URLDecoder.decode(s);
562 560
            }
563 561
            logMetacat.info("D1ResourceHandler.decode - the string after decoding is "+result);

Also available in: Unified diff