Project

General

Profile

« Previous | Next » 

Revision 2339

Added by sgarg over 19 years ago

Made changes to fix bug# 1538. Changed the code of the normalize function in MetaCatUtil.java. Earlier code was not taking care of characters above 123.

In DBSAXHandler.java, added call to normalize function before text is written to db.

View differences:

DBSAXHandler.java
427 427
        }
428 428
    }
429 429

  
430
    /* 
430
    /*
431 431
     * Run a separate thread to build the XML index for this document.  This
432 432
     * thread is run asynchronously in order to more quickly return control to
433 433
     * the submitting user.  The run method checks to see if the document has
......
445 445
        } catch (Exception e) {
446 446
            MetaCatUtil.debugMessage("Error in DBSAXHandler.run "
447 447
                    + e.getMessage(), 30);
448
        } 
448
        }
449 449
    }
450 450

  
451 451
    /*
......
496 496
                // make sure the while loop will be ended in reseaonable time
497 497
                long stopTime = System.currentTimeMillis();
498 498
                if ((stopTime - startTime) > INDEXDELAY) { throw new Exception(
499
                        "Couldn't find the docid for index build in"
499
                        "Couldn't find the docid for index build in "
500 500
                                + "reseaonable time!"); }
501 501
            }//while
502 502
        } catch (Exception e) {
......
862 862
                }
863 863

  
864 864
                // Write the content of the node to the database
865
                nodeId = node.writeChildNodeToDB("TEXT", null, data, docid);
865
                nodeId = node.writeChildNodeToDB("TEXT", null,
866
                                                 MetaCatUtil.normalize(data),
867
                                                 docid);
866 868
            }//while
867 869
        }//if
868 870
        return nodeId;

Also available in: Unified diff