1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 3785 3786 3787 3788 3789 3790 3791 3792 3793 3794 3795 3796 3797 3798 3799 3800 3801 3802 3803 3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826 3827 3828 3829 3830 3831 3832 3833 3834 3835 3836 3837 3838 3839 3840 3841 3842 3843 3844 3845 3846 3847 3848 3849 3850 3851 3852 3853 3854 3855 3856 3857 3858 3859 3860 3861 3862 3863 3864 3865 3866 3867 3868 3869 3870 3871 3872 3873 3874 3875 3876 3877 3878 3879 3880 3881 3882 3883 3884 3885 3886 3887 3888 3889 3890 3891 3892 3893 3894 3895 3896 3897 3898 3899 3900 3901 3902 3903 3904 3905 3906 3907 3908 3909 3910 3911 3912 3913 3914 3915 3916 3917 3918 3919 3920 3921 3922 3923 3924 3925 3926 3927 3928 3929 3930 3931 3932 3933 3934 3935 3936 3937 3938 3939 3940 3941 3942 3943 3944 3945 3946 3947 3948 3949 3950 3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 3983 3984 3985 3986 3987 3988 3989 3990 3991 3992 3993 3994 3995 3996 3997 3998 3999 4000 4001 4002 4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 4013 4014 4015 4016 4017 4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111 4112 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 4319 4320 4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336 4337 4338 4339 4340 4341 4342 4343 4344 4345 4346 4347 4348 4349 4350 4351 4352 4353 4354 4355 4356 4357 4358 4359 4360 4361 4362 4363 4364 4365 4366 4367 4368 4369 4370 4371 4372 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382 4383 4384 4385 4386 4387 4388 4389 4390 4391 4392 4393 4394 4395 4396 4397 4398 4399 4400 4401 4402 4403 4404 4405 4406 4407 4408 4409 4410 4411 4412 4413 4414 4415 4416 4417 4418 4419 4420 4421 4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436 4437 4438 4439 4440 4441 4442 4443 4444 4445 4446 4447 4448 4449 4450 4451 4452 4453 4454 4455 4456 4457 4458 4459 4460 4461 4462 4463 4464 4465 4466 4467 4468 4469 4470 4471 4472 4473 4474 4475 4476 4477 4478 4479 4480 4481 4482 4483 4484 4485 4486 4487 4488 4489 4490 4491 4492 4493 4494 4495 4496 4497 4498 4499 4500 4501 4502 4503 4504 4505 4506 4507 4508 4509 4510 4511 4512 4513 4514 4515 4516 4517 4518 4519 4520 4521 4522 4523 4524 4525 4526 4527 4528 4529 4530 4531 4532 4533 4534 4535 4536 4537 4538 4539 4540 4541 4542 4543 4544 4545 4546 4547 4548 4549 4550 4551 4552 4553 4554 4555 4556 4557 4558 4559 4560 4561 4562 4563 4564 4565 4566 4567 4568 4569 4570 4571 4572 4573 4574 4575 4576 4577 4578 4579 4580 4581 4582 4583 4584 4585 4586 4587 4588 4589 4590 4591 4592 4593 4594 4595 4596 4597 4598 4599 4600 4601 4602 4603 4604 4605 4606 4607 4608 4609 4610 4611 4612 4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 4626 4627 4628 4629 4630 4631 4632 4633 4634 4635 4636 4637 4638 4639 4640 4641 4642 4643 4644 4645 4646 4647 4648 4649 4650 4651 4652 4653 4654 4655 4656 4657 4658 4659 4660 4661 4662 4663 4664 4665 4666 4667 4668 4669 4670 4671 4672 4673 4674 4675 4676 4677 4678 4679 4680 4681 4682 4683 4684 4685 4686 4687 4688 4689 4690 4691 4692 4693 4694 4695 4696 4697 4698 4699 4700 4701 4702 4703 4704 4705 4706 4707 4708 4709 4710 4711 4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722 4723 4724 4725 4726 4727 4728 4729 4730 4731 4732 4733 4734 4735 4736 4737 4738 4739 4740 4741 4742 4743 4744 4745 4746 4747 4748 4749 4750 4751 4752 4753 4754 4755 4756 4757 4758 4759 4760 4761 4762 4763 4764 4765 4766 4767 4768 4769 4770 4771 4772 4773 4774 4775 4776 4777 4778 4779 4780 4781 4782 4783 4784 4785 4786 4787 4788 4789 4790 4791 4792 4793 4794 4795 4796 4797 4798 4799 4800 4801 4802 4803 4804 4805 4806 4807 4808 4809 4810 4811 4812 4813 4814 4815 4816 4817 4818 4819 4820 4821 4822 4823 4824 4825 4826 4827 4828 4829 4830 4831 4832 4833 4834 4835 4836 4837 4838 4839 4840 4841 4842 4843 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853 4854 4855 4856 4857 4858 4859 4860 4861 4862 4863 4864 4865 4866 4867 4868 4869 4870 4871 4872 4873 4874 4875 4876 4877 4878 4879 4880 4881 4882 4883 4884 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896 4897 4898 4899 4900 4901 4902 4903 4904 4905 4906 4907 4908 4909 4910 4911 4912 4913 4914 4915 4916 4917 4918 4919 4920 4921 4922 4923 4924 4925 4926 4927 4928 4929 4930 4931 4932 4933 4934 4935 4936 4937 4938 4939 4940 4941 4942 4943 4944 4945 4946 4947 4948 4949 4950 4951 4952 4953 4954 4955 4956 4957 4958 4959 4960 4961 4962 4963 4964 4965 4966 4967 4968 4969 4970 4971 4972 4973 4974 4975 4976 4977 4978 4979 4980 4981 4982 4983 4984 4985 4986 4987 4988 4989 4990 4991 4992 4993 4994 4995 4996 4997 4998 4999 5000 5001 5002 5003 5004 5005 5006 5007 5008 5009 5010 5011 5012 5013 5014 5015 5016 5017 5018 5019 5020 5021 5022 5023 5024 5025 5026 5027 5028 5029 5030 5031 5032 5033 5034 5035 5036 5037 5038 5039 5040 5041 5042 5043 5044 5045 5046 5047 5048 5049 5050 5051 5052 5053 5054 5055 5056 5057 5058 5059 5060 5061 5062 5063 5064 5065 5066 5067 5068 5069 5070 5071 5072 5073 5074 5075 5076 5077 5078 5079 5080 5081 5082 5083 5084 5085 5086 5087 5088 5089 5090 5091 5092 5093 5094 5095 5096 5097 5098 5099 5100 5101 5102 5103 5104 5105 5106 5107 5108 5109 5110 5111 5112 5113 5114 5115 5116 5117 5118 5119 5120 5121 5122 5123 5124 5125 5126 5127 5128 5129 5130 5131 5132 5133 5134 5135 5136 5137 5138 5139 5140 5141 5142 5143 5144 5145 5146 5147 5148 5149 5150 5151 5152 5153 5154 5155 5156 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 5195 5196 5197 5198 5199 5200 5201 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 5347 5348 5349 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 5422 5423 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438 5439 5440 5441 5442 5443 5444 5445 5446 5447 5448 5449 5450 5451 5452 5453 5454 5455 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469 5470 5471 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483 5484 5485 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537 5538 5539 5540 5541 5542 5543 5544 5545 5546 5547 5548 5549 5550 5551 5552 5553 5554 5555 5556 5557 5558 5559 5560 5561 5562 5563 5564 5565 5566 5567 5568 5569 5570 5571 5572 5573 5574 5575 5576 5577 5578 5579 5580 5581 5582 5583 5584 5585 5586 5587 5588 5589 5590 5591 5592 5593 5594 5595 5596 5597 5598 5599 5600 5601 5602 5603 5604 5605 5606 5607 5608 5609 5610 5611 5612 5613 5614 5615 5616 5617 5618 5619 5620 5621 5622 5623 5624 5625 5626 5627 5628 5629 5630 5631 5632 5633 5634 5635 5636 5637 5638 5639 5640 5641 5642 5643 5644 5645 5646 5647 5648 5649 5650 5651 5652 5653 5654 5655 5656 5657 5658 5659 5660 5661 5662 5663 5664 5665 5666 5667 5668 5669 5670 5671 5672 5673 5674 5675 5676 5677 5678 5679 5680 5681 5682 5683 5684 5685 5686 5687 5688 5689 5690 5691 5692 5693 5694 5695 5696 5697 5698 5699 5700 5701 5702 5703 5704 5705 5706 5707 5708 5709 5710 5711 5712 5713 5714 5715 5716 5717 5718 5719 5720 5721 5722 5723 5724 5725 5726 5727 5728 5729 5730 5731 5732 5733 5734 5735 5736 5737 5738 5739 5740 5741 5742 5743 5744 5745 5746 5747 5748 5749 5750 5751 5752 5753 5754 5755 5756 5757 5758 5759 5760 5761 5762 5763 5764 5765 5766 5767 5768 5769 5770 5771 5772 5773 5774 5775 5776 5777 5778 5779 5780 5781 5782 5783 5784 5785 5786 5787 5788 5789 5790 5791 5792 5793 5794 5795 5796 5797 5798 5799 5800 5801 5802 5803 5804 5805 5806 5807 5808 5809 5810 5811 5812 5813 5814 5815 5816 5817 5818 5819 5820 5821 5822 5823 5824 5825
|
2022-06-21 Massimo Manghi <mxmanghi@apache.org>
* Changelog: release as Rivet 3.2.2.
2022-06-10 Massimo Manghi <mxmanghi@apache.org>
* doc/xml/directives.xml: moved misplaced text in table
* configure.ac: Changed default for HonorHeadRequests to 'yes'
* src/mod_rivet_ng/mod_rivet_generator.c: rephrased comment documenting
the exit handler behavior
2022-05-31 Massimo Manghi <mxmanghi@apache.org>
* src/mod_rivet_ng/*.c: Directive HonorHeaderOnlyReqs renamed as
HonorHeadRequests, which sounds more consistent with the common parlance
regarding HTTP
2022-03-01 Massimo Manghi <mxmanghi@apache.org>
* tests/getall.rvt: add new test for the 2 forms of [::rivet::var_qs all]
2022-02-19 Massimo Manghi <mxmanghi@apache.org>
* tclconfig/tcl.m4: patched tcl.m4 distributed by core.tcl.tk as it doesn't work
with Makefile.am files in nested directories. Patch submitted upstream
* tclconfig/: commit several autoconf generated scripts
* m4/: add new files automatically copied by autoconf
2022-02-18 Massimo Manghi <mxmanghi@apache.org>
* src/TclWeb.h: Add copyright notice, remove SVN id keyword
* rivet/rivet-tcl/xml.tcl: correct wrong comment showing command xml arguments
* src/mod_rivet_ng/rivet_lazy_mpm.c: adopting boolean values defined in bool.h
* src/mod_rivet_ng/mod_rivet.[c|h]: expand comments, fix typo
* rivet/packages/form/form22.tcl: Using ::rivet::xml instead of the class method argstring
2022-02-14 Massimo Manghi <mxmanghi@apache.org>
* src/mod_rivet_ng/rivetCore.c: New feature of the '::rivet::var all' commands.
An extra optional argument is interpreted as a dictionary of default values
* tclconfig/tcl.m4,tclconfig/install-sh: install latest version from Tclconfig repository
* doc/xml/commands.xml: update page manual for ::rivet::var
2022-02-13 Massimo Manghi <mxmanghi@apache.org>
* VERSION: bumping new version number to 3.2.2
* src/mod_rivet_ng/rivetCore.c: fixed possible memory leak in Rivet_Var. A Tcl_Obj
was created to return empty strings replacing an already existing Tcl_Obj losing
track of it.
* tclconfig/tcl.m4,tclconfig/install-sh: install latest version from Tclconfig repository
2022-01-06 Massimo Manghi <mxmanghi@apache.org>
* configure.ac: changing obsolete macro AC_PROG_LIBTOOL into LT_INIT
2021-11-13 Massimo Manghi <mxmanghi@apache.org>
* Changelog: release as Rivet 3.2.1
2021-11-06 Massimo Manghi <mxmanghi@apache.org>
* configure.ac: remove duplicated call of macro AM_AUTOMAKE_INIT. Add macro AC_CONFIG_SRCDIR
* rivet/packages/form*.tcl: Update copyright lines, removed old svn symbols
* doc/xml/form.xml: documenting new switch -emit
2021-11-05 Massimo Manghi <mxmanghi@apache.org>
* doc/xml/lazybridge.xml: update examples with latest modifications done to the lazy bridge
2021-11-04 Massimo Manghi <mxmanghi@apache.org>
* doc/xml/installation.xml: documenting new configure switch --enable-rivet-debug-build
2021-11-03 Massimo Manghi <mxmanghi@apache.org>
* src/mod_rivet_ng/TclWebapache.c: removed unnecessary call to TclWeb_InitEnvVars
when loading input headers
* tests/env.test: cleaning up http tokens resources
2021-11-01 Massimo Manghi <mxmanghi@apache.org>
* src/mod_rivet_ng/TclWebapache.c: expanded comments to newly introduced functions
2021-10-25 Massimo Manghi <mxmanghi@apache.org>
* src/mod_rivet_ng/TclWebapache.c: extended comments
* src/rivet.h: new macro MINSTRLEN
2021-10-20 Massimo Manghi <mxmanghi@apache.org>
* src/mod_rivet_ng/Tclwebapache.c: new environment variable handling.
Command ::rivet::env doesn't necessarily trigger the whole enviroment load
into request_rec, it tries to resolve a variable incrementally. Need
to recommend the usage of ::rivet::env instead of ::rivet::load_env
* tests/env.rvt: adding new tests to environment variable resolution
2021-09-06 Massimo Manghi <mxmanghi@apache.org>
* rivet/packages/session/session-create-*.sql: making cache fields larger
2021-07-30 Massimo Manghi <mxmanghi@apache.org>
* src/mod_rivet_ng/TclWebapache.c: integrating the current scant Tcl error info
returned by the various ::rivet::upload subcommands
* rivet/packages/dio/: Removing references to subversion's tags
2021-04-13 Massimo Manghi <mxmanghi@apache.org>
* src/mod_rivet_ng/rivetInspect.c: add server current loglevel. Removed
unneeded ref count management in the server array construction
2021-03-07 Massimo Manghi <mxmanghi@apache.org>
* VERSION: bumped version as 3.2.1
* src/mod_rivet_ng/mod_rivet.c: more linear determination of the bridge name
* rivet/packages/formbroker.tcl: introduced key maxlength
2020-11-19 Massimo Manghi <mxmanghi@apache.org>
* rivet/packages/dio/dio.tcl,dio_Mysql.tcl: adding support for
connector specific client arguments
* rivet/packages/form/form22.tcl: New form 2.2 package can be
configured to return HTML code instead of printing it to stdout
2020-11-02 Massimo Manghi <mxmanghi@apache.org>
* doc/xml/directives.xml: SingleThreadExit entry re-elaborated
* tests/runtest.tcl: Document new command line options
* README: Removed obsolete warning about scgi scripts
2020-10-04 Massimo Manghi <mxmanghi@apache.org>
* src/mod_rivet_ng/mod_rivet.c: forcing variable assignment in condition
2020-10-03 Massimo Manghi <mxmanghi@apache.org>
* src/mod_rivet_ng/mod_rivet.c: Documenting the Rivet_SeekMPMBridge function
2020-10-01 Massimo Manghi <mxmanghi@apache.org>
* src/mod_rivet_ng/rivet_prefork_mpm.c: Fixed trivial bug in checking the
rivet cache size
* configure.ac: add macro to define preprocessor symbol RIVET_DEBUG_CODE
2020-09-29 Massimo Manghi <mxmanghi@apache.org>
* src/mod_rivet_ng/mod_rivet.[c|h]:
* src/mod_rivet_ng/rivet_[prefork|worker|lazy]_mpm.c:
* src/mod_rivet_ng/worker_prefork_common.c:
* src/mod_rivet_ng/mod_rivet_commit.c:
* src/mod_rivet_ng/apache_config.[c|h]: moving also rivet_server_init
out of the server configuration and into the module_globals
2020-09-28 Massimo Manghi <mxmanghi@apache.org>
* src/mod_rivet_ng/mod_rivet.[c|h]:
* src/mod_rivet_ng/rivet_[prefork|worker|lazy]_mpm.c:
* src/mod_rivet_ng/worker_prefork_common.c:
* src/mod_rivet_ng/mod_rivet_commit.c:
* src/mod_rivet_ng/apache_config.[c|h]: moving real global setting out
of the server configuration record into the module_globals structure,
because they're global in the first place
* doc/xml/directives.xml: extended revision of the directive scope documentation
2020-09-27 Massimo Manghi <mxmanghi@apache.org>
* rivet/packages/formbroker/formbroker.tcl: add method form_exists to check for registration
of a form
* test/apachetest/apachetest.tcl,test/runtests.tcl: add support for testing with various MPMs and bridges
2020-02-03 Massimo Manghi <mxmanghi@apache.org>
* src/request/: Update obsolete copyright statements
* src/mod_rivet_ng/rivetCore.c: update comments to upload command
* tests: changed upload file test
2020-04-02 Massimo Manghi <mxmanghi@apache.org>
* doc/xml/formbroker.xml: fixed examples
* src/mod_rivet_ng/rivet_lazy_mpm.c: resolved access to shared counter
that was causing segfaults when child process was terminated
2020-01-19 Massimo Manghi <mxmanghi@apache.org>
* doc/xml/commands.xml: remove entry for command incr0 (dropped in 3.0)
2019-12-30 Massimo Manghi <mxmanghi@apache.org>
* src/mod_rivet_ng/rivetCore.c: fixed bug in 'upload filename' that
caused segfaults instead of Tcl errors when called without arguments
* src/request/: Adding latest Copyright statements to files in this
directory
* tests/upload.rvt,upload.test: revised upload tests (need expansion
to test multiple uploads)
2019-12-12 Massimo Manghi <mxmanghi@apache.org>
* src/mod_rivet_ng/apache_config.c: copying also upload_files_to_var in
Rivet_MergeConfig
2019-12-06 Massimo Manghi <mxmanghi@apache.org>
* src/mod_rivet_ng/rivetCore.c: expanded error info data in Rivet_Upload
* doc/rivet.css: new color scheme for docbook manual
2019-12-04 Massimo Manghi <mxmanghi@apache.org>
* src/mod_rivet_ng/rivetCore.c: new branch uploadcmdfix with improved
argument checking in Rivet_Upload that was the cause of random crashes
2019-11-29 Brice Hamon <bhdec@apache.org>
* src/mod_rivet_ng/mod_rivet_cache.h: added RivetCache_DeleteEntry
* src/mod_rivet_ng/mod_rivet_cache.c:
* src/mod_rivet_ng/rivetCore.c: fixed crash when rvt file not readable
2019-10-13 Massimo Manghi <mxmanghi@apache.org>
* doc/xml/directives.xml: configuration directives table expanded
* doc/examples/
2019-09-30 Massimo Manghi <mxmanghi@apache.org>
* src/mod_rivet_ng/rivetCore.c: revised argument checking
2019-09-29 Massimo Manghi <mxmanghi@apache.org>
* doc/xml/commands.xml: Completed manual page for command ::rivet::thread_id
* src/mod_rivet_ng/rivetCore.c: Rivet_GetThreadId rewritten. Now the
command accepts an optional argument to select decimal or hexadecimal (default)
output
2019-08-05 Massimo Manghi <mxmanghi@apache.org>
* doc/xml/directives.xml: Documenting SingleThreadExit directive
2019-07-27 Massimo Manghi <mxmanghi@apache.org>
* doc/xml/commands.xml,src/mod_rivet_ng/rivetCore.c: Add ::rivet::thread_id
manual page
2019-06-25 Massimo Manghi <mxmanghi@apache.org>
* : Single thread exit implementation for mod_rivet 3.2
* src/mod_rivet_ng/rivet_[.*]_mpm.c: further simplified code by removing
redundant flags. Changing function names scheme
2019-05-24 Massimo Manghi <mxmanghi@apache.org>
* src/mod_rivet_ng/rivetCore.c: Add Tcl_DecrRefCnt after
RivetCache_StoreScript as this function itself calls
Tcl_IncrRefCnt to preserve the Tcl_Obj with the script code
2019-04-13 Massimo Manghi <mxmanghi@apache.org>
* doc/xml/commands.xml: Correct wrong header in ::rivet::http_accept code example
2019-04-12 Massimo Manghi <mxmanghi@apache.org>
* INSTALL: wrong references corrected
2019-02-19 Massimo Manghi <mxmanghi@apache.org>
* .appveyor.yml: merging from master in order to have new tags generate
artifacts
2019-02-16 Georgios Petasis <petasisg@apache.org>
* .appveyor.yml: Added support for creating a zip with the installed rivet
files (both module and library), and create an artifact. If a tag is added
(in all branches), the zip will be added to the release.
2019-01-21 Massimo Manghi <mxmanghi@apache.org>
* src/rivet.h: Add error message buffer size definition (was still hardcoded
here and there)
* src/mod_rivet_ng/rivetCore.c,rivet_worker_mpm.c: hardcoded buffer size
into their correct macro definitions
2019-01-14 Massimo Manghi <mxmanghi@apache.org>
* src/mod_rivet_ng/rivetCore.c: add experimental ::rivet::thread_id
command
2019-01-05 Massimo Manghi <mxmanghi@apache.org>
* doc/: merging from 3.1 fixes to various broken docbook elements
and new entities to external resources' URLs
2018-12-24 Georgios Petasis <petasisg@apache.org>
* README.md: Added badges also for the GitHub fork at:
https://github.com/petasis/tcl-rivet.
* .appveyor.yml: Enhancements to not rely on hard-coded paths.
2018-12-23 Massimo Manghi <mxmanghi@apache.org>
* cmake/CMakeLists.txt: starting with rivet 3 we need Tcl > 8.6.1
2018-12-20 Georgios Petasis <petasisg@apache.org>
* cmake/CMakeLists.txt: Set policy behaviour of CMP0074, only if policy is
defined (i.e. cmake version >= 3.12).
2018-12-19 Georgios Petasis <petasisg@apache.org>
* cmake/CMakeLists.txt: Added support for regenerating pkgIndex.tcl in the
installation directory of rivetlib, after files have been installed.
This executes "tclsh".
2018-12-17 Georgios Petasis <petasisg@apache.org>
* Readme.md: Added a separate badge for winbuild branch.
2018-12-17 Massimo Manghi <mxmanghi@apache.org>
* src/request/apache_request.c,src/request/apache_multipart_buffer.[c|h]:
explicit cast to int wherever needed by calls to Tcl_* functions and
changed int to size_t wherever required
* src/mod_rivet_ng/rivet_types.h,rivetCore.c: field 'size' in structure
typed as size_t
* src/mod_rivet_ng/TclWebapache.c: argument to Tcl_ReadChars explicitly
cast to int
2018-12-16 Georgios Petasis <petasisg@apache.org>
* Readme.md: Added a Markdown README file, which shows the build status
from Appveyor, for Windows.
* .appveyor.yml: Started a build configuration for Appveyor:
https://ci.appveyor.com/project/petasis/tcl-rivet
* cmake/CMakeLists.txt: Set policy CMP0074 to new behaviour. Rivet version
is read from file VERSION.
* cmake/README.cmake: Some changes in directories used.
* src/mod_rivet_ng/mod_rivet.h: Removed statement "APLOG_USE_MODULE(rivet);"
from the module header file.
2018-12-07 Massimo Manghi <mxmanghi@apache.org>
* rivet/pkgIndex.tcl: completed with actual list of packages
2018-12-04 Massimo Manghi <mxmanghi@apache.org>
* configure.ac: now infer the version number from VERSION.
* doc/rivet.xml,doc/xml/examples.xml: modified example "color table"
2018-12-03 Massimo Manghi <mxmanghi@apache.org>
* cmake/CMakeList.c: we infer the version number from the file
VERSION assumed to reside in the project root directory
* src/parser/rivetParser.c:
* src/mod_rivet_ng/mod_rivet_common.c: type cast of pointer
arithmetics into int
2018-11-23 Massimo Manghi <mxmanghi@apache.org>
* VERSION,configure,ac: version number bumped to 3.2.0 as we created
3.1 out of branch 3.0 in order to highlight possible regressions that
may surface as a consequence of fixing bug #62926
2018-11-20 Massimo Manghi <mxmanghi@apache.org>
* src/mod_rivet_ng/rivetCore.c: patching from 3.0 to fix bug #62926
* tests/post.rvt,fqrivet_var.tcl: add tests to prevent post and get
variables crosstalk (bug #92926)
* doc/rivet.xml.in: displaying full version associated to the manual
2018-11-11 Massimo Manghi <mxmanghi@apache.org>
* configure.ac: correct macro description
* src/mod_rivet_ng/rivetChannel.c: new copyright notice
* doc/xml/commands.xml: correct sentence in ::rivet::exit manual page
2018-11-02 Massimo Manghi <mxmanghi@apache.org>
* src/mod_rivet_ng/mod_rivet.[c|h]: add macro RIVET_MPM_BRIDGE to
compose rivet bridge names
2018-10-17 Massimo Manghi <mxmanghi@apache.org>
* tests/commands.tcl: changing test on self closing element
* [doc/rivet.xml.in|doc/rivet.xml]: removed delimiters of
symbols expanded by svn
* doc/xml/commands.xml: fixed entities in ::rivet::xml manual page
2018-08-16 Massimo Manghi <mxmanghi@apache.org>
* rivet/rivet-tcl/xml.tcl: changing form to support single self
closing XML elements such as <tag attr1="val1" attr2="val2".... />
when if the text string is empty
* tests/commands.tcl: changing ::rivet::xml test accordingly
* doc/xml/commands.xml: documenting new ::rivet::xml feature
2018-08-07 Massimo Manghi <mxmanghi@apache.org>
* VERSION,configure.ac: first commit after svn to git migration.
The trunk branch is now the master branch of the git repository.
setting the master branch version as 3.1.0.
* .gitignore: untracking Makefile.in and putting in .gitignore
autools generated files
* doc/rivet.xml.in: removing references to now unsupported
svn keywords substitutions
2018-06-25 Massimo Manghi <mxmanghi@apache.org>
* rivet/init.tcl.in: the error handler of error scripts requires
::Rivet::script to keep the actual 'script' being run
(reintegrated into trunk from branches/3.0)
2018-06-18 Massimo Manghi <mxmanghi@apache.org>
* rivet/packages/dio/*.tcl: fully qualifying calls to ::rivet::lempty
2018-06-14 Massimo Manghi <mxmanghi@apache.org>
* rivet/init.tcl: fixed bug in error scripts' error handling (the
case of handling an error that occurs in the default error script may
need the introduction of a new test
2018-04-09 Massimo Manghi <mxmanghi@apache.org>
* src/mod_rivet_ng/mod_rivet.h: changing argument list of function
*mpm_thread_interp in the bridge interface. It must work
as an accessor to the interpreter database when both getting
and storing an interpreter pointer
2018-02-28 Massimo Manghi <mxmanghi@apache.org>
* Makefile.am: default_request_handler.tcl and init.tcl can be
installed without the exec bit set
2018-02-17 Massimo Manghi <mxmanghi@apache.org>
* NOTICE: update copyright statement
* src/mod_rivet_ng/worker_prefork_common.c: Rivet_CleanupProcessor
to call RivetCache_Cleanup
* doc/rivet.xml: new version in docs
2018-02-08 Massimo Manghi <mxmanghi@apache.org>
* VERSION,configure.ac: bumping version to 3.0.2
2018-02-08 Ronnie Brunner <ronnie@apache.org>
* doc/apachetest.tcl: make independent from TclX adding
our own 'kill' procedure. Changing signal to stop the
http webserver as KILL
* doc/runtests.tcl: removing depend on the prefork module
2018-02-03 Massimo Manghi <mxmanghi@apache.org>
* src/librivet/rivetPkgInit.c: changing way we determine the
namespace pointer in order to avoid the necessity of gaining
access to the module globals and therefore avoid including
mod_rivet.h. The macro APLOG_USE_MODULE introduced in
mod_rivet.h makes the library load fail outside
mod_rivet and Apache
* rivet/pkgIndex.tcl: recreated from scratch
2018-01-23 Massimo Manghi <mxmanghi@apache.org>
* VERSION,configure.ac: bumping version number to 3.0.1
* doc/rivet.xml.in,doc/xml/request.xml: wrong links and information
about MPM support fixed
* src/mod_rivet_ng/mod_rivet.h: add APLOG_USE_MODULE
macro
* src/mod_rivet/ng/rivet_worker_mpm.c: number
of threads waited on exit by the supervisor was wrong
and it's now the acutal number of threads available,
variable uninitalized in loop fixed
2018-01-23 Massimo Manghi <mxmanghi@apache.org>
* doc/xml/lazybridge.xml: more improvements and
inclusion of new comments to the code
* doc/xml/commands.xml: rather cosmetic improvment
to the page of ::rivet::try
* src/mod_rivet_ng/rivet_lazy_mpm.c: more comments
2018-01-19 Massimo Manghi <mxmanghi@apache.org>
* doc/xml/installation.xml: various broken links fixed
* doc/xml/internals.xml: expanding some explanations and changing
links to the Apache server from version 2.2 to 2.4
* doc/xml/lazybridge.xml: expanding code explanations
* src/mod_rivet_ng/rivet_lazy_mpm.c: commenting code in
various functions
2018-01-17 Massimo Manghi <mxmanghi@apache.org>
* : Released as 3.0.0
2018-01-09 Massimo Manghi <mxmanghi@apache.org>
* tests/virtualhost.test,tests/channel.test: changed
virtual hosts declarations. Now accepting '*' as host
name prevents test from failing with certain set ups (a
DNS related problem)
* doc/xml/intro.xml: add ackowledgements to George
* win/: old Windows scripts removed
* src/mod_rivet: old mod_rivet code removed
2018-01-01 Massimo Manghi <mxmanghi@apache.org>
* doc/xml/: more error checking and several improvements to
the manual
2017-12-29 Massimo Manghi <mxmanghi@apache.org>
* doc/rivet.xml.in: more entities to extend documentation
* doc/xml/intro.xml: introduction revised and extended
* doc/xml-2: files used to generate the manual removed or
moved into doc/xml
* doc/rivet.css: changed color palette
2017-12-22 Massimo Manghi <mxmanghi@apache.org>
* doc/: more changes to manual pages
2017-11-29 Massimo Manghi <mxanghi@apache.org>
* NOTICE, README: expanded and obsolete information amended
2017-10-31 Massimo Manghi <mxmanghi@apache.org>
* merging branch cmake back into trunk
* tests/broken.test: the error message form has changed with
the Tcl based new request handling procedure
2017-10-28 Massimo Manghi <mxmanghi@apache.org>
* docs/xml/cmake.xml: draft manual page for cmake build system
2017-10-22 Massimo Manghi <mxmanghi@apache.org>
* rivet/init.tcl.in: Following Jeff Lawson's suggestion we check
if init.tcl is loaded from within mod_rivet. If we're not running
from it we don't divert the [exit] command
* src/librivet/rivetPkgInit.c: removing code kept in the file
that had been commented because not needed.
2017-10-18 Massimo Manghi <mxmanghi@apache.org>
* doc/: add new cmake.xml file, further manual developments
2017-10-12 Massimo Manghi <mxmanghi@apache.org>
* src/mod_rivet_ng/mod_rivet.c: add preprocessor test on
variable declaration for the WIN32 build
* src/librivet/rivetWWW.c: fixed subtle buffer overflow
mistakenly assuming snprintf printed a byte less than
* doc/xml/processing.xml,command.xml: further elaboration of the
Rivet 3.0 manual. Update ::rivet::redirect manual entry
* tcl/rivet-tcl/redirect.tcl: now handling generic boolean arguments
or any integer > 0 (as for the HTTP status codes)
2017-09-17 Massimo Manghi <mxmanghi@apache.org>
* doc/xml/examples.xml: moved into final directory
2017-09-15 Massimo Manghi <mxmanghi@apache.org>
* rivet/packages/dio/dio.tcl: new version 1.1 of class Database
new method mkdir for class Result
* docs/Makefile.am: removed automatic manual creation upon installation
2017-09-03 Massimo Manghi <mxmanghi@apache.org>
* rivet/packages/dio/dio_Mysql.c: unqualified string command conflicted
with Database class same method
2017-08-18 Massimo Manghi <mxmanghi@apache.org>
* rivet/packages/dio/dio.tcl: method build_where_clause treated
single value key differently, but this failed to remove braces
for the representation of a single element list containing space
characters. The method has been changed the have an uniform
way to handle this
2017-08-12 Massimo Manghi <mxmanghi@apache.org>
* src/mod_rivet_ng/mod_rivet.c: moving to
Rivet_RunServerInit the call to the bridge specific
server initialization script. Confining compilation
of the code checking AP_PARENT_PID to Windows
systems
2017-08-10 Georgios Petasis <petasis@apache.org>
* cmake/CMakeLists.txt: Modified also variable CMAKE_PREFIX_PATH, as
TCL_ROOT and TclStub_ROOT are specific to CMake 3.9.0, and will be
removed. See https://gitlab.kitware.com/cmake/cmake/issues/17158.
2017-08-11 Massimo Manghi <mxmanghi@apache.org>
* src/mod_rivet_ng/mod_rivet.c: add check on
environment variable AP_PARENT_PID to prevent
server Tcl init script from running in winnt
controlled child processes (as per Apache HTTP
server documentation)
2017-08-10 Georgios Petasis <petasis@apache.org>
* src\mod_rivet_ng\apache_config.c:
* src\mod_rivet_ng\mod_rivet.c:
* src\mod_rivet_ng\mod_rivet_common.c:
* src\mod_rivet_ng\mod_rivet_generator.c:
* src\mod_rivet_ng\rivet_lazy_mpm.c:
* src\mod_rivet_ng\worker_prefork_common.c: Locally declared symbol
rivet_module as extern (DLLIMPORT).
* branches\cmake\src\mod_rivet_ng\mod_rivet.h: Symbol rivet_module
removed from header file.
* branches\cmake\src\mod_rivet_ng\mod_rivet_common.c: Used ckalloc() instead
of apr_pcalloc() for variable globals, in Rivet_PerInterpInit().
* cmake\README.cmake:
* cmake\CMakeLists.txt: Added support for picking a Tcl installed at a
non-standard location. Updated README.cmake with an example. Also disabled
the switch to export all symbols from mod_rivet.so
(WINDOWS_EXPORT_ALL_SYMBOLS).
* src\mod_rivet_ng\mod_rivet_common.c:
* src\mod_rivet_ng\rivetCore.c: Fixes in DLLEXPORT.
2017-08-07 Massimo Manghi <mxmanghi@apache.org>
* src/mod_rivet_ng/mod_rivet.c: Rivet_ServerInit is now implementing
the recommended mechanism to avoid the double load of external
modules
2017-08-05 Georgios Petasis <petasis@apache.org>
* cmake\CMakeLists.txt: rivetparser/rivetlib shared libraries now have the
prefix "lib" under all platforms.
* cmake\cmake_extra_modules\rivet_config.h.cmake: RIVET_RIVET_CORE or
RIVET_CORE? Added also support for RIVET_CORE, but disabled, as it causes
compilation errors (in C preprosessor, two strings are compared, which is
not supported).
* rivet\pkgIndex.tcl: Dropped ".so" in favour of "info sharedlibextension".
* src\librivet\rivetCrypt.c:
* src\librivet\rivetList.c:
* src\librivet\rivetPkgInit.c:
* src\librivet\rivetWWW.c: Definition of EXTERN and exported symbols through
DLLEXPORT.
* src\mod_rivet_ng\mod_rivet.c:
* src\mod_rivet_ng\mod_rivet_cache.c:
* src\mod_rivet_ng\mod_rivet_common.c:
* src\mod_rivet_ng\mod_rivet_generator.c:
* src\mod_rivet_ng\rivetCore.c:
* src\mod_rivet_ng\rivetCore.h:
* src\parser\parserPkgInit.c: Definition of EXTERN and exported symbols
through DLLEXPORT.
2017-08-05 Georgios Petasis <petasis@apache.org>
* src\mod_rivet_ng\rivet_lazy_mpm.c:
* src\mod_rivet_ng\rivet_prefork_mpm.c:
* src\mod_rivet_ng\rivet_worker_mpm.c: Added DLLEXPORT for the symbol
defined with RIVET_MPM_BRIDGE macro.
* cmake\CMakeLists.txt: Exported all symbols for mod_rivet.so under Windows,
to copy the behaviour in UNIX systems (where all symbols are exported from
shared libraries).
* cmake\cmake_extra_modules\checks.cmake:
* cmake\cmake_extra_modules\config.h.cmake:
* cmake\cmake_extra_modules\rivet_config.h.cmake: Under VC11, round()
has not been implemented. Added checks in CMake build, for detecting
round()'s absence.
* src\mod_rivet_ng\rivetCore.c:
* src\mod_rivet_ng\rivet_lazy_mpm.c:
* src\mod_rivet_ng\rivet_prefork_mpm.c:
* src\mod_rivet_ng\rivet_worker_mpm.c:
* src\mod_rivet_ng\worker_prefork_common.c:
* src\parser\parserPkgInit.c: Changes for avoiding link error under Windows
(mostly) related to importing exported symbols from mod_rivet.so.
2017-08-05 Georgios Petasis <petasis@apache.org>
* src/mod_rivet_ng/mod_rivet_common.c: Reordered header files, so
<unistd.h> (and its check) to come after "mod_rivet.h" that includes
"rivet_config.h".
2017-08-04 Georgios Petasis <petasis@apache.org>
* cmake\CMakeLists.txt:
* cmake\cmake_extra_modules\FindAPR.cmake:
* src\mod_rivet_ng\TclWebapache.c:
* src\mod_rivet_ng\mod_rivet.c:
* src\mod_rivet_ng\mod_rivet.h:
* src\mod_rivet_ng\mod_rivet_cache.c:
* src\mod_rivet_ng\mod_rivet_common.c:
* src\mod_rivet_ng\mod_rivet_generator.c:
* src\mod_rivet_ng\rivetCore.c:
* src\parser\rivetParser.c: Changes for fixing compilation errors under
Windows.
2017-08-04 Massimo Manghi <mxmanghi@apache.org>
* src/mod_rivet_ng/rivetCore.c: changes demanded by windows compiler
* rivet/pkgIndex.tcl: recreated with a up to date list of packages
2017-08-04 Georgios Petasis <petasis@apache.org>
* cmake\CMakeLists.txt: Various changes for better support build under
Windows.
* cmake\README.cmake: Added a section for building under Windows.
* cmake\cmake_extra_modules\FindAPACHE.cmake: Enhanced customisability.
The user can guide detection with variables APACHE_INCLUDE_DIR_HINTS,
APACHE_MODULE_DIR_HINTS, APACHE_LIB_DIR_HINTS, APACHE_ROOT.
* cmake\cmake_extra_modules\FindAPR.cmake: Enhanced customisability.
The user can guide detection with variables APR_INCLUDE_DIR_HINTS,
APACHE_INCLUDE_DIR_HINTS, APACHE_ROOT, APR_LIBRARY_HINTS,
APRUTIL_INCLUDE_DIR_HINTS, APRUTIL_LIBRARY_HINTS.
2017-08-03 Georgios Petasis <petasis@apache.org>
* CMake build system: Removed "lib" prefix from some libraris.
2017-08-03 Georgios Petasis <petasis@apache.org>
* CMake build system: Added support for installing Rivet. Added more
checks for various definitions in config.h/rivet_config.h.
2017-08-03 Georgios Petasis <petasis@apache.org>
* CMake build system: Added missing source files, enabled as default
the build of shared libraries, added needed link libraries. Also
extended build system for all Rivet libraries (librivetlib.so,
librivetparser.so, librivet_worker_mpm.so, librivet_prefork_mpm.so,
librivet_lazy_mpm.so), and checked their linked libraries and missing
symbols with their versions when build with autoconf.
2017-08-02 Massimo Manghi <mxmanghi@apache.org>
* Changed references in cmake/CMakeList.txt to build with
code in src/mod_rivet_ng.
2017-08-02 Georgios Petasis <petasis@apache.org>
* Created a new branch (cmake) for the CMake build system.
2017-07-24 Massimo Manghi <mxmanghi@apache.org>
* xml/rivet.xml.in: reflects rivet.xml having been moved to doc/xml
* rivet/default_request_handler.tcl: code of the default
request handler read by mod_rivet
* Makefile.am: now installing also rivet/default_request_handler.tcl
* src/mod_rivet_ng/mod_rivet.c: add function for creation of
the module_globals strucuture. This structure is not assumed anymore
to be inherited through a fork operation and it's now in case
re-created at child process initialization
* src/mod_rivet_ng/rivet_lazy_mpm.c: removing
reference to unused global variable
* src/mod_rivet_ng/mod_rivet_common.c: Rivet_RunningScripts
handling default request procedure specified in the configuration
2017-07-20 Massimo Manghi <mxmanghi@apache.org>
* rivet/packages/formbroker/formbroker.tcl: now using Tcl
[string is boolean ...]
2017-07-19 Massimo Manghi <mxmanghi@apache.org>
* doc/xml/internals.xml: moving the internals chapter
to its final directory
* doc/xml/processing.xml: more proof reading corrections
2017-07-13 Massimo Manghi <mxmanghi@apache.org>
* doc/xml/: further developments of the 3.0 manual
* src/mod_rivet_ng/mod_rivet.c: better coding of
bridge module search and determination
* rivet/default_request_handler.tcl: proposed file
to store the actual request handling code
2017-06-22 Massimo Manghi <mxmanghi@apache.org>
* doc/rivet.xml.in: introducing rivet.xml.in for
automatic and consistent definition of versioning entities
* doc/xml/commands.xml: moved into final directory
* doc/xml/processing.xml: add new file to separate request
processing from MPM bridge interface documentation
2017-06-19 Massimo Manghi <mxmanghi@apache.org>
* doc/xml/directives.xml: first rewriting into a new page.
Still more directives to be documented
* doc/convert_examples.tcl.in: changed message
* doc/rivet.css: add directives for styling the
directives page
2017-06-09 Massimo Manghi <mxmanghi@apache.org>
* doc/xml/: manual rewriting started
2017-06-07 Massimo Manghi <mxmanghi@apache.org>
* doc/xml-2/: XML manual moved to xml-2 to make
rewriting easier
2017-05-15 Massimo Manghi <mxmanghi@apache.org>
* src/mod_rivet_ng/rivet_prefork_mpm.c: server root
interpreter needs to re-seed the random number generator
2017-05-11 Massimo Manghi <mxmanghi@apache.org>
* rivet/init.tcl.in: apply Damon's patch concerning
some tests and error handling. Removed call to the
undocumented procedure ::Rivet::cleanup_request
* configure.ac: better wording of some configure
messages
2017-04-07 Massimo Manghi <mxmanghi@apache.org>
* src/mod_rivet_ng/rivetCore.c: Fixed bug
in argument list passed to RivetCache_MakeKey
2017-04-06 Massimo Manghi <mxmanghi@apache.org>
* src/mod_rivet_ng/rivet_lazy_mpm.c: server_rec
argument in error logging changed to global
root server. Passing the virtual host server rec
makes the call to ap_log_error quiet and
if something goes wrong in the thread's Tcl interp
initialization we don't read anything!
2017-04-05 Massimo Manghi <mxmanghi@apache.org>
* doc/xml/formbroker.xml: better wording of a few
concepts. Add documentation for the boolean data type
* doc/xml/internals.xml: fixed incomplete sentence
2017-02-10 Massimo Manghi <mxmanghi@apache.org>
* rivet/packages/formbroker/formbroker.tcl: now
handling natively also boolean in the form y|n or
0|1
2017-02-01 Massimo Manghi <mxmanghi@apache.org>
* configure.ac: defining and substituting
RIVETLIB_VERSION
* rivet/init.tcl.in: the ::rivet namespace is
created already in src/mod_rivet_ng/mod_rivet_common.c
Package rivetlib is loaded here now
* src/mod_rivet_ng/mod_rivet_common.c: in
function Rivet_PerInterpInit more code is
devolved to the Tcl initialization
2017-01-18 Massimo Manghi <mxmanghi@apache.org>
* doc/Makefile.am: integration of the automake
infrastructure and rules
* src/Makefile.am: removed prefixing of
library names with DESTDIR
2017-01-17 Massimo Manghi <mxmanghi@apache.org>
* Makefile.am: removing the mpm shared library
directory only if exists (it's removed by
the libtool generated rules by the src/Makefile.am)
* src/Makefile.am: installation directories
have been prepended by DESTDIR
2017-01-16 Massimo Manghi <mxmanghi@apache.org>
* Makefile.am: removing the _configs.sed file generated
by configure in distclean target rule fulfills now
entirely the 'distcheck' target
2017-01-04 Massimo Manghi <mxmanghi@apache.org>
* Makefile.am,src/Makefile.am: now handling the 'dist'
and 'distcheck' targets of the automake generated
Makefile
* configure.ac: add RIVET_CORE definition
* src/mod_rivet_ng/rivetCore.c: now calls
the alternate form of RivetParse
* src/parser/parserPkgInit.c: altenate form of
function Rivet_Parser elimianates the need of
enclosing the code in the namespace ::request
2016-12-19 Massimo Manghi <mxmanghi@apache.org>
* rivet/mod_rivet_ng/mod_rivet_cache.c: better wording of cache
functions names.
2016-12-12 Massimo Manghi <mxmanghi@apache.org>
* rivet/init.tcl.in: [url_script] now evaluated
explicitly in the ::request name space. We
don't need the Rivet parser to place a script
in this namespace
* rivet/mod_rivet_ng/rivetCore.c: now Rivet_GetRivetFile
is called with the flag 'toplevel' set to zero. The
code handling this flag could be removed if we
abandoned the traditional mod_rivet core
2016-12-07 Massimo Manghi <mxmanghi@apache.org>
* src/librivet/rivetWWW.c: enlarging buffer
allocated in ::rivet::escape_sgml_chars
* configure.ac: removed test on the apache
version (we don't support apache-1 anymore)
2016-12-06 Massimo Manghi <mxmanghi@apache.org>
* configure.ac: mod_rivet_ng now default for
builing mod_rivet
* src/mod_rivet_ng/rivetCore.c: safer condition
testing should avoid assumptions about how
the compiler builds pointer comparisons
* src/mod_rivet_ng/worker_prefork_common.c:
before running the child init script the
running configuration pointer is the thread
private data has to be set
* tests/broken.test: new error message structure
* tests/checkfails.tcl, failtest.tcl: changed
value returned by one of the tests
2016-12-05 Massimo Manghi <mxmanghi@apache.org>
* rivet/packages/session/session-class.tcl: new
method synch saves in the session cache data
coming from form
* src/mod_rivet_ng/mod_rivet_common.c: more
careful design assign to a single function
the task of determining the current configuration
when an interpreter is initialized
2016-11-30 Massimo Manghi <mxmanghi@apache.org>
* src/mod_rivet_ng/rivet_lazy_mpm.c:
* src/mod_rivet_ng/worker_prefork_mpm.c: setting
the running_conf pointer in the thread private
data enables ::rivet::inspect to return
meaningful data even outside of request processing (in
the forms that make sense)
* src/mod_rivet_ng/rivetCore.c: more accurate
determination of the rivet_server_rec makes
possible to determine the pointer also
outside a request processing
2016-11-28 Massimo Manghi <mxmanghi@apache.org>
* src/mod_rivet_ng/: new configuration directives
RequestHandler (request handling procedure), ImportRivetNS
and ExportRivetNS (override parameters for
build options). RequestHandler enables rivet
to run an application specific request handler.
* src/mod_rivet_ng/rivetInspect.c: now runs also
during the server initialization stage. The whole
rivet core is setup during that phase but only
a few commands are actually operational (most
of them make sense only during an HTTP request processing)
2016-11-23 Massimo Manghi <mxmanghi@apache.org>
* rivet/packages/form/form.tcl,form2.tcl: fix full
qualification of the ::rivet::lempty command
* src/mod_rivet_ng/mod_rivet_common.c: changed or removed
old comments that don't apply to the current code
* configure.ac: now quoting strings when passed
to macro AC_MSG_CHECKING
2016-11-22 Damon J. Courtney <damon.courtney@gmail.com>
* rivet/init.tcl.it: Rewrite init.tcl.in from the top down
2016-11-22 Massimo Manghi <mxmanghi@apache.org>
* rivet/packages/session/session-class.tcl:
* rivet/packages/form/form.tcl,form2.tcl: now
fully qualifying mod_rivet commands, fixed
'file' method that emits an 'email' HTML input element
* doc/xml/formbroker.xml: correct coding example
2016-11-19 Massimo Manghi <mxmanghi@apache.org>
* src/mod-rivet/rivetInspect.c: now returning
an empty string if a value is undefined
* configure.ac: now defaults to non automatic
import of ::rivet namespace into global namespace
2016-11-17 Massimo Manghi <mxmanghi@apache.org>
* rivet/packages/dio/dio_Postgresql.tcl: applied
consistent single quote character handling by
calling PgTcl function pg_quote (closes bug #60378)
* rivet/packages/formbroker/formbroker.tcl: fixed
bug in method response. Package version number
bumped up to 1.0
* doc/xml/formbroker.xml: first draft of the
manual page of package formbroker with example
of implementation of a validator
* doc/xml/commands.xml: fixed type in page
of ::rivet::xml
2016-11-15 Massimo Manghi <mxmanghi@apache.org>
* rivet/init.tcl.in: trimming error buffer
to make test message matching easier
* rivet/rivet-tcl/catch.tcl|try.tcl: better
script evaluation is catch/try construct, complete
error codes in case ::rivet::abort_page is to be
handled
* src/mod_rivet_ng/rivetCore.c: direct
result object handling in [::rivet::inspect script]
* try.rvt: changed test expression matching
2016-11-12 Massimo Manghi <mxmanghi@apache.org>
* rivet/init.tcl.in: removed debugging messages,
request handling made much simpler after
::rivet::inspect changed its behavior when
a script is undefined
* src/mod_rivet_ng/rivetInspect.c: changed
to an empty string the value returned when
a configuration script is undefined
* src/mod_rivet_ng/mod_rivet_common.c: we don't
need to handle at C level the error handler
and the request cleanup Tcl scritps: they are
called from Tcl
* src/mod_rivet_ng/mod_rivet_generator.c: removed
code unused by this version of the module
2016-11-11 Massimo Manghi <mxmanghi@apache.org>
* rivet/init.tcl.it: further development of the
url processing procedures allows script level
overriding of both request handling and error handling
* src/mod_rivet_ng/rivetCore.c: ::rivet::inspect C code
argument handling improved
2016-11-09 Massimo Manghi <mxmanghi@apache.org>
* src/mod_rivet/mod_rivet_common.c: the request_rec
field to be checked in order to determine whether we
are serving the request is 'header' non 'content_type'.
This bug didn't surface because it's set to the same
string when a request is handed down to the module
chain, but it's been around ever since.
2016-11-08 Massimo Manghi <mxmanghi@apache.org>
* src/mod_rivet_ng/apache_config.c: fixed conf
merge that didn't assign the correct cache size
* rivet/init.tcl: fixed exception scripts checks
* src/mod_rivet_ng/rivetCore.c: command 'parse -string'
composes the script and calls directly Tcl_EvalObjEx
* src/mod_rivet/apache_config.c: fixed same bug
found in Rivet_MergeConf developing mod_rivet_ng
2016-11-07 Massimo Manghi <mxmanghi@apache.org>
* src/mod_rivet_ng/rivetCore.c: changed also code
of command ::rivet::parse, now handling the
cache and calling directly Tcl
* src/mod_rivet_ng/mod_rivet_generator.c: now
calling Tcl_EvalObjEx instead of Rivet_ParseExec
* src/mod_rivet_ng/mod_rivet_common.c: now initializing
the thread interpreter private cache with
the new calls to the cache handler
* rivet/init.tcl.in: tested also call to AbortScript
2016-11-03 Massimo Manghi <mxmanghi@apache.org>
* src/mod_rivet/mod_rivet_cache.[c|h]: new file
for the cache code created to have uniform file structure
in order to build the module
* src/mod_rivet_ng/mod_rivet_cache.c: completed code for cache management
* src/mod_rivet_ng/rivetCore.c: new command ::rivet::url_script
returns the full URL referenced script to be parsed
subsequently
* src/mod_rivet/mod_rivet_generator.c: we are now
calling the cache routines, but it won't be needed any longer
as the cache control and interaction are devolved to
the parse routines
2016-10-28 Massimo Manghi <mxmanghi@apache.org>
* src/mod_rivet/[lazy|worker|prefork]_mpm_bridge.c: new
Rivet_ExecutionThreadInit unifies thread initialization
common to each bridge
* src/mod_rivet/apache_config.c: the Rivet_MergeConfig
method did not merge the cache size value
* src/mod_rivet/mod_rivet_common.c: New function
Rivet_ExecutionThreadInit
2016-10-24 Massimo Manghi <mxmanghi@apache.org>
* rivet/mod_rivet_ng: new directory to develop new
module having a Tcl based content generation script
* rivet/packages/formbroker/formbroker.tcl: new method
'reset' restores a form internal status
* rivet/rivet-tcl/try.tcl: tab expansion to fix
indentation
* doc/xml/formbroker.xml: add XML manual page for the
form broker package
2016-10-20 Massimo Manghi <mxmanghi@apache.org>
* rivet/packages/formbroker/formbroker.tcl: new method
'response' returns an array with the last processed response
or an array with the defaults value
2016-10-18 Massimo Manghi <mxmanghi@apache.org>
* rivet/packages/formbroker/formbroker.tcl: add response copy
and default value management
2016-10-17 Massimo Manghi <mxmanghi@apache.org>
* rivet/packages/formbroker/formbroker.tcl: add global
quoting switch, add method for single form variable method (untested)
2016-10-15 Massimo Manghi <mxmanghi@apache.org>
* rivet/packages/formbroker/formbroker.tcl: add quote
mechanism
2016-10-12 Massimo Manghi <mxmanghi@apache.org>
* rivet/packages/formbroker/formbroker.tcl: removed need
for a form_name argument. Now forms receive automatic names.
The list of fields whose validation failed is now
a flat list of field_name - validation_error pairs suitable
to be put in dictionary or array
2016-10-11 Massimo Manghi <mxmanghi@apache.org>
* rivet/packages/formbroker/formbroker.tcl: first stable
version of the FormBroker package. The package checks and
validates form data stored in response array as produced
by ::rivet::response
* contrib/validate_mac.tcl: example of validator checking
and mangling a network mac address. This function is meant
to work with the FormBroker
2016-10-09 Massimo Manghi <mxmanghi@apache.org>
* src/mod_rivet/mod_rivet_generator.c: improved comments in view of
branching for new version of content generation script
* rivet/packages/formbroker/formbroker.tcl: inital reworking for
a transaction type form broker and validator
2016-09-24 Massimo Manghi <mxmanghi@apache.org>
* rivet/packages/formbroker/formbroker.tcl: add proposed form broker
* rivet/packages/dio/dio.tcl: now returning also results in a dictionary
* rivet/packages/dio/dio_Mysql.tcl: supporting also NULL as keyword for
NULL values of a column
* doc/xml/commands.xml: further elaboration of ::rivet::exit command
by adding alink to MaxRequestsPerChild parameter in Apache docs
2016-09-19 Massimo Manghi <mxmanghi@apache.org>
* rivet/rivet.tcl.in,rivet.tcl: fixed errors in comments
2016-09-08 Massimo Manghi <mxmanghi@apache.org>
* tests/runtests.tcl: support for Apache 1.3 dropped. Add modules needed by
Apache 2.4
* tests/apachetests/apachetests.tcl: Dropped support for Apache 1.3
* tests/shorthand.test: shorthand notation test versioning added
* tests/virtualhost.test: removed NameVirtualHost directive no longer supported
* tests/bailout.test: add tests for ::rivet::catch and ::rivet::try
* tests/catch.rvt,try.rvt: script testing handling various conditions
* rivet/rivet-tcl/url_query.tcl: add new command ::rivet::url_query
2016-09-07 Massimo Manghi <mxmanghi@apache.org>
* rivet/rivet-tcl/catch.tcl: fixed argument management in ::catch call
2016-09-06 Massimo Manghi <mxmanghi@apache.org>
* doc/xml/lazybridge.xml: further lazybridge documentation
development
2016-07-11 Massimo Manghi <mxmanghi@apache.org>
* rivet/packages/form/form2.tcl,rivet/pkgIndex.tcl: bump up package
form version to 2.1
2016-07-04 Massimo Manghi <mxmanghi@apache.org>
* doc/xml/commands.xml: ::rivet::catch man page example corrected
* rivet/packages/form/form2.tcl: fixed output in code for the
<select>...</select> form element method
* src/mod_rivet/mod_rivet_generator.c: removed code commented away
* src/mod_rivet/rivetCore.c: FQ var command name
2016-06-16 Massimo Manghi <mxmanghi@apache.org>
* doc/xml/commands.xml: rephrasing the ::rivet::catch manual page
2016-03-18 Massimo Manghi <mxmanghi@apache.org>
* tclconfig/: reverting to previous release
2016-03-17 Massimo Manghi <mxmanghi@apache.org>
* tclconfig/tcl.m4,install-sh,ltmain.sh,libtool.m4: updating autotools
and libtool macros to the latest versions available
2016-02-16 Massimo Manghi <mxmanghi@apache.org>
* src/doc/xml/lazybridge.xml: further elaboration of the lazy bridge
2016-02-05 Massimo Manghi <mxmanghi@apache.org>
* src/mod_rivet/rivet_worker_mpm.c: removed code implmenting the old
model of inter thread communication. This should fix the problem of
redundant mutex/cond variable creation/destruction needed by the former
model to avoid memory leaks
2016-02-01 Massimo Manghi <mxmanghi@apache.org>
* src/mod_rivet/rivet_worker_mpm.c: upon process shutdown thread status
has to be set to 'init' to force thread exit
2016-01-25 Massimo Manghi <mxmanghi@apache.org>
* src/mod_rivet/rivetInspect.c: adding handling of the MpmBridge directive
to the ::rivet::inspect command
* doc/xml/lazybridge.xml: more development to lazy bridge manual page
* rivet/packages/calendar/: preparing new version of package calendar
2016-01-19 Massimo Manghi <mxmanghi@apache.org>
* src/mod_rivet/rivet_lazy_mpm.c: removed unused field structures, boolean
for process shutdown moved to process wide module status
* doc/lazybridge.xml: started documentation of the lazy bridge
2016-01-17 Massimo Manghi <mxmanghi@apache.org>
* src/mod_rivet/rivet_worker_mpm.c: removed variable needed only when built with
the old thread communication model
2016-01-14 Massimo Manghi <mxmanghi@apache.org>
* src/mod_rivet/rivet_worker_mpm.c: new communication method between bridge
controlled Tcl threads and handler threads. This method was inspired by
the experiment done with the lazy bridge and proved to have simpler code
and avoids the need to rely on the handler thread memory pool that gets
destroyed too often
* src/mod_rivet/mod_rivet.h: removed definition specific to the worker bridge
2016-01-07 Massimo Manghi <mxmanghi@apache.org>
* src/mod_rivet/: fixed aimed at consistently determining the virtual host
associated to a thread
2016-01-05 Massimo Manghi <mxmanghi@apache.org>
* src/mod_rivet/mod_rivet_generator.[h|c]: files holding the output generation
procedures on which all the bridges rely (previously stored in mod_rivet.c)
* src/mod_rivet/rivet_lazy_mpm.c: purged of redundant locking code and unused variables
* src/mod_rivet/worker_prefork_mpm.c: new file with thread private data extension to
bridge status
* doc/xml/internals.xml: update to amend out of date explanations
2015-12-28 Massimo Manghi <mxmanghi@apache.org>
* src/mod_rivet/rivet_lazy_mpm.c: fixed missing interpreter scripts initialization
* doc/xml/internals.xml: documenting bridge interpreter accessor function
2015-12-26 Massimo Manghi <mxmanghi@apache.org>
* src/mod_rivet/worker_prefork_common.c: functions common to both the prefork
and worker bridges, but not general enough bur rather specific to the worker
model adopted by them
* src/mod_rivet/rivet_lazy_mpm.c: further development, now capable of serving
rivet requests, but needs to be completed.
* src/mod_rivet/mod_rivet_common.c: more stuff moved from mod_rivet to this file
* src/mod_rivet/mod_rivet.h: new data organization with bridge specific thread
private data
* src/mod_rivet/Tclwebapache.c: API changed from Tclwebreq pointers to
thread private data that is supposed to store most of the thread environment
2015-12-22 Massimo Manghi <mxmanghi@apache.org>
* src/mod_rivet/rivet_lazy_mpm.c: taking a snapshot of the current development
as this code proved to be quite robust when stressed using 'ab'
2015-12-20 Massimo Manghi <mxmanghi@apache.org>
* src/mod_rivet/rivet_lazy_mpm.c: first prototype of a threaded bridge with
reduced start up time and thread number optimization
2015-12-15 Massimo Manghi <mxmanghi@apache.org>
* src/mod_rivet/rivet_lazy_mpm.c: new lazy MPM bridge with a smoother workload
balancing (should work better for low to middle workloads)
* src/mod_rivet/rivet_worker_mpm.c: improved code comments
* src/mod_rivet/mod_rivet.c: handling of mpm_bridge configuration parameter.
New bridge module search method
* src/mod_rivet/rivet_config.c: new MpmBridge configuration directive
2015-12-13 Massimo Manghi <mxmanghi@apache.org>
* src/mod_rivet/rivet_worker_mpm.c: changed in order to have a better handling
of ::rivet::exit (the call to exit( ) is now carried out from within the
supervising thread
* src/mod_rivet/rivet_prefork_mpm.c: Adding exit command handler
* src/mod_rivet/mod_rivet.c: new central Rivet_Finalize method that calls
any bridge module finalization. The function deletes the thread key to
access private data
2015-12-08 Massimo Manghi <mxmanghi@apache.org>
* doc/xml/commands.xml,asciiglyphs.tcl: adding documentation for ::rivet::try
and AsciiGlyphs
2015-12-06 Massimo Manghi <mxmanghi@apache.org>
* rivet/packages/asciiglyphs.tcl: Package HexGlyphs renamed as AsciiGlyphs
2015-12-05 Massimo Manghi <mxmanghi@apache.org>
* rivet/rivet-tcl/try.tcl: new command ::rivet::try wraps core
same command to trap ::rivet::abort_code and ::rivet::exit interruptions
* src/mod_rivet/rivetCore.c: removed semicolons in macro CHECK_REQUEST_REC
calls
* rivet/rivet-tcl/catch.tcl: using [uplevel] to control Tcl core [catch]
command (as it's been customary with Tcl ever since)
2015-12-03 Massimo Manghi <mxmanghi@apache.org>
* doc/xml/internals.xml: explaining the MPM bridge jump table
* doc/rivet.css: changing colors adopting 2.3 style temporarily
* doc/images: new images with new colors
* doc/xml/intro.xml,install.xml: removing reference no longer
valid for version 3.0
* packages/hexglyphs/hexglyphs.tcl: new glyphs for more punctuation
characters
2015-11-27 Massimo Manghi <mxmanghi@apache.org>
* VERSION,configure.ac: Major version number increased to 3.0.0
2015-11-25 Massimo Manghi <mxmanghi@apache.org>
* src/rivet.h: defined RIVET_CMD_EXPORT as wrapper to Tcl_Export
* tests/bailout.test: redirect.test renamed as bailout.test. It's meant
to gather all the tests concerning exceptions like abort_page and ::rivet::exit
* src/librivet/rivet[Crypt|WWW|List].c: command export mechanism changed
as we are now explicitly exporting commands
* rivet/rivet-tcl/catch.tcl: new (non-exported) command ::rivet::catch
* rivet/init.tcl[.in]: command export mechanics changed
* src/mod_rivet/rivetCore.c: command export made explicit through RIVET_CMD_EXPORT.
Abort page command now handling also [::rivet::abort_page -exiting] test
2015-10-27 Massimo Manghi <mxmanghi@apache.org>
* rivet/init.tcl.in: actually was this file that had to be changed
2015-10-22 Massimo Manghi <mxmanghi@apache.org>
* rivet/init.tcl: now renaming the [exit] core command into ::Rivet::tclcore_exit
and replacing with a Tcl scripts that calls ::rivet::thread_exit
* rivet/packages/hexglyphs/hexglyphs.tcl: package generating ASCII
glyphs of hexadecimal characters and punctuation character : and -
2015-10-18 Massimo Manghi <mxmanghi@apache.org>
* src/mod_rivet/rivet_worker_mpm.c: returning HTTP_INTERNAL_SERVER_ERROR
to requests coming in during a process shutdown. This is required
by the exit command handling
* src/mod_rivet/mod_rivet.c: changed some log message calls
in order to have ap_log_rerror when an error occurs during
a request processing
2015-10-17 Massimo Manghi <mxmanghi@apache.org>
* src/mod_rivet/rivet_worker_mpm.c,rivet_prefork_mpm.c,mod_rivet.c:
bridge jump table macro definition
2015-10-14 Massimo Manghi <mxmanghi@apache.org>
* rivet/packages/hexgliphs/hexgliphs.tcl: new package HexGliphs
to print hexadecimal character gliphs as ascii art
2015-10-04 Massimo Manghi <mxmanghi@apache.org>
* src/mod_rivet/mod_rivet.c: moving Rivet_ProcessorCleanup in
mod_rivet_common.c
* src/mod_rivet/mod_rivet.h: add exit status code to
thread private data
* src/mod_rivet/mod_rivet_common.c: Rivet_ProcessorCleanup now
in this file
* src/mod_rivet/rivet_worker_mpm.c: thread exit handling
now calling the finalize handling function. Functions naming
scheme reformed. Since the exit_thread command forces
the whole child process to exit the check on the thread
counter in the supervisor thread was changed as the thread
executing thread_exit brings about can't exit before
the supervisor itself terminates
* src/mod_rivet/rivet_prefork_mpm.c: function naming scheme
changed.
2015-09-04 Massimo Manghi <mxmanghi@apache.org>
* src/mod_rivet/rivet_prefork_mpm.c: fix message severity
in finalize method
* src/mod_rivet/rivet_worker_mpm.c: passing actual error
code to log message if thread join fails
2015-08-30 Massimo Manghi <mxmanghi@apache.org>
* src/mod_rivet/mod_rivet.c: bringing the request type check
back to Rivet_Handler shook quite a bit the build process as
it required to create a new file rivet_types.h to store
various definitions
* src/mod_rivet/TclWebapache.c: changed definition of
TclWeb_InitRequest. The thread private data must have
stored the whole request processing status
* src/mod_rivet/rivet_prefork_mpm.c: Request type check moved
to mod_rivet.c (Rivet_Handler)
* src/mod_rivet/rivet_worker_mpm.c: Request type stored
now in the request private data
* src/parser/parsePkgInit.c: was still including config.h
instead rivet_config.h. Add mandatory Apache standard
copyright statement
* src/mod_rivet/mod_rivet_common.c: Rivet_CheckType
definition changed to return a rivet_req_ctype value
* src/mod_rivet/rivet_types.h: add new file with
definition used by various files that don't need mod_rivet.h
* src/mod_rivet/apache_request.h: removed definition that
went into rivet_types.h
* src/Makefile.am: libparser needed to have also LDFLAGS
to build correctly
* src/rivet.h: ASF copyright statement, including also
rivet_types.h
2015-08-18 Massimo Manghi <mxmanghi@apache.org>
* src/mod_rivet/mod_rivet.[c|h]: now calling MPM through
a bridge_jump_table structure with all the functions exported
by a bridge implementation. Created default exit handler
so that only if a special exit handler is needed it has
to be defined
* src/mod_rivet/rivet_worker_mpm.c: exporting through
the bridge_jump_table the names of bridge functions
* src/mod_rivet/rivet_prefork_mpm.c: export of the
bridge function through the jump table. Removed the
empty server init function (it's field in the jump
table set to NULL). Removed exit handler (we rely on
the default exit handler)
* src/mod_rivet/rivetCore.c: using the jump table
to call the exit handler
2015-07-15 Massimo Manghi <mxmanghi@apache.org>
* src/mod_rivet/rivet_worker_mpm.c: when thread private data
are released the correponding pointer is set to NULL in APR
threadkey database. It turned out a thread pool is very often
deleted and data allcoated from it invalidated
* src/mod_rivet/mod_rivet.c: handler private data key is
now local to rivet_worker_mpm.c
2015-07-07 Massimo Manghi <mxmanghi@apache.org>
* src/mod_rivet/rivet_worker_mpm.c: hopefully a method to
determine the thread id portable across Apache versions
2015-06-30 Massimo Manghi <mxmanghi@apache.org>
* src/mod_rivet/rivet_worker_mpm.c: thread id determination
method changed to support Apache 2.2
2015-06-28 Massimo Manghi <mxmanghi@apache.org>
* src/mod_rivet/mod_rivet.c: fixed errors in comments
* src/mod_rivet/rivet_worker_mpm.c: Binding release of mutex and
condition variable to MPM thread pool cleanup, hopefully fixing
this potential memory leak
2015-06-21 Massimo Manghi <mxmanghi@apache.org>
* configure.ac: add creation of config variable RIVET_CONFIGURE_CMD
* src/mod_rivet/mod_rivet_common.c: add RIVET_CONFIGURE_CMD handling
in 'server' array
2015-06-06 Massimo Manghi <mxmanghi@apache.org>
* src/mod_rivet/rivet_worker_mpm.c: found a solution for determining
the current thread pool. Mutex and cond variable are allocated from it
but never destroyed. Still have to understand if letting the pool go
is enough for a clean deletion of them
* src/mod_rivet/rivetInspect.c: a pesky 'static' declaration of
a local variable was still existing and under intense request firing
threads stumbled on it.
2015-06-03 Massimo Manghi <mxmanghi@apache.org>
* doc/rivet.css: changing selector for namespace table as DocBook
seems not to honor the id attribute anymore
* doc/xml/request.css: changing the id "namespaces" as class
2015-05-25 Massimo Manghi <mxmanghi@apache.org>
* src/Makefile.am: disabled build of aprthread experimental bridge
* src/mod_rivet/mod_rivet.h: introduced opaque datatype mpm_bridge_status
and removed bridge specific variables from mod_rivet_globals.
* src/mod_rivet/mod_rivet.c: removed handling of bridge specific status
* src/mod_rivet/rivet_worker_mpm.c: devolving to this file all the handling
of its internal status
* src/mod_rivet/rivet_prefork_mpm.c: changes imposed by modification
of the APIs and also new responsabilities devolved to Rivet_CreatePrivateData.
2015-05-21 Massimo Manghi <mxmanghi@apache.org>
* src/mod_rivet/rivet_prefork_mpm.c: child processes created by fork calls
inherit an interpreter that needs to import the ::rivet namespace when
configured that way
2015-05-19 Massimo Manghi <mxmanghi@apache.org>
* src/rivet.h: macro THREAD_PRIVATE_DATA now simply casts ClientData
pointer to a rivet_thread_private pointer
* src/mod_rivet/mod_rivet.h: type vhost_interp renamed as rivet_thread_interp
* src/mod_rivet/mod_rivet.c: Server root interpreter not initialized
with mod_rivet core as it's pointless to have the rivet commands
for a ServerInitScript. Rivet core deferred to child process initialization
for the same interpreter when the OS supports the fork system call, thus
to rivet_prefork_mpm.c. Changed argument list of Rivet_PerInterpInit in
that the function handles a whole rivet_thread_interp object.
New function Rivet_RunServerInit controls and runs ServerInitScript.
Thread private key creation devolved to child process initialization
* src/mod_rivet/rivet_prefork_mpm.c: Rivet_MPM_ServerInit emptied
Rivet core commands initialized in Rivet_MPM_ChildInit
* src/mod_rivet/rivetCore.c: removed dependence from rivet_interp_globals,
status devolved to rivet_thread_private as it's thread specific not
interpreter specific. Pointer to the rivet_thread_private cast as
client data when core commands are create calling Tcl_CreateCommand (see
macros THREAD_PRIVATE_DATA and RIVET_OBJ_COMMAND)
2015-05-18 Massimo Manghi <mxmanghi@apache.org>
* src/mod_rivet/mod_rivet_common.c: fixed call to apr_palloc which
allocated dirty ram, changed as apr_pcalloc
2015-05-15 Massimo Manghi <mxmanghi@apache.org>
* src/mod_rivet/mod_rivet.h: further reorganization removes duplication
of status variables between rivet_thread_worker and rivet_interp_globals
* src/mod_rivet/rivetCore.c: completed transition from interpreter globals
to thread private data which now stores per request status
* src/mod_rivet/mod_rivet.c: removed globals variable initialization
* src/mod_rivet/TclWebapache.c: charset determination stored now done in
TclWeb_InitRequest
2015-05-14 Massimo Manghi <mxmanghi@apache.org>
* src/mod_rivet/mod_rivet.h: removing redundant variable from handler_private
structure
* src/mod_rivet/rivet_worker_mpm.c: removing unnecessary call to
TclWeb_InitRequest which is called in Rivet_SendContent.
2015-05-12 Massimo Manghi <mxmanghi@apache.org>
* src/mod_rivet/mod_rivet.[c|h]: moving some request processing status
objects (request_rec, TclWebapache etc) from the interpreter
globals (mod_rivet_globals) to the thread private data (rivet_thread_private)
* src/mod_rivet/rivet_[prefork|worker]_mpm.c: Rivet channel creation
is now removed from Rivet_CreatePrivateData, Private data
must be allocated indipendtly from the RivetChannel
* src/mod_rivet/rivetCore.c: setting up status variables storage
transition from mod_rivet_globals to rivet_thread_private
* src/rivet.h: Rivet command macro changed to accept a new
argument to be passed to a command implementation as ClientData.
Currently the value passed must be the pointer to the thread private
data
* src/mod_rivet/mod_rivet_common.c: New function Rivet_ReleaseChannel
and initialization of status variables moved to thread private data
* src/mod_rivet/rivetCore.c:
changes needed after we moved to rivet_thread_private fields
driven by C code implementing ::rivet::abort_page.
Adding bridge name to server array variables.
* src/librivet/rivetCrypt.c:
* src/librivet/rivetWWW.c:
* src/librivet/rivetList.c:
* src/parser/parserPkgInit.c: Changing command creation macro
to follow new 3 arguments form
2015-05-05 Massimo Manghi <mxmanghi@apache.org>
* src/mod_rivet/mod_rivet.c: porting error and
abort_page handling implemented in branches/2.2 (fixes bug #57501).
* src/mod_rivet/mod_rivet.h: abort_page related fields
moved to rivet_thread_private from interpreter globals
2015-04-16 Massimo Manghi <mxmanghi@apache.org>
* src/mod_rivet/rivet_worker_mpm.c: now we assume thread private data
exist already
* rivet/init.tcl.in,rivet/init.tcl: new method Rivet::exit now
replaces Tcl ::exit and calls ::rivet::exit_thread which has
an implementation in the MPM bridges
* docs/xml/install.xml: removed documentation for obsolete
configure switch --with-apache-version
2015-03-28 Massimo Manghi <mxmanghi@apache.org>
* src/mod_rivet/mod_rivet.[c|h]: moved Tcl panic procedure data from
mod_rivet_globals to rivet_thread_private
* src/mod_rivet/mod_rivet_common.[c|h]: new procedure Rivet_SetupTclPanicProc
and Rivet_PanicProc fixed to handle thread private data to get valid
and thread safe information about the module status. New procedure
Rivet_CreatePrivateData should provide a common method for all bridges
to create thread private data
* src/mod_rivet/rivet_[prefork|worker]_mpm.c: exploiting
Rivet_CreatePrivateData and Rivet_SetupTclPanicProc makes code
more localized, removes redundancy and improves readability
2015-03-18 Massimo Manghi <mxmanghi@apache.org>
* INSTALL: update installation and configuration examples
2015-03-11 Massimo Manghi <mxmanghi@apache.org>
* doc/xml/internals.xml: Improved paragraph on how to extend mod_rivet
* src/apache-2/mod_rivet.c: Improper handling of 'HTTP_NOT_FOUND' and
HTTP_INTERNAL_SERVER_ERROR caused mod_rivet to access a non existing
memory location (Bug #57686)
2015-02-20 Massimo Manghi <mxmanghi@apache.org>
* INSTALL: updating examples and version
* src/mod_rivet/mod_rivet.c: Restoring usual Rivet/VERSION signature
2015-02-07 Massimo Manghi <mxmanghi@apache.org>
* src/apache-2/: removed, now maintained only in branches/2.2
* src/mod_rivet: new directory with code for MPM aware mod_rivet
* src/experimental: removed
2015-02-03 Massimo Manghi <mxmanghi@apache.org>
* src/experimental/rivet_worker_mpm.c: assigning to base server interpreter
the channel referenced in private->channel (was dangling and caused segfaults)
2015-02-02 Massimo Manghi <mxmanghi@apache.org>
* src/experimental/rivet_worker_mpm.c: removing commented code and adding
new function Rivet_MPM_Shutdown aimed at forcing ancillary thread to exit
* src/experimental/rivetCore.c: in Rivet_Parse returned value of
Rivet_ParseExecFile is propagated up to the caller. Probably unnecessary
now, but just in case we want to have special handling of TCL_CONTINUE or
TCL_BREAK
* src/experimental/mod_rivet.c: moving call to after_every_script out
of Rivet_ParseExecFile and into Rivet_SendContent. Any call to
::rivet::abort_page is now trapped by abort_script
* src/experimental/TclWebapache.c: if charset is set in the configuration
then it's set in the headers just before HTTP headers are sent (moved
from mod_rivet.c
2015-01-19 Massimo Manghi <mxmanghi@apache.org>
* src/experimental/mod_rivet.c: Channel ref count fixed
2015-01-13 Massimo Manghi <mxmanghi@apache.org>
* src/experimental/mod_rivet.c,mod_rivet_common.c: improved some comments
* rivet_worker_bridge.c: fixed channel wrong handling
2015-01-12 Massimo Manghi <mxmanghi@apache.org>
* src/experimental/mod_rivet.c,mod_rivet_common.c,rivet_[prefork|worker]_bridge.c: fixed
various bugs with separate channel handling
* tests/channel.test,channel.tcl: adding test for SeparateChannels
2015-01-11 Massimo Manghi <mxmanghi@apache.org>
* tests/redirect.test,redirect.rvt: adding test for command ::rivet::redirect
2015-01-08 Massimo Manghi <mxmanghi@apache.org>
* src/experimental/rivetInspect.c: add SeparateChannels directive introspection
* doc/xml/command.xml,directives.xml: add explanation of new command
::rivet::redirect and new directive SeparateChannel
2015-01-06 Massimo Manghi <mxmanghi@apache.org>
* src/experimental/mod_rivet.c: handling separate_channels flag for virtual host
private Rivet Channels
* src/experimental/mod_rivet_common.c: new function Rivet_CreateRivetChannel
* src/experimental/apache_config.c: Conf directive SeparateChannels
* src/experimental/rivet_worker_mpm.c,rivet_prefork_mpm.c: Channel creation code
moved to mod_rivet_common.c
* configure.ac: apache utils configuration split from APR configuration
* Makefile.am: new symbols APU_INCLUDES and APU_LDFLAGS
2014-12-21 Massimo Manghi <mxmanghi@apache.org>
* rivet/rivet-tcl/redirect.tcl: passing a meaningful dictionary as error descriptor
* src/experimental/rivetCore.c: supporting also method 'get'
* src/experimental/Tclwebapache.c: new function TclWeb_OutputHeader[Get|Set] to
explicitly suggesting they are accessing the output headers
2014-12-17 Massimo Manghi <mxmanghi@apache.org>
* src/experimental/rivetCore.c: new 'headers sent' introspection command to
understand whether headers have been sent already
* rivet/rivet-tcl/redirect.tcl: command didn't fail with a meaningful message
if headers had been sent already because of ::rivet::no_body that blocks output
to the socket. The procedure now returns an error if ::rivet::headers sent
returns 1
2014-12-16 Massimo Manghi <mxmanghi@apache.org>
* configure.ac: bumping version number to 2.3.0
* rivet/init.tcl: recreated by automake
* rivet/rivet-tcl/redirect.tcl: add new command ::rivet::redirect
* src/experimental/mod_rivet.c: Tcl_Flush call moved from Rivet_ExecuteAndCheck to
the very end of Rivet_SendContent, also TclWeb_PrintHeader is now unique just before
the I/O buffer is flushed
2014-12-06 Massimo Manghi <mxmanghi@apache.org>
* src/experimental/mod_rivet.c,src/apache-2/mod_rivet.c: Rivet init package bound to
be $(RIVET_MAJOR_VERSION).$(RIVET_MINOR_VERSION) and defined in autotool variable
INIT_VERSION (to be transformed into RIVET_INIT_VERSION for C code includes)
* rivet/rivet-tcl/read_file.c: argument lists admit a variable number of extra arguments
to be evaluated as argument of 'fconfigure' call
* configure.ac: Macro symbol TCL_PACKAGE_VERSION renamed as INIT_VERSION
2014-11-28 Massimo Manghi <mxmanghi@apache.org>
* src/experimental/mod_rivet.c: Rivet channel is set as stdout and as such is released
when its refCount drops below 2. Therefore we cannot unregister it for each interpreter
unless we remove it as stdout when terminating the thread just before unregistering
the channel and deleting the intepreters
2014-11-05 Massimo Manghi <mxmanghi@apache.org>
* src/experimental/mod_rivet.c: fixed wrong call to Tcl_GetString passing a void argument
that actually wasn't a Tcl_Obj pointer
2014-10-28 Massimo Manghi <mxmanghi@apache.org>
* rivet/packages/form/form2.tcl: how comes the method 'file' emits the same output of method
email and nobody noticed it?
2014-10-06 Massimo Manghi <mxmanghi@apache.org>
* src/experimental/mod_rivet.c: handling exception generated by ::rivet::exit_thread
* src/experimental/rivetCore.c: adding experimental ::rivet::inspect exit form for
detection of ::rivet::exit_thread call
2014-09-29 Massimo Manghi <mxmanghi@apache.org>
* src/experimental/mod_rivet.c: adding mpm_exit_handler function pointer handling. Completed
draft solution for RivetUserConf directives. Scripts cannot be cached though and the whole
mechanism has to be redesigned
* src/experimental/rivetCore.c: Add new command ::rivet::exit_thread
* src/experimental/rivet_prefork_mpm.c,rivet_worker_mpm.c: add function for mpm_exit_handler
hook definition
2014-09-26 Massimo Manghi <mxmanghi@apache.org>
* tests/apachetest/apachetest.tcl: phasing out TclX calls as the web server seems not to respond
to QUIT signals sent by Tclx's kill. Likewise in apachetcl the httpd binary is used to control
execution
2014-09-26 Massimo Manghi <mxmanghi@apache.org>
* src/experimental/mod_rivet.c: Add user scripts handling. Fixed bug in per dir and per user
scripts when virtual interpreters are off.
* src/experimental/mod_rivet.h: add macros for user configuration flags handling
* src/experimental/apache_config.h: add user configuration handling
* tests/inspect.test: trimming tests in order to make them independent for the final CR.
Carriage returns should now be appended when needed
* tests/virtualhost.test: adding returned string space class character trimming
* tests/rivet.test: changing localhost into 127.0.0.1 as it breaks in certain cases
2014-09-08 Massimo Manghi <mxmanghi@apache.org>
* src/experimental/mod_rivet.c: handling per dir configurations that have no Rivet directives
in them, thus leaving the 'path' field NULL.
* src/experimental/TclWebapache.c: reenabling CACHE_SIZE and CACHE_FREE in the environment
array
2014-09-07 Massimo Manghi <mxmanghi@apache.org>
* src/experimental/mod_rivet.h: add field path to rivet_server_conf. This field carries
a copy of the 'path' field in cmd_parms. This field is NULL for global and <VirtualHost>
sections whereas for <Directory> sections points to the argument (the pattern matching
a certain directory)
* src/experimental/mod_rivet.c: handling of rdc->path to store configuration scripts
* src/experimental/rivet_prefork_mpm.c: defining request_init and request_cleanup in the
thread private data
* src/experimental/apache_config.h: handling of the path field in rivet_server_conf
2014-09-05 Massimo Manghi <mxmanghi@apache.org>
* src/experimental/apache_config.h: removed handling of lines unneeded by this version of mod_rivet
* src/experimental/rivet_worker_mpm.c:
* src/experimental/rivet_aprthread_mpm.c:
* src/experimental/rivet_prefork_mpm.c: moving reference to configurations
scripts into their new location on rivet_thread_private
* src/experimental/mod_rivet.h: running_scripts object defined to store running configurations
script wrapped in Tcl_Obj instances and allow construction of database of Tcl scripts bound
to per-directory configuration. Adding variables for storing running configuration in rivet_thread_private.
Configuration records now store references to pristine char* buffers for scripts
* src/experimental/mod_rivet.c: changed referenced to configured scripts to their new location,
removed redundant calls to Rivet_GetConf. Configuration is now built and stored in thread private data
* src/experimental/rivetInspect.c: code in Rivet_ReadConfParameter adapted to reflect changes
in configuration record definitions
2014-08-31 Massimo Manghi <mxmanghi@apache.org>
* src/experimental/rivet_prefork_mpm.c: removing commented code
* src/experimental/mod_rivet.c: removing unnecessary Tcl mutex declaration
* src/experimental/mod_rivet.h: adding new aggregate structure for conf scripts
2014-08-29 Massimo Manghi <mxmanghi@apache.org>
* src/experimental/mod_rivet.c: added control on Tcl object stored in the variable auto_path and duplicate
it in case it's shared. Removed callback to Rivet_ProcessorCleanup: this call back is called by APR
in a thread different from the one that allocated a specific private data record. Thus Tcl thread specific
data cannot be released consistently when calling Tcl_DeleteInterp.
* src/experimental/rivet_worker_mpm.c: request_init and request_cleanup made thread private. Supervisor
wait time definition moved here.
2014-08-27 Massimo Manghi <mxmanghi@apache.org>
* src/experimental/mod_rivet.h: request_init and request_cleanup moved from static into rivet_thread_private
* src/experimental/rivet_aprthread_mpm.c,rivet_worker_mpm.c: request_init and request_cleanup are initialized
during thread private data set up
2014-08-19 Massimo Manghi <mxmanghi@apache.org>
* src/experimental/mod_rivet.c: mutex serializing request processing now controlled by
RIVET_SERIALIZE_HTTP_REQUEST.
* src/experimental/mod_rivet.h: mutex req_mutex conditional to definition of RIVET_SERIALIZE_HTTP_REQUESTS.
Also defined macro HTTP_REQUESTS_PROC macro to protect execution of code by module_globals->req_mutex
* src/experimental/rivet_aprthread_mpm.c: new simplified bridge rivet_aprthread_mpm.c which creates
Tcl interpreters within thread private data.
* configure.ac: introducing HTTP_REQUESTS_MUTEX for handling of request serialization
2014-08-18 Massimo Manghi <mxmanghi@apache.org>
* src/apache-2/mod_rivet.c: fixed old symbols now renamed as 'module_globals'
2014-08-16 Massimo Manghi <mxmangho@apache.org>
* src/experimental/mod_rivet.c: reinstated big mutex aroud Rivet_SendContent (where originally
Tcl_Mutex lock/unlock were called. The module is usable but way too slow wrt prefork because
of the locking
* configure.ac,src/apache-2/Makefile.am: fixed mismatch between symbols
2014-08-15 Massimo Manghi <mxmanghi@apache.org>
* src/experimental/mod_rivet.c: Tcl protecting mutex localized in order to restrict as much as possible
the protected code and reduce the size of the bottleneck. Still, this is not OK and the current implementation
is going to be kept to provide functionality of mod_rivet with the worker MPM. We have to explore
the possibility of calling directly Tcl threading functions.
2014-08-14 Massimo Manghi <mxmanghi@apache.org>
* src/experimental/mod_rivet.c: implemented automatic bridge load mechanism.
* src/experimental/rivet_worker_mpm.c: starting maximal number of threads (as per mpm_worker configuration)
* configure.ac: automated parameters when build experimental module.
2014-08-12 Massimo Manghi <mxmanghi@apache.org>
* src/experimental/rivet_[prefork|worker]_mpm.c: bridges integrated. Removed substantial code
from rivet_prefork_mpm.c and merged with the current approach handling hosts interpreters using
vhost_interp objects and storing everything in a child process/thread private data
* src/experimental/apache_config.[c|h]: eventually these files had to be copied here from common
and modified to reflect the new model for handling server records
* src/experimental/mod_rivet_common.c: same for this file
* src/experimental/mod_rivet.c: further generalization of the code to provide consistent
support for the bridges. Adding a new hook for mpm_master_interp, a function implemented by
a bridge responsible for returning the child process/thread master interpreter.
2014-08-11 Massimo Manghi <mxmanghi@apache.org>
* src/experimental/rivet_worker_mpm.c: redesigning virtual hosts resource management for threads
* src/experimental/mod_rivet[c|h]: implementing thread private interpreters management
* src/experimental/rivetCore.c,rivetInspect.c: I had to move here these files as some API has changed
and perhaps it's better if we stick into the interp globals a reference to the thread private data
2014-08-10 Massimo Manghi <mxmanghi@apache.org>
* src/experimental/rivet_prefork_mpm.c: handling also server initialization
* src/experimental/rivet_worker_mpm.c: doing server initialization from the threaded MPM perspective
* src/experimental/mod_rivet.c: server initialization loads symbols from the bridge module and
then defers the initialization task to the specific bridge.
2014-08-09 Massimo Manghi <mxmanghi@apache.org>
* src/apache-2/mod_rivet.c: Various functions moved to src/common/mod_rivet_common.c
* configure.ac: --with-rivet-core switch simplified
* Makefile.am: preparing for installation of MPM bridges which have not to be scanned for Tcl packages
* NOTICE: now Apache policy compliant
* src/apache-2/Makefile.am: reenabled and reworked to make paths relative
* src/apache-2/mod_rivet.h: reworked to reflect the new code organization. Also some definitions
moved here from mod_rivet.c
* src/common/mod_rivet_common.c: this is now the place where mod_rivet implementation independent
function must go
* src/experimental/Makefile.am: adding build for rivet_prefork_mpm.so
* src/experimental/mod_rivet.[c|h]: placing here only the hopefully necessary code. The module
resolves the bridge module symbols and actually calls those function to initialize, respond to
requests and exit child processes
* src/experimental/rivet_prefork_mpm.c: first sccessful implementation of the prefork bridge
* src/experimental/rivet_worker_mpm.c: stuffing code into this module. It doesn't build now
* src/common/mod_rivet_common.h: definitions for functions stored here.
2014-08-05 Massimo Manghi <mxmanghi@apache.org>
* src/apache-2/Makefile.am: build of mod_rivet moved again into the directory containing the code
* configure.ac: new symbol RIVET_SOURCE_BASE pointing to <rivet-root>/src/, various fixes,
generation of Makefile.in in both src/apache-2 and src/experimental
* src/Makefile.am: still keeping here the magic symbols triggering build of librivetparser and librivet
build of mod_rivet moved in src/apache-2 and experimental
* src/experimental/mod_rivet.c: dynamic object load implemented for rivet_mpm_worker. Code handling
Tcl threads moved to this new shared lib
* src/experimental/rivet_worker_mpm.c: this file keeps the whole mechanics of handling APR threads
running Tcl interpreters
* src/experimental/mod_rivet.h: new fields added to module globals for function pointers to
rivet_worker_mpm.so
* tclconfig/: new version of scripts
2014-08-04 Massimo Manghi <mxmanghi@apache.org>
* src/common: renaming src/config to a more specific name
2014-07-31: Massimo Manghi <mxmanghi@apache.org>
* src/experimental/mod_rivet.[c|h],rivetChannel.c: better implementation where Tcl interpreters are
running within their own threads communicating to a supervisor. Also implemented APR callback functions
to cleanup memory and interpreters data
* src/config/parse_exec.c: adding this file which is to hold most of model independent code:
Rivet_ParseExecFile, Rivet_chdir_file, Rivet_CheckType, Rivet_ParseExecString
* src/apache-2/mod_rivet.c: Removed code to be common to the experimental module
* src/Makefile.am: now compiling also new files needed to build the module.
* src/rivet.h: adding preprocessor checks to avoid recursive includes
2014-07-14 Massimo Manghi <mxmanghi@apache.org>
* src/experimental/mod_rivet.c: working toy module capable of running Tcl scripts with a worker MPM
* src/experimental/rivetChannel.c: now depending on the thread private data
2014-07-17 Massimo Manghi <mxmanghi@apache.org>
* src/channel/rivetChannel.[c|h]: add preprocessor symbol to prevent multiple includes
2014-07-16 Massimo Manghi <mxmanghi@apache.org>
* src/experimental: add experimental code for threaded module
2014-07-10 Massimo Manghi <mxmanghi@apache.org>
* src/apache-2/apache_config.[h|c]: moved to src/config
* src/apache-2/TclWebapache.c: this file moved temporarily into src/config to separate it from
the specific module implementation
* src/experimental: making room to a new implementation of mod_rivet
* src/channel/rivetChannel.c: the request_rec pointer is passed through another pointer
as this channel is now the only channel handled by mod_rivet and it's shared across virutal hosts
* src/apache-2/mod_rivet.c: now creating only one Rivet channel instance and storing a pointer
to the current request_rec in the structure mod_rivet_globals, as the running the prefork MPM
we can only handle a request at a time.
* src/apache-2/*.tcl: removing obsolete tcl files
2014-07-09 Massimo Manghi <mxmanghi@apache.org>
* m4/ax_split_version.m4: adding macro for version number manipulation
2014-06-22 Massimo Manghi <mxmanghi@apache.org>
* configure.ac: new macros MOD_RIVET_CORE and RIVET_CHANNEL. Macro APACHE_VERSION preserved but not
called anymore
* rivet/init.tcl.in: Add template for rivet/init.tcl
* src/Makefile.am: building mod_rivet with code entirely selected by autoconf defined symbols
* src/apache-2/mod_rivet.c: comments added. Rivet package version depends now on preprocessor
symbol RIVET_TCL_PACKAGE_VERSION
2014-06-10 Massimo Manghi <mxmanghi@apache.org>
* tests/rivet.test: removed lang.test as it was testing just a tautology
2014-06-04 Massimo Manghi <mxmanghi@apache.org>
* doc/images/color-table.png, doc/xml/examples.xml,doc/examples/color-table-tcl: Changing old table.rvt
example in a more enticing colorful table generation
2014-06-03 Massimo Manghi <mxmanghi@apache.org>
* doc/xml/intro.xml: Acknowledgements reworded into a list
* doc/images/: logo has now a transparent background, navigation icons colors turned into a greenish tint
* rivet.xsl,rivet.css: new style based on a green gamut to make pages visually different from Rivet 2.1
2014-06-02 Massimo Manghi <mxmanghi@apache.org>
* VERSION,configure.ac: tagging this code as 2.2.0
* src/rivet.h,src/rivetcmds/rivetCore.c: macro CHECK_REQUEST_REC moved from rivetCore.c to rivet.h
* doc/xml/internals.xml: New section documenting how to extend mod_rivet with new commands written in C
2014-05-22 Massimo Manghi <mxmanghi@apache.org>
* rivet/packages/dio/aida.sql: redifining responsability of class Aida (not to be officially released)
2014-04-17 Massimo Manghi <mxmanghi@apache.org>
* src/: reintegrating modularization branch. Now every subsystem mod_rivet is made of (module,
channel, parser, commands, request multipart handling) can be developed separately
* src/rivetcmds/rivetCore.c: reintroduced handling of the -string argument that disappeared
from Rivet_ParseCmd probably because of the merge with modular.
* src/apache-2/mod-rivet.c: Corrected comments to Rivet_ParseExecString
2014-04-16 Massimo Manghi <mxmanghi@apache.org>
* rivet/packages/dio/aida.tcl,dio_Tdbc.tcl,sql.tcl: more methods implemented in aida.tcl
* doc/xml/commands.xml: new form '::rivet::inspect server' documented
* src/rivetcmds/rivetInspect.c: adding is_virtual flag to dictionary returned by '::rivet::inspect server'
* branches/modular: merging latest changes in trunk
* trunk/src/rivetcmds/rivetInpect.c: adding is_virtual flag to dictionary returned by '::rivet::inspect server'
2014-04-11 Massimo Manghi <mxmanghi@apache.org>
* src/rivetcmds/rivetCore.c: misplaced check on request_rec in Rivet_InspectCmd
* tests/failtest.tcl,failtest.test,checkfail.tcl: adding tests for ::rivet::inspect
2014-04-07 Massimo Manghi <mxmanghi@apache.org>
* tests/failtest.[test|tcl],failcheck.tcl: implementing test for consistent error
handling by commands that are supposed to refuse execution outside of a request processing
* tests/inspect.tcl: implementing test of command '::rivet::inspect script'
* src/rivetcmds/rivetCore.c: typo in command ::rivet::apache_table
2014-04-04 Massimo Manghi <mxmanghi@apache.org>
* tests/failtest.tcl,failtest.test,checkfail.tcl: adding script for commands that must fail
outside of a request processing (to be completed)
* src/rivetcmds/rivetCore.c: comment rephrased
2014-03-30 Massimo Manghi <mxmanghi@apache.org>
* src/rivetcmds/rivetInspect.c: Add function Rivet_CurrentServerRec returning a dictionary of
some field values stored in the server_rec object
* src/rivetcmds/rivetCore.c: Add support for 'server' argument returning the dictionary built
by Rivet_CurrentServerRec
* src/TclWeb.h: adding declaration of function constructor of a TclWebRequest object
* src/apache-2/TclWebapache.c: Add functions TclWeb_NewRequestObject and TclWeb_InitRequest to
reinitialize a TclWebRequest object on each request
* src/apache-2/apache_request.[c|h]: API change for ApacheRequest_new taking now an apr_pool_t
object instance for creating an ApacheRequest oject pointer. Task to reset this object
to initial values is now delegated to ApacheRequest_init.
* src/apache-2/mod_rivet.[c|h]: new field in globals stores the current server_rec object pointer.
This pointer is used in RivetInspect.c to access to field of the object for introspection
2014-03-26 Massimo Manghi <mxmanghi@apache.org>
* doc/xml/commands.xml: wrong example for lassign_array corrected
* src/apache-2/mod_rivet.c: Adding comment explaining the meaning of setting/resetting globals->r as
a way to detect if a script is running in the context of a request processing
* src/rivetcmds/rivetCore.c,rivetInspect.c: Tcl object handling improved. Code simplified and
ap_assert call added in Rivet_CurrentConfDict if there is no handling of a configuration parameter
by Rivet_ReadConfParameter (which should never happen)
* configure.ac, VERSION: version number bumped to 2.1.5
2014-03-16 Massimo Manghi <mxmanghi@apache.org>
* doc/images/Rivetlogo_small.png: removed because already in doc/ and duplicate to home.png
2014-02-28 Massimo Manghi <mxmanghi@apache.org>
* doc/xml/upgrading.xml: Adding Karl's note about upgrading from NeoWebScript
2014-02-24 Massimo Manghi <mxmanghi@apache.org>
* doc/xml/commands.xml: completed reworking of manual page for command ::rivet::inspect.
* .: Preparing RC1 archive for version 2.1.4
2014-02-22 Massimo Manghi <mxmanghi@apache.org>
* doc/xml/commands.xml: further elaboration of the section about command ::rivet::inspect
2014-02-21 Massimo Manghi <mxmanghi@apache.org>
* tests/inspect.[test|tcl]: adding tests for introspection command
2014-02-19 Massimo Manghi <mxmanghi@apache.org>
* src/rivetcmds/rivetCore.c: spurious ref count decrement caused random crashes
* src/rivetcmds/rivetInspect.c: fixed behaviour when inspect is passed with an undefined argument value
* configure.ac: reindented some function to improve readability and editor independence
2014-02-19 Massimo Manghi <mxmanghi@apache.org>
* src/rivetcmds/rivetInspect.c,src/librivet/rivetList.c: removing lines of code commented and unused
* doc/xml/commands.xml: documenting command lremove
* tests/rivetlib.test: adding more tests for lremove
2014-02-11 Massimo Manghi <mxmanghi@apache.org>
* tests/rivetlib.test: adding tests for rivetlib
* rivet/packages/dio/aida.tcl,sql.tcl: new files for development of DIO compatible interface to tdbc
* rivet/rivet-tcl/lassign_array.tcl: removed since already provided in rivetlib
* docs/xml/commands.xml: documenting features of lassign_array.tcl rivetlib version
2014-02-06 Massimo Manghi <mxmanghi@apache.org>
* ChangeLog: timestamps of latest entries of this file carried the wrong year (2013)
* rivet/packages/dio/dio_Mysql.tcl: fixed comment lines placed within the switch construct
that have become incompatibile with Tcl8.6.
* configure.ac: add AC_C_INLINE macro
2014-02-04 Massimo Manghi <mxmanghi@apache.org>
* src/rivetcmd/rivetCore.c: testing globals->r against NULL and in case return a null string
* src/apache-2/mod_rivet.c: using only globals->r to flag a request processing under way
2014-02-03 Massimo Manghi <mxmanghi@apache.org>
* src/apache-2/mod_rivet.c: globals->req had to be set to NULL in Rivet_PerInterpInit!
2014-02-02 Massimo Manghi <mxmanghi@apache.org>
* src/apache-2/mod_rivet.[c|h]: further optimizing code avoiding to
allocate a TclWebRequest structure on every request. This structure
is allocate when the interpreter is initialized and a pointer
stored in rivet globals
* src/rivetcmd/rivetInspect.c: impoved consistence if Tcl objects handling
2014-01-30 Massimo Manghi <mxmanghi@apache.org>
* src/apache-2/mod_rivet.c: this ChangeLog entry is meant to amend the
2014-01-27 entry that missed to point out as small still important change
in mod_rivet.c. Rivet_SendContent is not calling Tcl anymore to coax
command 'info script' to return the current Rivet script full path. This
will soon be solved by adding a new functionality to command '::rivet::inspect'
2014-01-27 Massimo Manghi <mxmanghi@apache.org>
* src/apache-2/apache_config.[c|h]: new file with Apache module configuration
procedures moved here from mod_rivet.c. This code is likely to be Apache 2.x
but totally independent from the running MPM. Therefore it was moved here
to improved size and manageability of mod_rivet.c
* src/apache-2/mod_rivet.c: The module central code, from which configuration
handling procedures were removed
2014-01-08 Massimo Manghi <mxmanghi@apache.org>
* rivet/packages/dio/aida.tcl: adding aida.tcl experimental file
for a DIO compatible interface to TDBC.
* rivet/packages/dio/sql.tcl: now able to produce same basic SQL queries
::DIO::Database class is doing now
2013-12-19 Massimo Manghi <mxmanghi@apache.org>
* rivet/packages/dio/dio_Postgresql.tcl: reindented and tabs converted to spaces
* rivet/packages/dio/sql.tcl: class DIO::Sql now returning basic SELECT SQL statements
2013-12-18 Massimo Manghi <mxmanghi@apache.org>
* rivet/packages/dio/sql.tcl: further developments. Class Sql is now able
to build an abstract representation of a SELECT query
* rivet/packages/dio/dio.tcl: typo in a comment
2013-12-16 Massimo Manghi <mxmanghi@apache.org>
* rivet/packages/dio/sql.tcl: trying to redesign rivet in order to comply with
Tdbc and aiming at making DIO a pure interface to Tdbc dropping the
dependency with DBMS specific drivers
2013-12-13 Massimo Manghi <mxmanghi@apache.org>
* rivet/packages/dio/dio_Tdbc.tcl: first version of Tdbc driver for DIO. This
class is able to execute basic queries and needs further development
2013-12-08 Massimo Manghi <mxmanghi@apache.org>
* configure.ac: version number bumped up to 2.1.4
2013-12-06 Massimo Manghi <mxmanghi@apache.org>
* rivet/packages/dio/dio_Postgres.tcl: minor changes (code indentation revised)
* rivet/packages/dio/dio_Tdbc.tcl: experimental support for the tdbc
abstraction library
* doc/xml/install.xml: the manual still suggested to call make install-packages,
whereas 'make install' does everything now as it was before 2.1.2
2013-12-04 Massimo Manghi <mxmanghi@apache.org>
* src/apache-2/apache_request.c: log message in ApacheRequest___parse()
commented out (Bug #55845)
2013-12-03 Massimo Manghi <mxmanghi@apache.org>
* src/apache-2/mod_rivet.c: Rivet template preprocessor symbols renamed in
the more expressive RIVET_TEMPLATE and RIVET_TCLFILE
* rivet/rivet-tcl/lassing_array.tcl: new command lassing_array taken
from DIO's result set class (inspired by Tclx)
* doc/xml/commands.xml: lassign_array documented in the manual
* rivet/packages/dio/dio.tcl: reformatted during analysis for supporting
tdbc based driver
2013-11-04 Massimo Manghi <mxmanghi@apache.org>
* src/Makefile.am: this Makefile.am is now in charge for building mod_rivet
librivet.so and librivetparser.so. This fixes and problem with the 'distclean'
target and keeps us from further customization of automake (subdir-objects
property)
* src/runtests.tcl: changed path to mod_rivet.so and librivetparser.so
2013-10-15 Massimo Manghi <mxmanghi@apache.org>
* src/rivetcmds/rivetCore.c: 'headers redirect' used to return TCL_RETURN
to force the caller to terminate and interrupt the processing. It didn't
actually worked exactly that way and starting with Tcl 8.6.1 it also failed
returning a Tcl invalid error code (Bug #55583). Turning it into TCL_OK
seems to cure the problem
2013-09-26 Massimo Manghi <mxmanghi@apache.org>
* doc/xml/session.xml: fixed code example indentation
* rivet/packages/calendar.xml: fixed class and tag for calendar banner
2013-09-23 Massimo Manghi <mxmanghi@apache.org>
* rivet/packages/calendar/calendar.tcl: fixed zero length argument list
calling method emit
2013-09-22 Massimo Manghi <mxmanghi@apache.org>
* modular: committing changes from last merge
2013-09-21 Massimo Manghi <mxmanghi@apache.org>
* contrib/tcl.vim: list of subcommands completed
2013-09-20 Massimo Manghi <mxmanghi@apache.org>
* contrib/tcl.vim: Vim's syntax highlighting extension including also
rivet's command set (experimental)
2013-09-18 Massimo Manghi <mxmanghi@apache.org>
* rivet/init.tcl: removed paranoid debugging log messages
2013-09-17 Massimo Manghi <mxmanghi@apache.org>
* src/[parser|apache-2|librivet]/Makefile.am: AM_CPPFLAGS are not
a transparent replacement for INCLUDES at least when a Makefile.am is
in a subdirectory. Placing include directory switches in the target
specific <target>_CPPFLAGS variable
2013-09-15 Massimo Manghi <mxmanghi@apache.org>
* tclconfig/missing: new version of 'missing' taken from automake 1.14
* src/[parser|apache-2|librivet]/Makefile.am: depracated INCLUDES variables
replaces with their recommended counterparts AM_CPPFLAGS
* configure.ac: new message about the notifier failing to start in child
processes after the child processes fork
2013-09-14 Massimo Manghi <mxmanghi@apache.org>
* rivet/packages/calendar/calendar.tcl: too restrictive test on Tcl versione fixed
* rivet/rivet-tcl/parray_table.tcl: also the parray putting out an HTML table
is now escaping SGML characters
* INSTALL: new installation instruction amending the rejected installation
approach done in 2.1.2 and restoring old target 'install' to get everything
moved to their final directory
* doc/xml/install.xml: same for INSTALL
* doc/xml/commands.xml: new 'parse -string' form documented
2013-09-13 Massimo Manghi <mxmanghi@apache.org>
* rivet/packages/dio/dio_Mysql.tcl: attempting to correct detection of
SELECT query by checking if a SELECT keyword exists at the beginning of
query either following a '(' or only space characters (their trimmed away
in any case)
2013-08-30 Massimo Manghi <mxmanghi@apache.org>
* rivet/rivet-tcl/parray.tcl: escaping SGML characters that might appear
in the output to avoid cross scripting
2013-08-29 Massimo Manghi <mxmanghi@apache.org>
* branches/modular: merging latest changes from trunk
2013-08-26 Massimo Manghi <mxmanghi@apache.org>
* configure.ac: expanded warning message about broken implementations
of Tcl when using forks and the event loop
* Makefile.am: target 'install' now depends on targets install-binaries and
install-packages, thus install the whole Rivet code as it did before 2.1.2.
Packagers wanting to separated binary and Tcl code can draw on those 2
targets
* INSTALL,doc/xml/install.xml: changed documentation to reflect the restored
organization of install targets
2013-08-12 Massimo Manghi <mxmanghi@apache.org>
* rivet/packages/form/form2.tcl,form.tcl: form packages called Rivet's command
'::rivet::env' in its unqualified form. Fixed adding the ::rivet namespace
specification.
* src/apache-2/rivetCore.c: errata corrige for entry added on 2013-07-19:
command 'parse -string' superseded test command parsestr, thus removed from
rivetCore.c
2013-08-07 Massimo Manghi <mxmanghi@apache.org>
* ./: merging changes done in trunk
2013-08-07 Massimo Manghi <mxmanghi@apache.org>
* src/apache-2/mod_rivet.c: adding MPM descripting fields to the 'server' array
* configure.ac: warning message about Tcl version not supporting fork correctly
moved to the end of configure.ac, so that it's more readable by the user
2013-08-06 Massimo Manghi <mxmanghi@apache.org>
* rivetcmds/rivetCore.c,rivetInspect.c: moved core commands into this new directory.
Their code is (nearly) independent from Apache version and in future it might be shared
between different versions/branches of the module
* src/apache-2/Makefile.am: changed reference to rivetCore.c and rivetConf.c to
their new position and new names
* src/apache-2/mod_rivet.c: conditional compilation to Tcl_InitIdentifier might
help preserving event loop on Unices where no pthreads_atfork call exists (Bug #55153)
* configure.ac: Tcl version checked to detect when the notifier might
not be working (Tcl < 8.5.15 and Tcl < 8.6.1). In case a warning message is printed
2013-07-19 Massimo Manghi <mxmanghi@apache.org>
* tests/parse.test,parsestring.rvt: adding test for 'parse -string' variant
to Rivet command 'parse'
2013-07-17 Massimo Manghi <mxmanghi@apache.org>
* src/apache-2/mod_rivet.[h|c],rivetCore.c: reverting new command 'parsestr' and
turning string parsing command into the support for the new -string modifier of the
ordinary parse command
2013-07-06 Massimo Manghi <mxmanghi@apache.org>
* src/parser/parserPkgInit.c: commands are created through the RIVET_OBJ_CMD macro
* rivet/packages/tclrivet/tclrivet.tcl: loading the rivetparser library caused
weird side effects and the interpreter failed when this package was required
by a script. It's still to be understood why librivetparser was loaded using
command 'load' in tclrivet.tcl
* src/apache-2/mod_rivet.c: reverting an attempt to include rivetparser
as package required by default.
2013-07-05 Massimo Manghi <mxmanghi@apache.org>
* configure.ac: changed the default path for installation dir
* doc/xml/commands.xml: add manual page for command ::rivet::xml
2013-06-28 Massimo Manghi <mxmanghi@apache.org>
* src/apache-2/mod_rivet.c,rivetCore.c: command 'parsestr' to parse templates stored
in Tcl objects coded
* doc/Makefile.am: 'clean' target made a little terser
2013-06-26 Massimo Manghi <mxmanghi@apache.org>
* Makefile.am: forcing install/unistall targets to recreate pkgIndex.tcl
in order to have a coherent directory of packages actually available
2013-06-24 Massimo Manghi <mxmanghi@apache.org>
* INSTALL: It must be made explicit installation is a two stage operation now
2013-06-24 Massimo Manghi <mxmanghi@apache.org>
* rivet/packages/session/session-class.tcl: two new methods 'load' (loads a
whole package data for a given package and session) and 'clear' (it deletes either
a whole package or a single data like for a session)
2013-06-22 Massimo Manghi <mxmanghi@apache.org>
* src/apache-2/mod_rivet.c: cleanup of unused code in mod_rivet.c. Adding comments
to undocumented functions
* src/parser/rivetParse.c: New TODO comment added
2013-06-12 Massimo Manghi <mxmanghi@apache.org>
* Makefile.am: splitting install targets into 'make install' (mod_rivet.so,
librivet.so,librivetparser.so + Tcl commands in rivet/rivet-tcl) and
'make install-packages' (whole content of rivet/packages), thus decoupling
binary and non binary installs. Notice: 'make install' creates a fully
functional install of Rivet in case packages such as 'form', 'session',
'DIO' aren't needed.
* rivet/rivet-tcl/xml.tcl: Adding svn:keywords Id to svn properties
* doc/xml/install.xml: updating manual to document the new installation command
sequence
2013-06-04 Massimo Manghi <mxmanghi@apache.org>
* tclconfig/* : merging into this branch the latest commits done from trunk
2013-06-03 Massimo Manghi <mxmanghi@apache.org>
* tclconfig/[ltmain.sh,compile,depcomp]: more libtool scripts updated
2013-06-03 Massimo Manghi <mxmanghi@apache.org>
* src/parser/Makefile.am: adding include paths to INCLUDE
* src/Makefile.am: Rivet library build moved to this script
* src/librivet/Makefile.am: Rivet library build removed from this file
2013-06-02 Massimo Manghi <mxmanghi@apache.org>
* src/Makefile.am: including librivet.so build in this file
* src/librivet/Makefile.am: kept for reference but without effective code now
* tclconfig/[install-sh,config.sub,config.guess]: new versions for script used by
the autoconf/automake/libtool toolchain
2013-05-24 Massimo Manghi <mxmanghi@apache.org>
* src/: branching trunk to branches/modular to reorganize mod_rivet in a
way that should enable the development of single components (apache request,
Rivet channel, parser) with minimal branching
2013-05-21 Massimo Manghi <mxmanghi@apache.org>
* src/apache-2/apache_request.c: ApacheRequest___parse further simplified and
made less restrictive about the combination of method and mimetype of the request
* src/apache-2/mod_rivet.c: add debug message in exit handler
2013-05-06 Massimo Manghi <mxmanghi@apache.org>
* src/apache-2/rivetCore.c: call to 'panic' changed to fulfill the hardening
flags that (quite oddly) fail when building against Tcl8.6 on some platforms
or Linux distros
2013-04-30 Massimo Manghi <mxmanghi@apache.org>
* doc/xml/commands.xml: improved entry for ::rivet::var with an explanation
and example provided by Harald
* configure.ac,VERSION: version number bumped to 2.1.2
2013-02-12 Massimo Manghi <mxmanghi@apache.org>
* src/apache-2/mod_rivet.c: To avoid clash on freeing resources Tcl_Finalize
is removed from child process cleanup (Bug #54162)
2013-02-11 Massimo Manghi <mxmanghi@apache.org>
* rivet/packages/dio/dio.tcl: fixing nasty bug introduced with Rivet 2.1. When
method 'store' is updating the call to method update needs a flat list as
last argument, not just a sigle valued list argument
* doc/xml/commands.xml: Improved explanation for command abort_page
* src/apache-2/rivetConf.c: corrected typo in header
* src/apache-2/apache_request.c: new handling of apache requests largely
relaxes checks on the 'Content-Type' header (Bug #53661)
2013-02-02 Massimo Manghi <mxmanghi@apache.org>
* src/apache-2/apache_request.c,src/apache-2/mod_rivet.c: extending request
handling also for PUT and DELETE. Applied patch provided by Jeff Lawson in
bug report #53892
2013-02-01 Massimo Manghi <mxmanghi@apache.org>
* src/apache-2/Makefile.am, src/Makefile.am: removed -v flag from rm command
in install-data-hook: target to avoid incompatibility with same command's
implementation in Solaris (Bug: #54181)
2013-01-28 Massimo Manghi <mxmanghi@apache.org>
* src/apache-2/mod_rivet.[c|h],rivetCore.c: removed hardcoded error code
generated by abort_page and defined in the preprocessor symbol ABORTCODE.
2013-01-25 Massimo Manghi <mxmanghi@apache.org>
* rivet/rivet-tcl/xml.tcl,rivet/rivet-tcl/tclIndex: New command for XML fragments
composition
2013-01-20 Massimo Manghi <mxmanghi@apache.org>
* Makefile.am: added removal of libool created .la files for librivetparser and
librivet
2012-12-30 Massimo Manghi <mxmanghi@apache.org>
* rivet/rivet-tcl/xml.tcl: revised command for simple XML string mark up
2012-12-18 Massimo Manghi <mxmanghi@apache.org>
* src/librivet/rivetPkgInit.c: package version taken from preprocessor symbol
RIVET_VERSION so that it's guaranteed mod_rivet.c will get the right library
version.
* src/apache-2/mod_rivet.c: removed trailing spaces from various lines (offends
some patch management tools such as quilt)
2012-12-17 Massimo Manghi <mxmanghi@apache.org>
* doc/xml/install.xml: fixed link to download page on the website
* rivet/packages/dio/dio.tcl: method store uses internally methods 'insert' or
'update' (depending on the existence of a row having the same keyfield). The
latest version of DIO shipped a 'store' method that returns the very same value
returned either by 'insert' or 'update'. Previous versions of DIO returned
invariably 1, which was undocumented and not very well thought out (handled
errors in 'store' return a -code error, not necessarily 0). Previous behavior
is reinstated (bug #54313)
2012-12-16 Massimo Manghi <mxmanghi@apache.org>
* rivet/packages/session/session-class.tcl: method 'store' had an hardcoded
'parray' the ran when an error occurred. It also printed a message using
'puts' instead of 'debug'
2012-12-15 Massimo Manghi <mxmanghi@apache.org>
* src/apache-2/rivetCore.c: command 'headers' returns a meaningful error in case
a subcommand is invalid
2012-12-12 Massimo Manghi <mxmanghi@apache.org>
* src/apache-2/mod_rivet.c: Tcl_PkgRequire for packages Rivet and rivetlib
are exchanged so that commands in librivet.so can be imported when
they are on the export list and a programmer issues a 'package require
::rivet' (fixes bug #54290)
* rivet/init.tcl: this script is now providing package 'Rivet' instead of
'RivetTcl'. init.tcl initializes the Tcl core of Rivet and a package rivet
has to exists for compatibility with version 2.0 where it was provided
rather pointelessly by librivet.so.
2012-12-03 Massimo Manghi <mxmanghi@apache.org>
* doc/Makefile.am: Manual pages output encoding set to UTF-8
2012-11-13 Massimo Manghi <mxmanghi@apache.org>
* doc/xml/form.xml: subcommand 'checkboxes' documented
2012-11-09 Harald Oehlmann <oehhar@apache.org>
* rivet/packages/form/form2.tcl: Checkboxes with no value and an arbitrary
default value are initialy checked.
*** POTENTIAL INCOMPATIBILITY ***
The default value is not taken as checkbox value any more.
This was IMHO a security hole.
(reported on rivet-dev by Jeff Lawson)
2012-11-05 Harald Oehlmann <oehhar@apache.org>
* rivet/packages/form/form2.tcl: Bug fixed: method textarea did not honor default values.
(reported on rivet-dev by Jeff Lawson)
2012-10-29 Massimo Manghi <mxmanghi@apache.org>
* rivet/packages/session/[session-create-mysql.sql|session-create-sqlite.sql]: index
riv_sess_cache_ix had a incomplete unique key definition that missed the 'package_' column (fixes bug #54063)
2012-10-28 Massimo Manghi <mxmanghi@apache.org>
* doc/xml/commands.xml: Manual entry for makeurl extented to clarify how the
protocol is determined.
2012-10-16 Massimo Manghi <mxmanghi@apache.org>
* doc/xml/directives.xml,doc/xml/commands.xml,doc/xml/install.xml,doc/xml/examples.xml,
doc/xml/request.xml,doc/convert_examples.tcl.in,doc/examples-sgml/hello1.rvt: Trying to
improve the manual revising and extending it
2012-10-01 Massimo Manghi <mxmanghi@apache.org>
* doc/xml/request.xml,doc/xml/install.xml: attempting to improve the documentation
* doc/images/: Adding missing icons
2012-09-30 Massimo Manghi <mxmanghi@apache.org>
* tests/parsepackage.test: changed path to librivetparser.so
2012-09-29 Massimo Manghi <mxmanghi@apache.org>
* rivet/rivet-tcl/xml.tcl: Adding command for simple quick XML fragments generation
2012-09-22 Massimo Manghi <mxmanghi@apache.org>
* rivet/packages/dio/dio.tcl: various methods used as
accessors to some property variables of the class Database were not returning their values
as expeected. This also surfaced a bug in method 'string' where a result object wasn't
used correctly. Method 'count' failed when no keyfield was set. Since it should be possible
to call this method also when there is no keyfield defined private method table_check is
returning specific error codes making possible to catch this error and ignore
it in 'count' (fixed bugs #53733 and #53732)
* rivet/packages/dio/dio_Sqlite.tcl: Class Sqlite did not set the variable 'interface' to
value 'Sqlite' as expected.
2012-09-21 Massimo Manghi <mxmanghi@apache.org>
* doc/README: improved instruction for code examples inclusion into XML manual
* doc/rivet-full.xml: removed
2012-09-18 Massimo Manghi <mxmanghi@apache.org>
* rivet/pkgIndex.tcl: index file regenerated
2012-09-17 Massimo Manghi <mxmanghi@apache.org>
* src/librivet/rivet[Crypt|WWW|List|pkgInit].c,src/parser/rivetParser.[c|h],
src/parser/parserPkgInit.c: files for librivet and the Rivet parser moved into
src/librivet and src/parser.
* src/Makefile.am,src/librivet/Makefile.am, src/parser/Makefile.am: new automake conf files
reflect libraries reorganization.
* src/apache-2/Makefile.am: mod_rivet builds from the newly located parser code. Is it
sensible to let the module depend on a real package (provided by libparser.c)?
* configure.ac: add variable substitution for newly created Makefile.am
2012-09-16 Massimo Manghi <mxmanghi@apache.org>
* tests/runtests.tcl,tests/apachetest.tcl: User and Group directives removed from conffile
template to make test suite independent from the output of command 'id' from which
the values for this parameters were inferred (Bug #53396)
* tests/shorthand.rvt: oddly enough the template output the same line twice.
2012-09-03 Harald Oehlmann <oehhar@apache.org>
* Thank you accepting me as committer
2012-08-19 Massimo Manghi <mxmanghi@apache.org>
* src/apache-2/mod_rivet.c: the module returns now a HTTP_INTERNAL_SERVER_ERROR when a request
namespace cannot be created
2012-08-16 Massimo Manghi <mxmanghi@apache.org>
* src/rivetPkgInit.c: improved namespace structure pointer handling (contributed by
Georgios Petasis)
2012-08-15 Massimo Manghi <mxmanghi@apache.org>
* rivet/packages/dio/dio_Oracle.tcl: fixed method makeDBFieldValue in class Oracle (Bug #53703)
2012-08-15 Massimo Manghi <mxmanghi@apache.org>
* doc/xml/dio.xml: Fixed wrong declariation of 'insert' subcommand in page manual (Bug #53670)
* rivet/packages/dio/dio_Postgresql.tcl: method makeDBFieldValue implemented and tested with
package Sessiona (Bug #53703).
* rivet/packages/session/session-create.sql: file renamed as session-create-postgresql.sql.
Schema tested with package Session.
* Changelog: entry of Aug 12 corrected: the method of Database (dio.tcl) in question was 'store'
not 'fetch'
* rivet/packages/session/session-class.tcl: removed 'conf' variable that could clash with
application code (and in at least one case it did) (Fixes bug #53544)
2012-08-13 Massimo Manghi <mxmanghi@apache.org>
* rivet/packages/dio/dio_Sqlite.sql,rivet/packages/dio/dio_Mysql.tcl: These connector classes
didn't compute correctly the number of seconds as unix timestamp to be returned for comparison
with the same information returned by [clock seconds] (Bug #53703)
* rivet/packages/session/session-class.tcl: special datetime field were registered associated
to the rivet_session and rivet_session_cache names, whereas the class has member variables for
storing these definitions (Bug #53543)
2012-08-12 Massimo Manghi <mxmanghi@apache.org>
* rivet/packages/dio/dio.tcl: Database's class 'store' method was rewritten on a more simple
assumption that methods 'insert' and 'update' know how to actually .... insert and update rows
* rivet/packages/dio/dio_Sqlite.tcl: The class was found to fail in various circumstances
determining the number of rows affected by a query and determining the set of fields in a
table involved by a query. Since a 'select' query is treated in a rather distinctive way
from other SQL queries, a new public variable 'select' was added to the properties of the
class in order to handle consistently the 2 cases within SqliteResult. The number of rows
affected rows is obtained from the 'changes' subcommand of Sqlite3 connector.
* rivet/packages/dio_Mysql.tcl: wrong special field handling fixed
2012-08-11 Massimo Manghi <mxmanghi@apache.org>
* rivet/packages/session/session-create-sqlite.sql: new file with schema of session package tables
for Sqlite.
2012-08-07 Massimo Manghi <mxmanghi@apache.org>
* doc/rivet.css: text in monospace characted made a little smaller
* rivet/packages/form/form.tcl: Workaround to avoid wrong parsing of form data when parameter
values have spaces in them
* src/apache-2/mod_rivet.c: 'server' array uses RIVET_VERSION instead of the lengthy RIVET_PACKAGE_VERSION
2012-07-31 Massimo Manghi <mxmanghi@apache.org>
* rivet/packages/dio/dio_Sqlite.tcl: Add search case for package sqlite3. Add method makeDBFieldValue
to handle time and date special fields support. Add method 'quote' which overrides the same method
in Database, as correct way to escape quotes (') characters for Sqlite is doubling them ('')
2012-07-04 Massimo Manghi <mxmanghi@apache.org>
* doc/examples/download.tcl: The example has been having ever since an error in calling 'source'
instead of 'parse'. The multitude of the userbase never realized.
2012-07-03 Massimo Manghi <mxmanghi@apache.org>
* CHANGES: file emptied from obsolete notes
* src/apache-2/mod_rivet.c: Add UploadDirectory to the list of handled options for RivetUserConf
2012-06-27 Massimo Manghi <mxmanghi@apache.org>
* configure.ac: Version number set as 1.2.0b1
* rivet/packages/form/form.tcl: form package 1.0 taken from branches/2.0
* doc/xml/commands.xml: improved page manual about incr0 being declared deprecated
2012-06-20 Massimo Manghi <mxmanghi@apache.org>
* contrib/form.tcl: Requiring package TclOO making explicit it's needed to run this version of form.tcl
2012-06-01 Massimo Manghi <mxmanghi@apache.org>
* rivet/packages/form/form2.tcl: New form2.tcl providing form 2.0 package (proposed name for
the file)
2012-05-18 Massimo Manghi <mxmanghi@apache.org>
* doc/xml/intro.xml: add acknowledgments for contributions made by Cyril, Jeff and Harald
* doc/xml/commands.xml: add page manual for ::rivet::inspect
* src/apache-2/mod_rivet.c: add handling for Debug, DebugIp and DebugSeparator in
user conf table.
* rivet/rivet-tcl/debug.tcl: Array ::RivetUserConf (which is used to convey control
parameters for the command) is now created on demand using command ::rivet::inspect
* doc/rivet.css: adjustments needed to make characters size consistent and nice looking
2012-05-17 Massimo Manghi <mxmanghi@apache.org>
* doc/xml/examples.xml: "Hello World" example reworked
* rivet/packages/dio/dio.tcl: fixed SQL syntax that would break compatibility with Oracle (fixes
reopened bug #53222)
2012-05-15 Massimo Manghi <mxmanghi@apache.org>
* doc/hello1.rvt: add new "Hello World!" example to explain the new shorthand syntax <?= ... ?>
2012-05-14 Massimo Manghi <mxmanghi@apache.org>
* doc/rivet.xsl,doc/rivet.css,doc/images/[prev.png,next.png,up.png]: new stylesheet and icons for
the page manual
2012-05-13 Massimo Manghi <mxmanghi@apache.org>
* rivet/packages/tclrivet/tclrivetparser.tcl: Tcl parser implements new shorthand echo syntax (closes
bug #53217)
* doc/xml/entities.xml: New manual page for package RivetEntities
* rivet/packages/tclrivet/parse.tcl: auto_path handling improved (closes bug #52898)
* rivet/packages/form/form.tcl: indentation converted to spaces to improve editing across different
editors. Fixed problem with variable clash in constructor. Also removed unneeded [expr ...] in conditions
that prevented byte compiling (Closes bug #52650)
* doc/xml/commands.xml: improved manual entry for 'var list' (Fixes bug #52911)
2012-05-12 Massimo Manghi <mxmanghi@apache.org>
* src/rivetParser.c: add shorthand expression <?= ... ?> for <? puts -nonewline "..." ?> (contributed
by Jeff Lawson, addresses #53217, tclrivetparser still to be fixed)
* tests/shorthand.[test|rvt]: add test of shorthand notation for string output
* rivet/rivet-tcl/cookie.tcl: add support for HttpOnly flag (contributed by Cyril Shtumf,
fixes bug #53224)
* rivet/packages/session/session-class.tcl: support for HttpOnly flag improves security and reduces
the risk of cross-site scripting attacks (contributed by Cyril Shtumf, fixes #52224)
* rivet/packages/dio/dio.tcl: wrong SQL syntax generated in delete method when multiple fields are
used in the selection clause (contributed by Cyril Shtumf, fixes bug #53222)
* rivet/packages/dio/dio_Mysql.tcl: Mysql connection must be checked when connection reference is reused
because it could have dropped (contributed by Cyril Shtumf, fixes #53221)
2012-05-09 Massimo Manghi <mxmanghi@apache.org>
* rivet/rivet-tcl/http_accept.tcl: new command ::rivet::http_accept
* doc/xml/commands.xml: new manual entry for ::rivet::http_accept
* doc/rivet.xml: Add new file entities.xml describing package 'RivetEntities' (only a
stub, to be elaborated)
* doc/xml/entities.xml: New manual page for package 'RivetEntities'
2012-05-08 Massimo Manghi <mxmanghi@apache.org>
* src/rivetPkgInit.c: reinstated safe interpreters initialization
* doc/xml/install.xml: corrections and further elaboration of explanation for
the --disable-import-rivet-commands
2012-05-07 Massimo Manghi <mxmanghi@apache.org>
* src/apache-2/rivetCore.c: new command ::rivet::inspect implementing function
Rivet_InspectCmd
* src/apache-2/rivetConf.c: Ancillary functions for instrospection procedure Rivet_InspectCmd
* src/apache-2/Makefile.am: Added handling of rivetConf.c
* src/apache-2/mod_rivet.c: Handling of configuration directives restricted to meaningful
options when RivetDirConf or RivetUserConf directives are set. An error message is printed
when child process initialization directives are set by RivetDirConf and RivetUserConf.
Rivet_PropagatePerDirConfArrays and Rivet_PropagateServerConfArray functions disabled as the
::rivet::inspect command can work out a better alternative creating the RivetServerConf,
RivetDirConf and RivetUserConf on demand.
* src/apache-2/mod_rivet.h: Added declaration for functions in rivetConf.c
* rivet/rivet-tcl/lassign.tcl: removed, since Tcl 8.5 lassign implements and extends the
same functionalities
2012-04-30 Massimo Manghi <mxmanghi@apache.org>
* rivet/packages/form/form.tcl: Patch provided by Jeff Lawson to manage -label switches.
The package now requires package uuid from Tcllib.
* : Entry of 2012-04-07 amended as the path to mod_rivet.[c|h] was clearly wrong
2012-04-07 Massimo Manghi <mxmanghi@apache.org>
* rivet/apache-2/mod_rivet.[c|h]: One more change to an ap_log_error call suggested
by the compilation hardening flags
2012-03-26 Massimo Manghi <mxmanghi@apache.org>
* rivet/packages/entities.tcl: new package RivetEntities, replacement for tcllib
::html::entities but with no extra dependecies (as a matter of fact it
works without Rivet too)
2012-03-13 Karl Lehenbauer <karl@apache.org>
* configure.ac: Default separate virtual interps to "no".
(--enable-virtual-interps-separation option implies disabled if not set.)
* rivet/packages/form/form.tcl: In the forms package, stop bleeding the
raw value of radio buttons and checkboxes into the generated HTML.
* src/apache-2/mod_rivet.c: Rework ap_log_error calls to include the
mod_rivet module name. Emit debug-level messages for successful
execution of GlobalInitScript and ServerInitScript.
* README.freebsd: Update to reflect the modern world.
* README.configure: Document how to regenerate the configure script, etc.
* tclconfig/depcomp, tclconfig/missing, tclconfig/config.guess,
tclconfig/config.sub, tclconfig/ltmain.sh: Update from newer libtools, etc.
2012-03-08 Massimo Manghi <mxmanghi@apache.org>
* rivet/rivet-tcl/,/rivet/packages/simpledb: various changes suggested by code profiler
(thanks to Harald Oehlmann)
* rivet/packages/tclrivetparse.tcl: wrong handling of swich cases made method 'parse'
unusable
* src/rivet.h: obsolete comment amended
2012-01-16 Massimo Manghi <mxmanghi@apache.org>
* rivet/rivet-tcl/tclIndex.tcl: regenerated with auto_mkindex.
2012-01-15 Massimo Manghi <mxmanghi@apache.org>
* rivet/rivet-tcl/parray_table.tcl: this file was erroneously introduced as
tablearray.tcl. Renamed.
* rivet/rivet-tcl/putsnnl.tcl: experimental putsnnl command rewritten to
improve features and make it more flexible by adding option for padding
with entities.
2012-01-10 Massimo Manghi <mxmanghi@apache.org>
* rivet/rivet-tcl/parray_table.tcl: New command parray_table to print the
content of an array into an HTML table
* rivet/rivet-tcl/putsnnl.tcl: More consistent form for 'putsnnl'. If the
second argument is given and it's an integer then the string is at most <nchars>
characters long. If <nchars> > [string lenghth <output_string>] then the output
is still <nchars> wide. If <spaces> is a positive integer the string is printed
right-aligned, if negative the string is left-aligned
2011-12-26 Massimo Manghi <mxmanghi@apache.org>
* rivet/rivet-tcl/putsnnl.tcl: Add new command 'putsnnl', a wrapper for
'puts -nonewline' with the extra optional feature of prepending the output
with a definite number of spaces (it helps pretty printing of HTML)
2011-12-09 Massimo Manghi <mxmanghi@apache.org>
* src/rivetPkgInit.c,src/parserPkgInit.c: libs now are fully based on stubs and
the tcl version parameter passed with Tcl_InitStubs is the same Tcl version their
linked against. Probably too strict, but a cautious point as we are moving towards
Tcl8.6 and Tcl9, which will probably require recompilation of the whole Tcl software
2011-12-08 Massimo Manghi <mxmanghi@apache.org>
* trunk/: Final commit merging changes to scoping commands in the ::rivet namespace
2011-12-07 Massimo Manghi <mxmanghi@apache.org>
* doc/examples, doc/convert_examples.tcl.in: Add ::rivet namespace to examples and
examples code converter
* doc/examples/*.rvt: removed unneeded sgml chars escaping
* doc/xml/install.xml: removed duplicated entry of a 'configure' switch
2011-12-06 Massimo Manghi <mxmanghi@apache.org>
* rivet/rivet-tcl/tablearray.tcl: new procedure 'tablearray' prints an array content
in an HTML <table> construct. Test procedure, we maybe want to have something more
general for printing also dictionaries.
2011-12-06 Massimo Manghi <mxmanghi@apache.org>
* configure_ac: add new test on Tcl version using AX_VERSION_COMPARE.
2011-12-06 Massimo Manghi <mxmanghi@apache.org>
* doc/xml/request.xml,doc/xml/install.xml: documenting new configure switches
2011-12-05 Massimo Manghi <mxmanghi@apache.org>
* src/apache-2/mod_rivet.c: child init sets also the array module_conf to signal the
compilation flags --enable-rivet-commands-export and --enable-import-namespace-commands
for the benefit of init.tcl
* configure.ac: new macro created to handle --enable-rivet-commands-export and
--enable-import-namespace-commands
* rivet/init.tcl: module_conf signals when commands have to be exported from ::rivet
and when they have to be implicitly imported into the global namespace for compatibility
with previous versions of Rivet.
2011-11-21 Massimo Manghi <mxmanghi@apache.org>
* doc/xml/directives.xml,doc/xml/commands.xml: removed note about 'rivetlib' package
no more needed. Notes about ServerInitScript not having effect when virtual hosts
have their own private slave interpreters.
2011-11-20 Massimo Manghi <mxmanghi@apache.org>
* doc/xml/commands.xml,doc/xml/install.xml: documentation for building Rivet updated.
* configure.ac: corrected help message for --disable-rivet-commands-export
2011-11-20 Massimo Manghi <mxmanghi@apache.org>
* src/rivet.h: Macro definition for Rivet command objects has rolled back to
its previous form and doesn't call Tcl_Export anymore. In case commands are
exported by calling Tcl_Export in rivetCore.c and rivetPkgInit.c
* tests/*: test suite reviewed for new tests
2011-11-16 Massimo Manghi <mxmanghi@apache.org>
* src/apache-2/rivetCore.c: code rationalization. namespace reference will not be
passed to the RIVET_OBJ_COMMAND macro and commands are exported by calling Tcl_Export
on the whole command set in ::rivet. The whole process is controlled by the macro
symbol RIVET_NAMESPACE_EXPORT
* src/rivet.h: only one RIVET_OBJ_COMMAND object exists now. Call to Rivet_WWWInit,
Rivet_CryptInit and Rivet_ListInit haved changed. Rivet namespace pointer in not
passed around anymore and it's handled only in rivetPkgInit.c
* src/rivetPkgInit.c:
2011-11-14 Massimo Manghi <mxmanghi@apache.org>
* configure.ac: new switch --enable-rivet-commands-export to enable/disable
commands in ::rivet namespace
2011-11-12 Massimo Manghi <mxmanghi@apache.org>
* src/apache-2/rivetCore.c: reindented to improve readability.
* doc/xml/commands.xml: typo corrected
* tclconfig/ltmain.sh: new script from recently released libtools
* configure.ac: new macro AC_CONFIG_MACRO_DIR to include macros in m4
2011-10-12 Massimo Manghi <mxmanghi@apache.org>
* debian/*: actually removed from trunk (yesterday it was removed from branches/2.0)
2011-10-11 Massimo Manghi <mxmanghi@apache.org>
* debian/*: removed from trunk and moved into parent directory. Maintaining
scripts and configuration for Debianizing a package in the same package
repository is deprecated and error prone.
2011-10-09 Massimo Manghi <mxmanghi@apache.org>
* debian/*: preparing to move the debian stuff away from
development branches of Rivet. I'm committing the latest
changes done in the process of releasing the Debian package
for 2.0.4
2011-09-26 Massimo Manghi <mxmanghi@apache.org>
* m4/ax_compare_version.m4: add macro for version comparison from the GNU macro archive
2011-09-23 Massimo Manghi <mxmanghi@apache.org>
* src/apache-2/rivetCore.c,src/apache-2/TclWebapache.c: merging changes
made to fix bugs and requests to command 'makeurl', 'load_env' and 'load_headers'
2011-09-07 Massimo Manghi <mxmanghi@apache.org>
* doc/xml/commands.xml: Add existing undocumented commands
- import_keyvalue_pairs
- lempty
- lmatch
- lassign (consider to remove, as it overlaps for name and features
with identical Tcl core command)
- read_file
- wrap
- wrapline
Changed 'makeurl' documentation to account for new features recently committed
2011-09-06 Massimo Manghi <mxmanghi@apache.org>
* src/apache-2/mod_rivet.c: Add Id svn keyword.
* src/apache-2/TclWebapache.c: Command load_env and load_headers now resolve
the array name parameter following the default method (removed
TCL_NAMESPACE_ONLY flag that prevented creation of an array in a
proc's scope). Still default values for the arguments create such arrays
in the ::request namespace
* src/apache-2/rivetCode.c: preprocess macros ENV_ARRAY_NAME and HEADERS_ARRAY_NAME
modified to explicitly put in ::request namespace the default arrays.
Procedure Rivet_MakeURL chages so that command 'makeurl' now accepts
relative paths and prepends them with the value of the SCRIPT_NAME environment
variable. When run without arguments 'makeurl' returns the value in the
SCRIPT_NAME env variable.
2011-06-03 Massimo Manghi <mxmanghi@apache.org>
* tclconfig/ltmain.sh: new version shipped with libtool
2011-06-01 Massimo Manghi <mxmanghi@apache.org>
* tclconfig/libtool.m4: autoconf 2.68 has a new IF..ELSE.. statement in m4 macros and
libtool.m4 needs to get along it. New version copied into tclconfig.
2011-05-09 Massimo Manghi <mxmanghi@apache.org>
* src/apache-2/mod_rivet.c: fixed misleading error message displayed when rivet_abort_script fails
2011-05-05 Massimo Manghi <mxmanghi@apache.org>
* configure.ac: APACHE_VERSION returns an error message for--with-apache-version=1.
* src/apache-1/: removed from trunk
2011-04-14 Massimo Manghi <mxmanghi@apache.org>
* src/Makefile.am,src/apache-2/Makefile.am: Add target install-data-hook with command line for
removing unneeded .la files from target directories
* configure.ac: doc/convert_examples.tcl is generated from template: added to AC_CONFIG_FILES
* debian/changelog,debian/control: changed to reflect improvement in the script for Debian
2011-06-07 Massimo Manghi <mxmanghi@apache.org>
* rivet/init.tcl: because of bug #3216070 of Tcl we cannot preload rivetlib, so it doesn't make
sense to import the rivet namespace, because we cannot have all the command set loaded in and
an import has to be done for them in the application scripts
* rivet/rivet-tcl/incr0.tcl: Tcl8.5 provides identical functionalities, so this command is
now aliased in the interpreter by the native incr command.
* rivet/rivet-tcl/tclIndex: recreated
2011-04-06 Massimo Manghi <mxmanghi@apache.org>
* configure.ac: Added doc/convert_examples.tcl to files created from its .in template
2011-04-03 Massimo Manghi <mxmanghi@apache.org>
* doc/convert_examples.tcl.in,doc/convert_examples.tcl: Added script to convert code examples
from their native form to a sgml escaped form.
* doc/Makefile.am: Target 'examples' added
* doc/xml/install.xml: Expanded --with-apxs explanation.
* doc/README: expanded with instructions for adding new examples to the docs.
2011-04-01 Massimo Manghi <mxmanghi@apache.org>
* doc/: new directory doc/examples-sgml. This is the directory where examples ready for inclusion
in the manual must stay. The directory doc/examples is now meant to keep examples suitable for
actual test and exectution
* doc/convert_examples.tcl: New procedure that check for changes in doc/examples and, if needed,
creates/recreates the corrisponding file in doc/examples-sgml escaping characters
2011-03-03 Massimo Manghi <mxmanghi@apache.org>
* rivet/rivet-tcl/*.tcl: all the commands in here moved into ::rivet namespace. File tclIndex
recreated
* doc/xml/directives.xml,doc/xml/commands.tcl: Documentation changed to reflect the new scoping of
the command set. Commands in rivet-tcl/ not yet documented have been briefly explained with some
examples.
* src/apache-2/mod_rivet.[c|h],src/apache-2/rivetCore.c: changes in trunk merged into the
rivet-namespace branch
2011-03-01 Massimo Manghi <mxmanghi@apache.org>
* src/apache-2/rivetCode.c: 'abort_code' command is now created through the RIVET_CMD_OBJ macro
2011-02-18 Massimo Manghi <mxmanghi@apache.org>
* src/rivet.h,src/apache-2/rivetCore.c,src/rivetPkgInit.c: Core commands namespace is now '::rivet' and
the package provided by the core module is "::rivet". Also package RivetLib was renamed as 'rivetlib'.
2011-02-14 Karl Lehenbauer <karl@apache.org>
* src/apache-2/mod_rivet.c: Only create root interpreter once, not twice.
In Rivet_CopyConfig cache_size and cache_free were getting copied twice.
Only once now.
* src/apache-2/rivetCore.c: Remove unused command var from Rivet_Upload.
Remove unneeded loglevel var from Rivet_LogErrorCmd.
2011-02-14 Massimo Manghi <mxmanghi@apache.org>
* src/apache-2/mod_rivet.[h|c],src/apache-2/rivetCore.c: Removed loading of RivetLib by default. Getting
RivetLib into the module keeps Apache to segfault in other calls. In order to gain access to commands
provided by RivetLib (formerly called Rivet) a 'package require RivetLib' must be in a Rivet script or
in one of the initialization script (e.g. ServerInitScript ChildInitScript or GlobalInitScript). Notice:
RivetLib exports the commands to the '::Rivet' namespace.
* src/rivetCrypt.c, src/rivetWWW.c, src/rivetList.c: they now export their commands to the '::Rivet'
2011-02-11 Massimo Manghi <mxmanghi@apache.org>
* src/apache-2/mod_rivet.[c|h]: new conf scripts rivet_abort_script and rivet_force_script. rivet_abort_script
is run when an abort_page command is called in the page content generation
* src/apache-2/rivetCode.c: add new command abort_code that returns the code passed to abort_page
2011-02-08 Massimo Manghi <mxmanghi@apache.org>
* src/apache-2/rivetCore.c: call to Rivet_InitWWW to include into Rivet's core the commands provided in
src/rivetWWW.c
* src/apache-2/mod_rivet.c: the inclusion into the module of RivetLib through Tcl_PkgRequire proved
to cause segfaults in Rivet_ServerConf. The commands in rivetWWW.c are temporarily loaded by rivetCore.c
* src/apache-2/Makefile.am: build of mod_rivet.so includes also code from src/libWWW.o
2011-02-07 Massimo Manghi <mxmanghi@apache.org>
* branches/rivet-namespace: new branch to experiment with the Rivet namespace and Rivet package
* src/rivetPkgInit.c: Provides RivetLib package now when loaded by mod_rivet. Commands are now
in the ::Rivet namespace
* src/rivet.h: new macro RIVET_OBJ_CMD creates a command in the ::Rivet namespace
and puts the command object on the namespace export list
* src/apache-2/mod_rivet.h: the globals structure now holds a pointer to the Tcl_Namespace object
representing ::Rivet namespace
* src/apache-2/rivetCore.c: commands are now created with the RIVET_OBJ_CMD macro
* rivet/init.tcl: provides package RivetTcl 2.1. This makes possible to consistently peek the
init.tcl associated to the module. Command 'incr0' is now aliased by Tcl standard 'incr'
* rivet/apache-2/mod_rivet.c: Rivet_PerInterpInit loads package RivetTcl 2.1 and package RivetLib 1.2.
the latter ships the commands in rivetWWW.c rivetCrypt.c and rivetList.c
* rivet/rivet-tcl/tclIndex: Command 'incr0' removed (see init.tcl)
2011-01-31 Massimo Manghi <mxmanghi@apache.org>
* configure.ac: default value for directive SeparateVirtualInterps changed to 'yes'.
* VERSION: version number set as 2.1.0r1 ('r' is for 'revision')
* doc/xml/directives.xml: New directive ServerInitScript is documented.
2011-01-23 Massimo Manghi <mxmanghi@apache.org>
* src/apache-2/mod_rivet.[c|h]: Created new ServerInitScript configuration directive: it assigns
rivet_server_init_script with a script run in Rivet_InitHandler after configuration has been built and
before server children are forked. A master interpreter is created in Rivet_InitHandler. Children
interpreters should hopefully be pure clones of this interpreter created by 'fork'
2011-01-09 Massimo Manghi <mxmanghi@apache.org>
* configure.ac: fixed AC_DEFINE_UNQUOTED macro call for definition of proprocessor symbol RIVET_MAX_POST,
an integer valued symbol which was put in quotation marks. File indentation was fixed and tabs replaced with spaces
2010-12-03 Massimo Manghi <mxmanghi@apache.org>
* configure.ac: new macros to set default values of configuration parameters.
* src/apache-2/mod_rivet.c,mod_rivet.h: Default values are set in rivet_config.h through autotools. The Tcl
Rivet environment is now loaded from mod_rivet by calling Tcl_PackageRequire("RivetTcl","1.1"); after auto_path
is properly set. Configuration scripts are now stored in Tcl_Obj objects
* doc/xml/install.xml: Add documentation for new 'configure' switch.
* rivet/init.tcl: the path to RIVETLIB_DESTDIR is added to auto_path in mod_rivet.
2010-12-02 Massimo Manghi <mxmanghi@apache.org>
* debian/libapache2-mod-rivet.*,debian/changelog: removed redundant lines from postist script (Debian package)
* rivet/rivet-tcl/cookie.tcl: add command "cookie unset"
* contrib/form.tcl,contrib/README: add a form.tcl based on TclOO. New README explanatory file
* doc/xml/commands.xml: new command "cookie unset" explained
2010-10-27 Massimo Manghi <mxmanghi@apache.org>
* branches/2_0: changes done in branches 2_0 reintegrated into trunk. This implied the following changes in trunk
* debian/[clean,docs,*.substvars,dirs,files,install]: not needed, hence removed from repository
* debian/[changelog,copyright,rules]: files changed to produce a clean package out of the source tree
* VERSION,configure.ac: version number bumped up to 2.0.2
* doc/rivet-chunk.xsl: obsolete and misplaced copyright statement removed
2010-10-20 Massimo Manghi <mxmanghi@apache.org>
* debian/[clean,install,docs,dirs]: removed because not needed or redundant
* debian/copyright: completed to include also the Tcl license. Added copyright notes for stuff in win/
2010-10-19 Massimo Manghi <mxmanghi@apache.org>
* debian/control,debian/Makefile.am: Minor adjustments to debian/control to fulfill Debian policy
* debian/libapache2-mod-rivet-doc.docs: the 'contrib' directory is installed now in this package.
* src/apache-2/rivetCore.c: In Rivet_ApacheTable the variable table is initialized to NULL to silence a
compilation warning
* doc/Makefile.am: the 'distclean' target must remove the Makefile
* Makefile.am: rivet_config.h removal added to 'distclean-local'
2010-10-18 Massimo Manghi <mxmanghi@apache.org>
* rivet/packages/tclrivet/parse.tcl: add svn:executable property as suggested by the debian consistency scripts
* debian/*: more changes to remove unnecessary files from the binary packages of Debian
2010-10-14 Massimo Manghi <mxmanghi@apache.org>
* debian/: more adjustments in the way of getting a working setup for Debian. Some information was moved to make
it 'package specific'. More tweaking on debian/control and /debian/changelog
2010-10-13 Massimo Manghi <mxmanghi@apache.org>
* src/buildscripts: trying to keep the source tree as tidy as possible. src/buildscripts/* are removed because they were\
then initial and later abandoned Rivet build scripts
* branches/2_0/src/buildscripts: removed also from the branch development
* branches/2_0/debian/*: merging the debian scripts largely rewritten in trunk. Added control files to
build 2 packages for debian (binary module and docs)
2010-10-11 Massimo Manghi <mxmanghi@apache.org>
* tclconfig/config.sub,tclconfig/config.guess: Debian package build system signalled that these 2 files were too old
and suggested to update them with newer versions shipped by automake-1.11
* debian/*: various stuff was changed trying to shape scripts to make debian packages as uneventful as possible
* doc/Makefile.am: The 'clean' target in doc/Makefile was renamed as 'distclean'. HTML files are deleted only when
a deep cleaning is required.
2010-10-07 Massimo Manghi <mxmanghi@apache.org>
* debian/*: various changes that fix some consistency faults in the debian packages
2010-10-06 Massimo Manghi <mxmanghi@apache.org>
* debian/*: most files in this directory have been modified to comply with the latest version of debian packaging
system. Some files were deleted because superseded by others which have been added to produce 2 separate
packages: one for the module and the Tcl library, the other for the html manual.
2010-09-20 Massimo Manghi <mxmanghi@apache.org>
* debian/*: changing some info in files needed by the debian
2010-09-18 Massimo Manghi <mxmanghi@apache.org>
* debian/*: files modified and added in the process to build a debian package
* doc/Makefile.am: comments added. Better target handling
2010-09-15 Massimo Manghi <mxmanghi@apache.org>
* debian/README.Debian, debian/rivet.load: add files needed to build a Debian package
* debian/rules, debian/changelog, debian/control: experimental versions of files needed by .deb packages
2010-09-14 Massimo Manghi <mxmanghi@apache.org>
* doc/html/*: directory removed from repository
* doc/Makefile.am: New targets for creating the doc/html/ directory and copying new or modified graphic files from
doc/images to doc/html/images
2010-08-30 Massimo Manghi <mxmanghi@apache.org>
* doc/images: Graphics displayed in the manual is copied in this directory. This is a first step in the transition
to a manual generation procedure that should achieve a cleaner repository structure
2010-08-26 Massimo Manghi <mxmanghi@apache.org>
* configure.ac: removed AC_DEFINE(BUILD_rivet....) as the tcl.m4 providing TEA 3.9
makes redundant this definition. Argument to TEA_INIT changed accordingly
* tclconfig/tcl.m4: overwritten by the new tcl.m4 and made a couple of adjustments that make it autoreconf/autoheader
friendly.
2010-07-20 Massimo Manghi <mxmanghi@apache.org>
* doc/examples/rivet_web_service.tcl,doc/html/*.html: Improved example of Ajax servlet.
Manual changed accordingly.
2010-07-18 Massimo Manghi <mxmanghi@apache.org>
* src/apache-2/mod_rivet.c: static void ap_chdir_file renamed as static int Rivet_chdir_file. Rivet_chdir_file
returns the value returned by chdir. This value is checked and in case of error the request
aborts with an HTTP_INTERNAL_ERROR and a message is printed in the log file.
* VERSION,configure.ac: version number changes as 2.0.1 (temporarily)
2010-07-13 Massimo Manghi <mxmanghi@apache.org>
* doc/rivet.xml,doc/html/*.html: Latest minor changes before releasing
* VERSION,configure.ac: Release number changed as 2.0.1
2010-07-12 Massimo Manghi <mxmanghi@apache.org>
* branches/2_0: Merge of trunk changes into the 2_0 branch.
2010-07-12 Massimo Manghi <mxmanghi@apache.org>
* rivet/packages/calendar/calendar.tcl: new comments added. Fixed misspelled -errorinfo option
in a return statement.
* rivet/packages/session/session-create.sql: columns 'key' and 'package' are renamed as 'key_" and
'package_'.
* rivet/packages/dio/dio_Postgresql.tcl: fixed typo in variable name
* doc/xml/calendar.xml: More correction made on calendar.xml
* doc/html/*.html: The whole manual has been rebuilt with the latest changes
2010-07-07 Massimo Manghi <mxmanghi@apache.org>
* INSTALL: improved installation instructions before merging trunk into branches/2_0
2010-07-03 Massimo Manghi <mxmanghi@apache.org>
* rivet/package/calendar/calendar.tcl: Add check on tcl version. If Tcl8.4 is being used
we also need 'dict' backport as Calendar uses a dictionary to store some internal
data.
* doc/xml/calendar.xml: Wrong header corrected. Added explicit note about the requirements
of the package
2010-07-03 Massimo Manghi <mxmanghi@apache.org>
* rivet/packages/calendar/calendar.tcl: Fixed indentation in weekdays row
* doc/html/: Manual pages regenerated to include latest changes in section about package Calendar
2010-07-02 Massimo Manghi <mxmanghi@apache.org>
* rivet/packages/calendar/calendar.tcl: Add experimental package Calendar
2010-07-02 Massimo Manghi <mxmanghi@apache.org>
* doc/html/calendar.html, doc/html/xml_calendar.html: Add html manual pages for Calendar
* doc/xml/calendar.xml: more changes to calendar.xml
2010-07-02 Massimo Manghi <mxmanghi@apache.org>
* doc/xml/calendar.xml: Add manual page for package Calendar (package still to be
added to repository)
* doc/xml/form.xml: Page for package 'form' written with a more structured
docbook organization that allows finer styling of a manual page.
* doc/rivet.xsl: Add xsl configurations for elements refsect1,refsect2 and
refsect3
* configure.ac: Add message when building for Apache 1.x
2010-07-01 Massimo Manghi <mxmanghi@apache.org>
* doc/xml/Makefile.am: removed target 'html/rivet.html" from 'docs' depends. The no-chunks version
of the manual can be build running 'make docs-nochunk'
2010-06-30 Massimo Manghi <mxmanghi@apache.org>
* doc/xml/form.xml: Add 'checkbox' subcommand documentation
* doc/html/*.html: Updated manual pages
2010-06-30 Massimo Manghi <mxmanghi@apache.org>
* rivet/packages/form/form.tcl: fixed various methods in package form: 'field' method must
treat checkboxes and radiobuttons alike, so that labels are printed next to the button.
'radiobuttons' specialized method should not propagate the '-labels' switch to the attributes
of the tag.
* doc/rivet.xml: add new documentation in file doc/xml/form.xml
* doc/xml/form.xml: add to repository
* doc/html/form.html,doc/html/form_package.html: add to repository
* doc/html/*.html: new manual pages including the form package
2010-06-22 Massimo Manghi <mxmanghi@apache.org>
* Makefile.am: Rivet install target deletes every pkgIndex.tcl file that might have been
left around in the Rivet directory tree, before calling pkg_mkIndex.tcl to regenerate
the library index file in the root directory.
* rivet/packages/tclrivet/parse.tcl,rivet/packages/commserver/server.tcl: add existence test on
argv variable that wept during the installation process. If not set exits silently (variable is
required for a sensible use of the procedures)
* rivet/packages/tclrivet/tclrivet.tcl: wrong path to librivetparser.[so|dll] corrected
2010-06-19 Massimo Manghi <mxmanghi@apache.org>
* src/apache-2/mod_rivet.c: filled SERVER_CONF variable in the 'server' array with value generated
by the build system of the directory holding the conf files.
This fulfills a TODO comment in the code. The array server is undocumented and is not clear if it was
added for the benefit of the programmer or for debugging of the module.
* src/apache-2/mod_rivet.h: structure definitions beautified and aligned.
2010-05-14 Massimo Manghi <mxmanghi@apache.org>
* BUGS,INSTALL,Changelog: small improvements in the documentation
2010-05-14 Massimo Manghi <mxmanghi@apache.org>
* tclconfig/install-sh: the install-sh script is replaced with the same script shipped with automake-1.11
2010-05-13 Massimo Manghi <mxmanghi@apache.org>
* src/apache-1/TclWebapache.c: call to ap_send_http_headers centralized in TclWeb_SendHeaders
* src/apache-2/TclWebapache.c: bugfix for string assigned to the content_type field that has to
be duplicated to preserve from memory deallocation by Tcl, includes to modules from apache APR
library added, call to ap_send_http_headers centralized in TclWeb_SendHeaders
2010-04-29 Massimo Manghi <mxmanghi@apache.org>
* src/apache-2/apache_multipart_buffer.c: Add include <apr_string.h> to silence a compilation
warning.
* src/apache-2/apache_multipart_buffer.h: set svn property to enable $Id: keyword expansion
* doc/xml/session.xml: Commented line about a 'CookieDomain' command of Session that appears to
be non coded yet. To be added to the TODO file.
2010-04-29 Massimo Manghi <mxmanghi@apache.org>
* configure.ac,VERSION: Pre-branching operations: AC_INIT now uses 2.0.0 as version number
to be used across the build system. Also the file VERSION has been updated to reflect the
release number.
2010-04-27 Massimo Manghi <mxmanghi@apache.org>
* src/apache-1/TclWebapache.c,src/apache-1/rivetCore.c,src/apache-1/mod_rivet.c,
src/apache-1/apache_request.c,src/apache-1/apache_multipart_buffer.c: changes and
additions made for apache 2 added to the code for apache 1.x
2010-04-22 Massimo Manghi <mxmanghi@apache.org>
* rivet/init.tcl: add to auto_path the directory where init.tcl is located, as this
is also the directory for package Rivet
2010-04-19 Massimo Manghi <mxmanghi@apache.org>
* tests/upload.[rvt|test]: fix upload message sent to server. The end boundary
went undetected and Rivet added it to the uploaded file. Thus the problem
affected only the test, not the module. Added delimiter to the returned
message to allow easy spotting of an empty string.
2009-12-08 Karl Lehenbauer <karl@apache.org>
* rivet/packages/form/form.tcl, form.txt: Add new form methods for HTML 5
form elements "color", "date", "datetime", "datetime_local", "email",
"file", "image", "month", "number", "range", "search", "tel", "time",
"url", "week"
2009-11-03 Massimo Manghi <mxmanghi@apache.org>
* src/apache-2/rivetCore.c: in function Rivet_Upload the list of subcommands
had 2 entries for 'tempname" leading Tcl_GetIndexfromObject to mismatch the entry for
the 'names' subcommand with its numerical counterpart.
This caused the child process to segfault when processing a 'upload names' command.
2009-11-02 Massimo Manghi <mxmanghi@apache.org>
* tests/apachetest/apachetest.tcl: apachetest::getallincludes failed to
properly handle glob style file patterns.
2009-09-17 Karl Lehenbauer <karl@apache.org>
* rivet/packages/form/form.tcl, form.txt: Add a new form method, "button",
that's just like "submit" except pressing enter doesn't cause it to be
invoked. Add quick doc, form.txt, on the forms package.
Terminate <option> with </option> in form selectors.
2009-09-15 Karl Lehenbauer <karl@apache.org>
* rivet/packages/form/form.tcl: If the array containing default values
for the form is passed in when the form is created
(for instance: form myform -defaults response -method post),
make sure form classes public variable "defaults" is set to
that array name.
2009-09-03 Karl Lehenbauer <karl@apache.org>
* src/apache-2/rivetCore.c: Add new command, apache_log_error, which
allows consistent logging to the Apache error log file.
2009-06-24 Karl Lehenbauer <karl@apache.org>
* acinclude.m4: Include m4/ax_prefix_config_h.m4 to define the
AX_PREFIX_CONFIG_H macro.
* tclconfig/libtool.m4, tclconfig/config.guess, tclconfig/config.sub,
tclconfig/ltmain.sh: Freshened these files with the latest versions
from libtool.
* configure.ac, tclconfig/tcl.m4, tclconfig/ChangeLog,
tclconfig/README.txt, tclconfig/install-sh: Updated to Tcl Extension
Architecture (TEA) 3.7.
2009-05-05 Karl Lehenbauer <karl@apache.org>
* src/apache-2/mod_rivet.c: When Rivet is shutting down and per-vhost
separate virtual interpreters were in use, the shutdown code deleted
the master interpreter and all of the slave interpreters using
Tcl_DepeteInterp(). This was an error as it should only delete the
mater interpreter, as deleting the master interpreter causes its
slaves to be deleted. It now does this. (Had it checked using
Tcl_InterpDeleted to see if the interpreter was already marked as
deleted, it probably would have been OK.)
* src/rivetChannel.c - update Tcl channel handler to channel version 4.
2009-05-05 Karl Lehenbauer <karl@apache.org>
* Add new Rivet Tcl command,apache_table, which can query, get and set
values in the Apache "notes", "headers_in", "headers_out",
"err_headers_out" and "subprocess_env" tables.
* Add new "upload" option "tempname" that'll return the name of the
temporary file containing the upload.
* When instantiating separate virtual interpreters, postpend an interpreter
count to the self-created slave interpreter name, to keep
Tcl_CreateSlave from failing if two or more virtual hosts have the same
ServerName and don't have a port defined in the ServerName directive.
* Detect and report failure of Tcl_CreateSlave rather than assuming it
succeeded and dereferencing a null pointer when it didn't. Also added
asserts to detect null interpreter pointer.
* Slightly improved error messages when a child init or exit function
fails.
2009-05-01 Karl Lehenbauer <karl@apache.org>
* Rename global request rec pointer from globalrr to
rivet_panic_request_rec, add rivet_panic_pool and
rivet_panic_server_rec, grabbing those values from Rivet initialization
rather than request handling so that they are initialized enough that
Rivet_Panic can use them. (Previously Rivet_Panic or Tcl_Panic at
initialization time caused a null-pointer-dereference segmentation
violation because no request was being served.
In Rivet_Panic, avoid emitting the unparsed URI unless a request is
being processed.
2009-04-27 Karl Lehenbauer <karl@apache.org>
* src/apache-2/mod_rivet.c: In Rivet_SendContent, when checking to see
if the file doesn't exist, check r->finfo.filetype rather than
r->finfo.protection. (The prior check failed to detect that the
Rivet source file did not exist, causing zero length webpages to
be sent rather than 404's.)
2009-01-16 Massimo Manghi <mxmanghi@apache.org>
* Makefile.am: Add DESTLIB variable handling as suggested
by kikusz@gmail.com and accordingly with Automake directives
for local install rules.
2008-12-21 Massimo Manghi <mxmanghi@apache.org>
* src/apache-2/rivetCode.c: add handling for subcommand
'tempname'
2008-12-15 Massimo Manghi <mxmanghi@apache.org>
* src/apache-2/TclWebapache.c: fixed test on configuaration
flag 'upload_files_to_var'
2008-12-11 Massimo Manghi <mxmanghi@apache.org>
* src/apache-2/mod_rivet.c: fixed call to apr_strcat in function
Rivet_ExecuteAndCheck (the corresponding call in the apache-1 code
has been checked and appears to be correct).
* doc/xml/internals.xml: Removed broken external link pointing
to a no more existing gdb tutorial.
2008-12-03 Massimo Manghi <mxmanghi@apache.org>
* doc/rivet.xml: document timestamp is generated with the
EXSLT datetime() function controlled through the <?dbtimestamp ...?>
element. The timestamp now reflects the actual time when the xsl
processor is run, instead of time when the svn commit is carried out.
* doc/rivet.xsl: customization added to make a list of examples
appear at the end of the table of contents.
* doc/html/*.html: manual pages rebuilt and committed to repository
2008-11-21 Massimo Manghi <mxmanghi@apache.org>
* doc/rivet.xml: file broken up into chunks containing the toplevel
sections of the manual. For every file an xml entity was created.
* doc/xml/*.xml: added xml files containing every toplevel section of
the manual.
* doc/Makefile.am: added dependency from xml/*.xml for html pages
generation
2008-11-17 Karl Lehenbauer <karl@apache.org>
* src/apache-2/TclWebapache.c: Make TclWeb_UploadChannel open the
uploaded file and make the file handle available through standard Tcl
mechanisms, removing OS depdendencies.
Make TclWeb_UploadData access the uploaded file through standard
Tcl mechanisms, making the uploaded data available and also removing
OS dependencies.
Add TclWeb_UploadTempname to get the name of the temp file the
uploaded file was saved to.
Include apr_strings.h to remove compiler warning of implicit
definitions of apr_pstrdup and apr_psprintf as well as multiple
warnings about casts to pointer from integer of different size.
Force rsc->upload_files_to_var to be set, temporarily, pending figuring
out why the configuration directive to set that is not working.
* src/apache-2/rivetCore.c: Check return from Tcl_GetIndexFromObj call
in "upload" command processing (Rivet_Upload command). Return an error
when the subcommand (channel, save, data, exists, size, type, filename,
tempname, or names) is invalid.
Add "tempname" option to "upload" command. "upload tempname" will
return the name of the temporary file a file uploaded via a
POST command was saved to.
* src/apache-2/mod_rivet.c: Change "char *" arguments to
Rivet_ServerConf, Rivet_DirConf and Rivet_UserConf to be
"const char *" to bring them in line with what Apache expects,
fixing compiler warnings warnings about "assignment discards qualifiers
from pointer target type".
Use a "void *" argument where expected in calls to AP_INIT_TAKE2
for Rivet_DirConf and Rivet_UserConf and do an assigment to the
Rivet-desired types of rivet_server_conf to eliminate
"initialization from incompatible pointer type" compiler warnings.
Make Rivet_SetScript's script and string arguments be const char *
instead of char *.
* src/apache-2/apache_request.c: Change "char *error[1024]"
to "char error[1024]" to fix "incompatible pointer type" error
in the call to apr_strerror.
* src/apache-2/apache_request.h - make temp_dir be a const char *
instead of a char *.
* src/apache-2/apache_multipart_buffer.c: Add include of apr_strings.h
to remove compiler warning of implicit definitions of apr_pstrcat and
warnings about casts to pointer from integer of different size (which
occurred on 64-bit machines, anyway.)
* doc/rivet.xml: added the "tempname" option to "upload".
2008-11-13 Massimo Manghi <mxmanghi@apache.org>
* src/apache-2/rivetCore.c: In function 'Rivet_Parse' the call
to Tcl_FSStat was turned into the corresponding apr function
'apr_stat'.
This change was motivated by a possibile mismatch between Rivet's
allocation of the structure 'Tcl_StatBuf' and the handling
of the structure done within the Tcl C library.
This seems to have healed a pointer corruption that caused
segfaults when the 'parse' command was executed.
2008-10-07 Massimo Manghi <mxmanghi@apache.org>
* src/apache-2/apache_multipart_buffer.c, src/apache-2/rivetCore.c,
src/apache-2/TclWebapache.c,src/rivetChannel.c,src/rivetCrypt.c:
Inclusion of config.h changed to reflect renaming of config.h.
* configure.ac: new AX_PREFIX_CONFIG_H added to 'configure'
generation. Added switch --enable-display-version for having
Rivet's version printed in Apache signature
* m4/ax_prefix_config_h: added macro for renaming config.h into
rivet_config.h (or whatever we deem a good name for this file).
Preprocessor symbols in this file are also prefixed with RIVET_
* Makefile.am: added handling of the macros in the 'm4' directory.
* src/apache-2/mod_rivet.h: removed definition of preprocessor
symbol for hiding version number in apache logs (feature now
controlled in 'configure')
* src/apache-2/mod_rivet.c: Changed preprocessor symbols that
are now prefixed by 'RIVET_'. Moved misplaced #ifdef APACHE2 test.
Maybe this test is useless as we certainly are building against
APACHE2 when compiling this file
2008-09-06 Massimo Manghi <mxmanghi@apache.org>
* INSTALL: instructions for builing Rivet expanded with
examples taken from real builds for Debian and Slackware.
* src/apache-2/apache_request.[c|h]: removed TODO comments
concerning ap_hard_timeout and ap_kill_timeout as these functions
doesn't not exist anymore in the apache 2.x api.
Added the Content-type as a new argumento to
ApacheRequest_parse_multipart for parts boundary determination.
The correctness of the content type has to be done before calling
in order to do the check only once. Commented declarations of variables
not used. The 'tempname' string is allocated now from the apache pool.
Changed template for temporary file name generation. If
apr_file_mktemp fails a more descriptive error is logged.
* src/apache-2/apache_multipart_buffer.[c|h]: removed line in
multipart_buffer_read that lead the buffer pointer to fail following
the parsing process. Input buffer size changed to a larger and more
common size of 8192 bytes
2008-08-30 Massimo Manghi <mxmanghi@apache.org>
* doc/rivet.[xml|xsl], doc/html/*.html: changed a couple of rule
in rivet.xsl: they basically make example boxes a
bit more flexible for html browsing and made their
background color a bit more "neutral". I also made the character
in them slighly smaller in order to have more
space for code lines.
2008-08-28 Massimo Manghi <mxmanghi@apache.org>
* src/apache-2/mod_rivet.c: using the 'parse' command twice within
the innermost nested level would trick rivet into
treating the second template as a Tcl script.
Condition on the flag 'toplevel' has been reintroduced in the
on the file type (Rivet_ParseExecFile), but the whole mechanism
has to be revised.
Adopting a reverse logic in this test should achive the same
result in more linear way
if (Rivet_CheckType(req->req) == TCL_FILE) {
---> Tcl script
} else {
---> Rivet template
}
2008-07-03 Massimo Manghi <mxmanghi@apache.org>
* src/apache-1/mod_rivet.[c|h]: done modifications needed to replicate
for the apache 1 code the functionalities added to the apache 2
module
2008-07-01 Massimo Manghi <mxmanghi@apache.org>
* src/rivet.h: added macro STRNEQU(s1,s2) which efficiently
compares 2 strings. Unlike STREQU(s1,s2) this new macro compares
at most strlen(s2) characters.
* src/TclWeb.h: added charset field to TclWebRequest. This new
property gets initialized to NULL every time this structure
is instantiated. If used it stores a pointer to a string that
specifies a header value fragment for the page being generated.
* src/apache-2/TclWebapache.c: request_rec is treated as an
opaque structure and the field 'content_type' is set by calling
the ap_set_content_type apache core function
* src/apache-2/mod_rivet.h: a 'honor_header_only_reqs' is added
to the rivet_server_conf for handling of the
HonorHeaderOnlyRequests configuration option
* src/apache-2/mod_rivet.c: Every content_type is checked
for possible charset specifications. When found this is
stored in the TclWebRequest structure to be processed later.
If a script or template doesn't set a content type on its own (with
the 'headers type <ctype>' command) the charset is written in
the http headers. Added support for the 'HonorHeaderOnlyRequests'
switch. Other minor changes include better code formatting
in some functions and commenting out some cruft left around.
2008-01-08 Massimo Manghi <massimo.manghi@unipr.it>
* rivet/packages/dio/dio.tcl: auto_path shouldn't be set
or modified outsite init.tcl
* rivet/init.tcl: We want the Tcl code specific to an
installation to take precedence over other Tcl packages
or other versions of the same stuff. Therefore I put
the references to the rivetlib directory in the first
positions in auto_path.
2008-01-07 Massimo Manghi <massimo.manghi@unipr.it>
* src/apache-2/TclWebapache.c: Fixed timestamp printed in the
DATE_LOCAL and DATE_GMT fields of the environment table.
* src/apache-2/mod_rivet.h: Fixed definitions for RIVET_INIT and
RIVET_DIR. I couldn't fix SERVER_CONF though
2008-01-06 Massimo Manghi <massimo.manghi@unipr.it>
* Makefile.am: target 'uninstall-local' added. Stuff in
RIVETLIB_DESTDIR gets removed upon deinstallation
* rivet/packages/dio/dio_Mysql.tcl: small fixes for
2 methods. In method 'open' the switch '-host' was
not handled. In method 'exec' the handling of 'select'
queries has been changed because the previous method
failed in certain circumstances (queries build with lists)
* src/apache-[1|2]/mod_rivet.c: Status returned by Tcl_EvalFile
is now checked explicitly against TCL_ERROR
* doc/html/*.en.html: Html pages regenerated after changes in rivet.xml
* src/rivetCore.c: Moved into src/apache-1. This file was compiled by
src/apache-1/Makefile.am, whereas src/apache-2 had its own
rivetCore.c module.
* src/apache-1/Makefile.am: Changed to reflect rivetCore's new location.
rivetWWW.c removed from module's compilation: stuff in it has to be loaded
into the interpreter with 'package require Rivet'
* src/apache-2/Makefile.am: Reordered list of files to allow better
comparison with apache-1 build.
2008-01-05 Massimo Manghi <massimo.manghi@unipr.it>
* src/apache-[1|2]/mod_rivet.c: Added comments as per
David Welton's suggestion.
2007-12-03 Valery Masiutsin <val.masutin@gmail.com>
* tests/apachetest/: multiple changes has been made to tests
to get them working with apache2
* src/apache-2/mod_rivet.c, src/apache-2/apache_multipart_buffer.c:
fixes for issues that has been discovered with tests, mostly
there were problems with multipart buffer parsing during POST
* configure.ac: minor issue with apache includes handling has been
fixed
2007-11-18 Massimo Manghi <massimo.manghi@unipr.it>
* doc/rivet.xml: note added to description of
commands listed in the 'Rivet' package.
2007-11-05 Massimo Manghi <massimo.manghi@unipr.it>
* configure.ac: the macro rivet_target_dir was added
to 'configure'. This macro generates a name for the
directory where Rivet libraries must be copied during
the installation phase. User is enabled to change
the default value by feeding 'configure' with the switch
'--with-rivet-target-dir'. This macro defines also the
variable RIVET_TCL_TARGET and calls AC_SUBST on it.
The target directory gets inserted also in the
auto_path list variable of every script run by
the module. Defined configuration symbol
RIVETLIB_DESTDIR in config.h.
* Makefile.am,src/Makefile.am: RIVET_TCL_TARGET variable
propagation.
* src/apache-1/Makefile.am: rivetWWW.c removed from
linking into mod_rivet.so (this requires docs to
be updated, as commands in this file have to be
loaded explicitly using 'package require Rivet')
* src/apache-1/mod_rivet.c: Tcl_DeleteInterp called
upon child exit. ${RIVETLIB_DESTDIR)/init.tcl is
run during the interpreter initialization.
* src/apache-2/mod_rivet.c: Exit handler reenabled,
and Tcl_DeleteInterp called upon child exit.
${RIVETLIB_DESTDIR)/init.tcl is run during the
interpreter initialization. Code clean up in
Rivet_GetConf. Minor changes in order to get rid
of some compilation warnings.
* src/apache-2/TclWebapache.c: Test checking for
null values in the table of environment variables
has been extended to the value field. Failure to
do so caused a child to segfault when rivet was
used in conjuction with dir_module
2007-10-19 Massimo Manghi <massimo.manghi@unipr.it>
* src/apache-2/mod_rivet.c: Included a more correct
statement in aknowledgement of mod_ruby (BSD license)
for the code in ap_chdir_file.
* ChangeLog: the whole batch of patches described in
the previous entry (2007-10-17), came from Valery
Masiutsin <val.masutin@gmail.com>. I forgot to mention
it in this document. My fault.
2007-10-17 Massimo Manghi <massimo.manghi@unipr.it>
* configure.ac: added APACHE2 define to config.h,
added also a message when the apxs program is found.
* doc/Makefile.am: 'clean' target fixed
* src/apache-2/Makefile.am: added -I"." to the INCLUDE symbol
* src/apache-2/mod_rivet.c: Changed function that determines
if this is a request rivet must serve. We now correctly
rely on the module configuration and on the headers handed
on to us by apache. Added also a ap_chdir_file implementation.
This function was dropped by the apache developers: we are
reintroducing it using a code snippet inspired by mod_ruby.
* src/apache-2/apache_request.h: Changed prototype of
ApacheRequest_tmpfile function to return apr_file_t instead
of FILE, also modified ApacheUpload structure
* src/apache-2/apache_request.c: ApacheRequest_tmpfile
rewritten using calls to apr_* functions
* src/apache-2/TclWebapache_c: TclWeb_UploadSave in
a more robust way using apr_* calls
2007-10-14 Massimo Manghi <massimo.manghi@unipr.it>
* doc/rivet.xml: Front page updated, page for the
'load_response' command updated and extended, link to the
Italian and Russian translations removed, html pages
in Italian and Russian removed from repository
* rivet/rivet-tcl: new 'load_response.tcl'. This
version deals in a more consistent way with the case
of parameters that receive multiple values (see docs)
2007-10-12 David N. Welton <davidw@dedasys.com>
* doc/rivet.xml: Fixed "dio" id's.
2007-10-11 David N. Welton <davidw@dedasys.com>
* doc/rivet.xml: Added missing ID's.
* doc/Makefile.am (docs): Removed Russian and Italian
translations from the build.
* doc/norefchunk.xsl, doc/refentry.xsl: Ditch fancy-pants XSLT
stuff.
2007-09-19 Massimo Manghi <massimo.manghi@unipr.it>
* configure.ac: TEA_INIT argument was changed to 3.6 to match
the new TEA version in the tcl.m4. Macro for --with-apache was
simplified. Macro for --with-apxs changed in order to check for
possible multiple version of apxs installed.
Defined compilation parameters generated by apxs.
Same for apr-1-config that returns compilation parameters for apr.
* Makefile.am src/Makefile.am src/apache-[12]/Makefile.am:
changed to handle new symbols and parameters
* src/apache-1/mod_rivet.[hc] rivet version logging enabled:
I enabled this to check if I was loading the expected module
but maybe can be used to generate, at least for the code in
trunk, more refined version numbers to be used in the
development cycle.
* src/rivetCore.c: added call to initialize commands
in rivetWWW.
2007-09-09 David N. Welton <davidw@dedasys.com>
* src/apache-2/Makefile.am: Another patch from Valery Masiutsin
<val.masutin@gmail.com>: Propagated variables from configure.ac,
did some cleanups.
* src/apache-1/Makefile.am: More of Valery's patch: Propogate
variables from configure.ac.
* configure.ac: More of Valery's patch: Separated cases for
apache-1 and apache-2 in APACHE function. Added handling for
apache-2 for platforms i am developing on. Probably it will need
to be unified later. Touched CHECK_APXS a bit. Replaced
APR_INCLUDES function with APR_HANDLING, now we are requiring full
path for apr-1-config and getting cppflags and includes from
it. APR tool has platform specific set of cppflags, just includes
is not enough. Added GET_RIVET_BASE function, which allows us to
get rid of relative pathes in include flags. Rearranged functions
a bit - mostly to find out version of apache we are building for,
before doing any substitutions.
* src/Makefile.am: More of Valery's patch: Propagated variables
introduced in configure.ac.
* src/apache-2/mod_rivet.c (Rivet_TranslateUri): More of Valery's
patch: Changed a bit Rivet_ParseFileArgString a bit, it fixed
segfaults, but still needs some work. I've added apr_pool_t
pointer to parameters we are passing to function.
2007-08-29 David N. Welton <davidw@dedasys.com>
* src/apache-1/Makefile.am: Another patch from Valery correcting
a mistaken application of his patches on my part.
2007-08-27 David N. Welton <davidw@dedasys.com>
* configure.ac: Added missing quote.
* configure.ac: Another patch from Valery, making compilation
smoother on Debian.
* src/apache-1/Makefile.am: Accepted patch from Valery for
improved compilation.
* src/apache-1/apache_multipart_buffer.c: Accepted patch from
Valery to make this file compile.
* tclconfig/tcl.m4: Moved to latest tcl.m4 at Valery's suggestion.
2007-08-22 David N. Welton <davidw@dedasys.com>
* configure.ac: Added patch from Valery Masiutsin
<val.masutin@gmail.com> improving the configure setup.
2006-07-03 Karl Lehenbauer <karl-rivet@sc.com>
* rivet/packages/dio/dio_Postgresql.tcl: when handling a PostgreSQL
result, if numrows is zero, see if cmdTuples
(Pg_result $resultHandle -cmdTuples) contains anything, and if it
does, put that in of numrows, hiding a PostgreSQL interface
quirk from DIO.
2006-06-07 David N. Welton <davidw@dedasys.com>
* rivet/packages/session/session-create-mysql.sql: Minor update
from Massimo Manghi for Mysql 4.
* rivet/packages/session/session-class.tcl: Minor update from
Massimo Manghi.
2006-05-14 David N. Welton <davidw@dedasys.com>
* rivet/packages/session/, rivet/packages/dio/: Added Mysql and
Oracle session creation packages. Updates to dio and session
packages. Modifications to the Mysql driver. Added an Oracle
driver. Thanks to Arnulf Wiedemann (arnulf@wiedemann-pri.de) and
Massimo Manghi (manghi@biol.unipr.it).
2006-02-03 Karl Lehenbauer <karl-rivet@sc.com>
* rivet/packages/dio/[dio,diodisplay].tcl: Uncovered a serious flaw
in DIO -- there is no way to update a row in a way that changes
the key value. As a result, DIOdisplay punts and deletes the
row then reinserts it with the new key. This is not the same
thing as the delete can trigger integrity checks that fail because
of constraints from other tables. Added the somewhat kludgey
update_with_explicit_key method to let us specify the key rather
than having the key always be dug out of the data array (so that
the key in the data array can be different) and altered the
row edit code in DIOdisplay to use this rather than doing the
delete/insert thing.
2006-01-25 Karl Lehenbauer <karl-rivet@sc.com>
* rivet/packages/dio/diodisplay.tcl: When editing, made select boxes
have the current value selected by default.
2006-01-14 Eckhard Lehmann <ecky.l@gmx.de>
* configure.ac: edited for 2 directories src/apache-1 and
src/apache-2 to be the source directory for either Apache1.x or
Apache2.x. Added new autoconf macros to check for apache base
directory, apache/apr include directories (on debian for instance,
they are in /usr/include/apache1.3 resp. /usr/include/apache2 and
/usr/include/apr-0) and apache version ( --apache-version=1 or
--apache-version=2). According to the macros, the sources either
in src/apache-1 or src/apache-2 are compiled.
* src/: put all sources for rivet for Apache1.x into a
subdirectory apache-1, left the Makefile.am unchanged. Copied the
files to a subdirectory apache-2 and started port of rivet to
Apache2.2 with these files.
* Checked in by davidw.
2005-12-12 Karl Lehenbauer <karl-rivet@sc.com>
* rivet/packages/dio/dio.tcl: Reverted change to "store" method
that removed fields from the store array that were part of the
key and took out this behaviour from the update method.
The problem was that "DIO store" or "DIO update" could cause
fields to disappear from the data array as a side effect, and
the caller had no reason to expect that, hence it broke some
code.
2005-11-08 Karl Lehenbauer <karl-rivet@sc.com>
* rivet/packages/dio/dio.tcl: Add new "update" method that works
just like "store" except that it assumes you're doing an update
and, unlike store, does not check to see if the row is already
there or not.
Also modified the "store" method, when doing an update, to not
attempt to change row fields that are specified in the where clause.
* doc/rivet.xml: Documented all undocumented public DIO methods, such
as count, db, forall, interface, insert, makekey, quote, search
and update.
2005-11-08 Pat Thoyts <patthoyts@users.sourceforge.net>
* win/makefile.vc: Update for new version.
* win/Rivet.nsi: Update for new version.
* src/apache_request.c: Cast aways some warnings.
* src/rivetCore.c: Make it work with MSVC (wierd bug).
* src/TclWeb.h: Declare TclWeb_GetRawPost (MSVC complains).
2005-11-03 David N. Welton <davidw@dedasys.com>
* src/Makefile.am (lib_libexecdir): Install everything to
rivet@VERSION@.
* tests/runtests.tcl (runtests_usage): Check for utf-8 environment
- this causes some problems with a number of tests. I'm not sure
precisely why, but it causes a large portion of otherwise
successful tests to choke.
2005-10-31 David N. Welton <davidw@dedasys.com>
* doc/rivet.xml: Woops, fix spelling error: Seperate->Separate.
2005-10-01 David N. Welton <davidw@dedasys.com>
* rivet/pkgIndex.tcl: Added a package index here so that when used
for tests, something exists.
* tests/runtests.tcl: Add local path to TCLLIBPATH, add
CoreDumpDirectory so that we can get any core files generated by
bad tests.
* src/mod_rivet.c (Rivet_PerInterpExit): Run any per-interp child
exit things that need taking care of.
(Rivet_ChildExit): Walk through the list of interpreters and do
any shut down work necessary prior to shutting the whole thing
down.
* src/rivetChannel.c (outputproc): If the AssocData is NULL, we
don't try and output anything. This is probably some residual
data stuck in the channel.
2005-09-29 Karl Lehenbauer <karl-rivet@sc.com>
* rivet/packages/dio/dio.tcl: Fix typo in "DIO insert" method
2005-09-25 Karl Lehenbauer <karl-rivet@sc.com>
* src/rivetCore.c, src/mod_rivet.c, src/mod_rivet.h: Updated
code comments. In particular, every function in src/mod_rivet.c
now has a standard header.
* rivet/rivet-tcl: README, cookie.tcl, debug.tcl, html.tcl,
import_keyvalue_pairs.tcl, import_switch_args.tcl, incr0.tcl,
lassign.tcl, lempty.tcl, lmatch.tcl, load_cookies.tcl,
load_response.tcl, parray.tcl, random.tcl, read_file.tcl,
rivet_command_document.tcl, wrap.tcl: Updated code comments
and added subversion "Id" tags where they weren't present.
2005-09-23 David N. Welton <davidw@dedasys.com>
* genconf.sh: Added autoheaders.
* doc/Makefile.am (docs): Documentation is now its own target -
this means it doesn't get run as part of 'all'.
2005-09-22 Karl Lehenbauer <karl-rivet@sc.com>
* rivet/packages/dio/dio.tcl: "DIO insert" method is much more
efficient than "DIO store" when you know you want an insert and
not an update and now actually works.
* README.MacOSX: GNU autoconf/configure script does not actually
work to make the Rivet module on Mac OS X so the README has been
reverted to show it the old-school way using the Tcl build scripts.
2005-08-21 David N. Welton <davidw@dedasys.com>
* doc/html/rivet.css: CSS tweaks for documentation.
* doc/rivet.xml: Updated build directions to ./configure ; make ;
make install.
* src/rivetCore.c (Rivet_Upload): Fixed a line that is complained
about in newer GCC's (casting lvalues).
2005-08-19 David N. Welton <davidw@dedasys.com>
* src/mod_rivet.c (Rivet_InitTclStuff): Use both the hostname and
the port in creating names for the slave. This fixes a bug where
you have different virtual hosts running on the same server name
but different ports.
2005-08-13 David N. Welton <davidw@dedasys.com>
* tests/apachetest/apachetest.tcl: Make sure we get our own
version of http.tcl. Tcl Feature request 928154 means that we
need our own copy of http.tcl for now.
* tests/runtests.tcl (runtests_usage): Print out an error message
if the arguments aren't right. Fixed paths to load .so files, as
the auto tools put them in a different place.
* tests/apachetest/apachetest.tcl (apachetest::getbinname): Check
to make sure the server is executable.
* src/apache_request.c (ApacheRequest_parse_urlencoded): Patch
from Arnulf Wiedemann to allow XML POST data.
* src/rivetCore.c (Rivet_RawPost): Tcl command implementation to
fetch raw POST data or an empty string if none is available.
* src/apache_request.h: Added element to struct, and accessor
function.
* src/apache_request.c (ApacheRequest_parse_urlencoded): Save a
pointer to the raw data.
* src/TclWebapache.c (TclWeb_GetRawPost): Added a raw POST data
fetcher here.
2005-08-12 David N. Welton <davidw@dedasys.com>
* configure.ac: Bump the version to 0.6.0.
* src/apache_request.c (ApacheRequest_parse_multipart): Added code
from httpd-apreq that supposedly deals with a problem in Opera
file uploads.
2005-08-01 Karl Lehenbauer <karl-rivet@sc.com>
* : abort_page was, for all intents and purposes, completely and utterly
broken -- it forced a return from whatever called it, as if it was
a "return" statement, but it didn't stop evaluating Tcl beyond that,
which was broken, and it discarded output by setting an "aborted"
flag in Apache which, under certain circumstances caused browsers
to render blank pages, apparently related to keep-alive connections.
It now works correctly by causing the interpreter to stop
interpreting, and doesn't mess up keep-alive connections, etc.
How it does this is it unwinds the interpreter by generating an
error with the errorCode set to "RIVET ABORTPAGE". The error
handling code in Rivet checks for this, and if this is received, it
completes the page in the normal manner without executing the
user-registered or built-in error handlers.
One potential incompatibility is that abort_page's execution
can now be caught with Tcl's "catch" routine, although this could
also be considered a feature -- Rivet coders who use "catch"
should check errorCode to see if the first element of the list
is RIVET and the second is ABORTPAGE and either regenerate the
abort_page, pass the error up, or handle it in some custom manner
in their catch handler.
2005-07-15 David N. Welton <davidw@dedasys.com>
* src/mod_rivet.c (Rivet_ServerConf): Use Tcl_GetBoolean on the
*val*, not the *var*. Big difference!
2005-06-14 Karl Lehenbauer <karl-rivet@sc.com>
* configure.ac, src/Makefile.am, tclconfig/config.guess,
config.sub, ltmain.sh: Updated with libtoolize 1.5.18 -- Rivet
now builds cleanly under Mac OS X.
2005-06-06 Karl Lehenbauer <karl-rivet@sc.com>
* rivet/packages/dio/dio.tcl: Delete now returns the number of
records that were deleted rather than just a 1 if it deleted
one or more and a 0 if it didn't. The forall method now does
the forall on the result handle prior to checking for an error,
in case an error occurs inside the forall. From Peter da Silva.
* rivet/packages/dio/dioSQLite.tcl: SQLite implementation for DIO.
From Peter da Silva.
2005-04-14 Pat Thoyts <patthoyts@users.sourceforge.net>
* win/Makefile.vc: Update the makefile and installer script
* win/Rivet.nsi: for the 0.5.0 release.
2005-03-24 David N. Welton <davidw@dedasys.com>
* Makefile.am (EXTRA_DIST): Added the doc, rivet and debian
directories to the distribution.
2005-03-23 David N. Welton <davidw@dedasys.com>
* doc/norefchunk.xsl: Removed chunk-first-section-with-parent and
chunk-all-sections.
* genconf.sh: Updated to use 1.8 autotools.
2005-03-12 David N. Welton <davidw@dedasys.com>
* src/mod_rivet.c (Rivet_SendContent): Use static objects for
scripts that are used for each request, in order to keep reusing
them.
(Rivet_PerInterpInit): Switch back to using Tcl_PkgRequire.
2005-01-08 Karl Lehenbauer <karl-rivet@sc.com>
* rivet/packages/dio/diodisplay.tcl: Accept arguments to the
showform_prolog method that are passed through to the form's
start method. This allows things like naming the form and
accessing the fields from javascript by name.
* rivet/packages/form/form.tcl: Allow start method to take key-value
arguments that will be expressed in the <form> tag.
2005-01-07 Karl Lehenbauer <karl-rivet@sc.com>
* /rivet/packages/dio/diodisplay.tcl: Factor showform prolog and
epilog code into showform_prolog and showform_epilog methods
so that when a derived DIODisplay class is overriding, for
example, an Add or Edit method, the author doesn't have to
dup all of showform's functionality.
* rivet/packages/form/form.tcl: Commented the package.
2005-01-03 David N. Welton <davidw@dedasys.com>
* doc/rivet.xml: Use 'mail-archives' instead of nagoya.
2004-12-22 David N. Welton <davidw@dedasys.com>
* Makefile.am (install-data-local): Added this target to install
the Tcl packages and generate a pkgIndex.tcl file.
2004-12-16 David N. Welton <davidw@dedasys.com>
* src/Makefile.am (lib_libexecdir): Did some rearanging of things
to get the directories in a better state.
* configure.ac: Added TCL_PACKAGE_PATH.
2004-12-14 David N. Welton <davidw@dedasys.com>
* doc/Makefile.am: Added html doc targets.
2004-12-08 David N. Welton <davidw@dedasys.com>
* Makefile.am, configure.ac: Added the doc/ directory.
2004-12-07 Karl Lehenbauer <karl-rivet@sc.com>
* rivet/packages/dio/dio.tcl: "DIO delete" method now return the
number of rows affected.
2004-12-03 Karl Lehenbauer <karl-rivet@sc.com>
* rivet/packages/dio/dio.tcl: Cause fatal database errors such
as bad syntax, etc, to raise a Tcl error in many methods that
used to just return 1 or 0 (like DIO store).
* configure.ac: Remove superfluous commented-out lines
* Add BUGS file. Update STATUS and VERSION files.
2004-12-02 David N. Welton <davidw@dedasys.com>
* Removed libtool - it appears to be under the GPL!
* Removed aclocal.m4 configure Makefile.in src/Makefile.in to avoid
CVS churn.
* configure.ac: Commented out AC_DEFINE(USE_TCL_STUBS), as it was
causing some problems for mod_rivet.so.
2004-12-02 Karl Lehenbauer <karl-rivet@sc.com>
* Collected some build notes in README.configure
* : Clean up presentation of --with-apxs and --with-tclsh and
have them show up when configure --help is run.
* tclconfig/tcl.m4, configure.ac, config.h, src/*.c:
Switch most autoconf-generated elements that get put on
compiler command lines as -DHAVE_NET_ERRNO_H, etc, to put
that stuff in config.h instead. This included altering
all AC_DEFINE and AC_DEFINE_UNQUOTED macros to have three
arguments, where the third argument is a description, so that
autoheader can generate the config.h.in, significantly
decluttering the compiler command lines.
tcl.m4 changes should be fed back to the TEA project,
as well as the technique for using automake to simplify
the build
* Move aclocal.m4 to acinclude.m4 -- we need the aclocal command
to generate acinclude.m4 based on aclocal.m4 and stuff it gleans
from the configure.ac script, etc.
* configure.ac: A path to tclsh is automatically figured out by the
TEA 3.1 build stuff. However it is also possible to override
with --with-tclsh, and the configure script also makes sure
there at least is a file there as well.
* src/configure.ac et al: Get automake, aclocal, and autoconf to run
without complaint, generating the configure script, Makefile.in
files, etc.
* configure.ac: Propagate the NAMEOFEXECUTABLE define via the
autoconf scripts
src/Makefile.am: (same)
* configure: check in configure script, it's hard to make unless
you have everything just right. We will probably revisit this
later.
* src/Makefile.in: (same)
* Makefile.in: (same)
* libtool: Added libtool and friends in tclconfig dir using
libtoolize -- this is what figures out how to build shared
libraries, etc.
2004-12-01 Karl Lehenbauer <karl-rivet@sc.com>
* Update autoconf build to TEA 3.1
* configure.am: Automatically locate apxs in the PATH if it hasn't
been overridden by --with-apxs. Likewise automatically locate
tclsh if it hasn't been overridden by --with-tclsh.
* Add of README.freebsd for FreeBSD.
2004-11-17 Karl Lehenbauer <karl-rivet@sc.com>
* rivet/packages/dio/dio.tcl: Fixed comments incorrectly placed
outside of a switch body.
2004-11-11 Karl Lehenbauer <karl-rivet@sc.com>
* rivet/packages/dio/dio.tcl: Added "insert" method that
doesn't try to see if it's there already all the other
stuff that "store" does.
* doc/rivet.xml: Documentation for above.
2004-11-05 Karl Lehenbauer <karl-rivet@sc.com>
* rivet/packages/session/session-class.tcl: Quote backslashes when
storing so they won't be stripped by the database. Needs to
be tested for MySQL and SQLlite.
2004-11-04 Karl Lehenbauer <karl-rivet@sc.com>
* rivet/packages/dio/*.tcl: Documented the code for
DIO and DIOdisplay.
2004-11-04 David N. Welton <davidw@dedasys.com>
* src/mod_rivet.c (Rivet_ServerConf): Use Tcl_GetBoolean, at
Karl's suggestion.
2004-11-03 David N. Welton <davidw@dedasys.com>
* src/mod_rivet.c (Rivet_ServerConf): Instead of just "on", accept
"yes" and "1" as well.
2004-10-29 Karl Lehenbauer <karl-rivet@sc.com>
* rivet/packages/dio/dio_Mysql.tcl: The "DIO handle" method, which
returns the underlying database's connection handle, now forces
the database connection to be made, if it hasn't already been
made, just like DIO exec.
* rivet/packages/dio/dio_Postgresql.tcl: (same)
2004-09-29 David N. Welton <davidw@dedasys.com>
* src/rivetCore.c (TestpanicCmd): Added command to test panics.
* src/mod_rivet.c (Rivet_Panic): Added panic proc that tries to
log the error to disk.
2004-09-20 David N. Welton <davidw@dedasys.com>
* rivet/packages/rivet_ncgi/rivet_ncgi.tcl: Compatibility layer
for tcllib's ncgi package.
2004-09-20 Karl Lehenbauer <karl-rivet@sc.com>
* src/mod_rivet.c (Rivet_PerInterpInit): Load the init.tcl file
with an explicit path rather than using Tcl_PkgRequire. Previously,
if Rivet was installed with a PREFIX/lib that wasn't already in
Tcl's package search path (auto_path, probably because it was the
same lib directory as Tcl used, typically /usr/local/lib), Tcl
startup is unable to find the RivetTcl package, and Rivet is
unable to start.
2004-09-17 Karl Lehenbauer <karl-rivet@sc.com>
* rivet/packages/rivet/pkgIndex.tcl: Removed. It had a hard-coded
assumption about the shared library extensions (.so). This file is
now generated in the target directory by the install node of make.tcl.
* rivet/pkgIndex.tcl: Removed. It is generated by the make.tcl
install process, as above.
* src/make.tcl: The above changes, specifically the install node
now generates the target rivet/pkgIndex.tcl and
rivet/packages/rivet/pkgIndex.tcl file using pkg_mkIndex,
causing all Tcl-defined and shared-library-defined packages to be
discovered and generated into the pkgIndex.tcl.
2004-09-16 Karl Lehenbauer <karl-rivet@sc.com>
* src/parserPkgInit.c: Added a Rivetparser_SafeInit so the
C-based standalone Rivet parser library can be loaded
from safe interpreters. After inspection, we believe that
rivet::parserivetdata can be loaded into safe interpreters
without compromising their security. rivet::parserivet
definitely cannot be made available to a safe interpreter --
it could be manipulated to read files.
* src/rivetPkgInit.c: Added a Rivet_SafeInit so lib can
be loaded from safe interpreters, which also makes it work
better under Mac OS X.
* src/rivetCrypt.c: Added function header to init routine.
* src/rivetList.c: (same)
* src/rivetWWW.c: (same)
* README.MacOSX: Temporary file to document Mac OS X build quirks.
* src/configure.tcl: If a configuration variable in
tclConfig.sh ever had an equal sign in the "value"
portion of the key=value pair, configure.tcl would
malfunction.
A missing variable caused a variable referencing that
missing variable to be silently dropped. We now
complain, although the right answer is probably to
substitute an empty string for all missing variables.
Still, this way at least gives a hint as to the problem.
* src/Makefile: Add simple rules for "clean", "distclean",
and "install" that simply invoke make.tcl appropriately.
2004-08-07 David N. Welton <davidw@dedasys.com>
* rivet/packages/dtcl/dtcl.tcl (hgetvars): Added code from Arnulf
Wiedemann <arnulf@wiedemann-pri.de> to set up VARS array.
2004-08-03 Pat Thoyts <patthoyts@users.sourceforge.net>
* win/Rivet.nsi: Added a NSIS script. This is used with the
Nullsoft scriptable installer system to create an installer for
Rivet to install onto a Windows system.
* win/makefile.vc: Added htmlhelp and installer targets.
2004-06-25 Pat Thoyts <patthoyts@users.sourceforge.net>
* src/rivetCrypt.c: Fix const-ness of resultBuffer to match
apache's crypt function.
* win/makefile.vc: Fixed the version string to match rivet project
version. Support use of MSVC.NET or VC++Toolkit compilers.
2004-06-04 David N. Welton <davidw@dedasys.com>
* contrib/two-mode-mode.el: Updated two-mode-mode.
2004-06-02 David N. Welton <davidw@dedasys.com>
* src/buildscripts/aardvark.tcl: Use 'Output' instead of puts. It
might be useful were we ever to do something like make an aardvark
GUI.
2004-06-01 David N. Welton <davidw@dedasys.com>
* Following changes by Pat Thoyts <patthoyts@users.sourceforge.net>:
* win/makefile.vc: Updated to deal with the START_TAG END_TAG
macros.
* src/rivetParser.h: Declare missing prototype.
* tests/binary.rvt: The stdout channel under Windows needs to be
told to use translation binary for binary data.
2004-05-18 David N. Welton <davidw@dedasys.com>
* src/make.tcl: Quote Tcl argument.
* doc/rivet.xml: Added clearer instructions for mailing list
subscription.
2004-05-05 Karl Lehenbauer <karl-rivet@sc.com>
* src/rivetWWW.c: Made the escape_string command map spaces
to plus signs (+) rather than %20. They're equivalent and
unescape the same, but the plus signs are visually easier
to take.
2004-05-05 Karl Lehenbauer <karl-rivet@sc.com>
* /rivet/packages/dio/diodisplay.tcl: Got "-type boolean"
working. There's some problem with using a method that
uses configvar to set a var as a method in a class where
the class is being inherited by a subclass that redefines
the variable. I had to substitute "cget -varName" style
to get it to work.
2004-05-05 Karl Lehenbauer <karl-rivet@sc.com>
* /rivet/packages/dio/diodisplay.tcl: Added "-type select"
option to DIOdisplay fields, and a new option, "-values $list"
which takes a list of values to be made available with a form
selector.
2004-05-05 Karl Lehenbauer <karl-rivet@sc.com>
* /rivet/packages/dio/diodisplay.tcl: When adding a new record,
if they've typed anything into the "is" field, set the default
value of the field specified in the "where" part to match.
2004-05-05 Karl Lehenbauer <karl-rivet@sc.com>
* doc/rivet.xml: Documented the escape_string, unescape_string,
escape_sgml_chars, and escape_shell_command functions.
2004-05-04 Karl Lehenbauer <karl-rivet@sc.com>
* rivet/packages/dio/diodisplay.tcl: Added enhancements from
Peter da Silva (peter@taronga.com): Add support for hidden variables.
(This is so that you can have state variables that are maintained by
the function outside of DIOdisplay, retained as you jump through
DIOdisplay.) Added DIORowHeader to the style sheet. Turned the search
table into a navigation bar. Added a filter method that allows you
to edit the display of fields on the fly, for example, you have a
time in integer seconds since 1970 and you can add a filter that
does a "clock format" using -filter, or, for example, it can look
up an IP address from a table.
* rivet/packages/dio/dio.tcl: Added enhancements from
Peter da Silva (peter@taronga.com): New "forall" method will apply
a result across a code body for each record returned in the result
and then delete the result handle, all in one fell swoop.
2004-04-24 David N. Welton <davidw@dedasys.com>
* src/buildscripts/aardvark.tcl (aardvark::runbuildcommand): If
the node doesn't exist, always "rebuild" it.
* src/make.tcl: Make sure make install message is only printed
when the correct target is called.
2004-04-21 David N. Welton <davidw@dedasys.com>
* rivet/packages/dio/pkgIndex.tcl: Add sqlite interface.
* rivet/packages/dio/dio_Sqlite.tcl: Added incomplete sqlite
interface to DIO.
2004-04-14 David N. Welton <davidw@dedasys.com>
* rivet/packages/dio/dio.tcl: Removed mysql and postgres specific
code from main DIO package, which now loads the subclass package
automatically.
* rivet/packages/dio/dio_Mysql.tcl: Added new package to remove
separate mysql DIO interface.
* rivet/packages/dio/dio_Postgresql.tcl: Added new package to
separate postgres DIO interface.
2004-04-12 Andy Doerr <andydoerr@swbell.net>
* rivet/packages/dio/diodisplay.tcl:
- Modified searchBy form field to use the -labels and -values
parallel lists in form.tcl class method (select).
- Modified Search proc to not use FieldTextMap as the search
now does not need to look up the db field name.
2004-04-05 David N. Welton <davidw@dedasys.com>
* tests/docroot1/ tests/docroot2/: Files used to test virtual
hosts with.
* tests/virtualhost.test: New file: tests for virtual hosts.
* tests/apachetest/apachetest.tcl: Require our own version of
http.tcl, due to Tcl feature request #928154 (it's impossible to
set the Host header).
(apachetest::start): We now take 3 arguments. The new one is
'conftext', which is used to write to the test.conf file before
running the test.
* tests/runtests.tcl: Changed test config to add an "Include
test.conf" directive. We can write out our own configs for each
test with that.
* src/mod_rivet.c (Rivet_PerInterpInit): New function that groups
together everything that has to happen when a new interpreter is
created - either the main one, or for virtual hosts.
(Rivet_InitTclStuff): Redid the way virtual hosts are treated
here: make sure there is a unique rivet_server_conf for each one,
either because MergeConfig has been called, or we create one
ourselves.
(Rivet_CreateConfig): We don't initialize objCache and outchannel
members of rivet_server_conf here anymore. They are now taken
care of in Rivet_InitTclStuff.
(Rivet_MergeConfig): Either take care of all members of
rivet_server_conf struct, or include a comment explaining why it's
not there.
(Rivet_ChildHandlers): New function - takes care of either child
init or exit scripts, depending on how it's called.
* doc/rivet.xml: Describe how each RivetServerConf directive
interacts with virtual hosts.
2004-02-26 David N. Welton <davidw@dedasys.com>
* doc/rivet.xml: Added DIODisplay section.
2004-02-25 David N. Welton <davidw@dedasys.com>
* src/rivetParser.h: start/end tags removed from here.
* src/make.tcl: START_TAG and END_TAG are now defined here, so
that they are easier to configure at build time.
* doc/rivet.xml: Initial cut at including DIO docs in the main set
of docs.
2004-02-23 David N. Welton <davidw@dedasys.com>
* LICENSE: Switch to Apache 2.0 License.
2004-02-20 David N. Welton <davidw@dedasys.com>
* src/TclWebapache.c (TclWeb_SetHeaderType): strdup object's
string value so we have our own copy of it.
2004-02-19 David N. Welton <davidw@dedasys.com>
* doc/rivet.xml: Added some additional comments regarding the
installation. Thanks to Tom Krehbiel for the suggestions.
2004-02-17 David N. Welton <davidw@dedasys.com>
* src/make.tcl: Created better dependency system for DocBook docs.
* doc/html/rivet.*.html: Added non-chunked versions of the docs.
* doc/rivet-nochunk.xsl: Change include of docbook.xsl to an
import at the top of the file. Seems to make things work ok.
2004-02-11 David N. Welton <davidw@dedasys.com>
* src/make.tcl: Don't delete rivet packages directory during
install. This used to happen in order to keep things clean, but
people are using this directory for local packages/modifications,
so this is not a good thing to have.
2004-02-06 David N. Welton <davidw@dedasys.com>
* tests/headers.test: Include current version of http package in
result automatically, so as to avoid having to update it by hand.
* tests/apachetest/apachetest.tcl (apachetest::getallincludes):
Create function to fetch a conf file and all the files Included it
from it.
* doc/rivet.xml: Add section for session package.
* doc/rivet.xml: Added SESSION documentation.
* rivet/packages/session/README.txt: Removed text, indicate
HTML/XML docs - I don't want to maintain the same docs in two
places.
* src/make.tcl: Create directory before installing.
2004-01-20 Karl Lehenbauer <karl-rivet@sc.com>
* rivet/packages/dio/diodisplay.tcl: Removed calls to abort_page
when relatively benign conditions like no records matching a
search occur. This allows us to emit all the code we need, like
closing the table (</table>) and emiting our page trailer, etc,
instead of having the page cut off somewhere in the middle.
2004-01-15 David N. Welton <davidw@dedasys.com>
* rivet/rivet-tcl/load_response.tcl (load_response): Fixed a bug
in load_response that was tickled by calling it multiple times.
Thanks to Brad for catching it.
2004-01-15 Brad Morrison <brad@sc.com>
* rivet/rivet-tcl/load_response.tcl: Changed behavior from
appending discovered values to existing elements in the
response array to simple assignment.
2004-01-15 David N. Welton <davidw@dedasys.com>
* rivet/packages/simpledb/simpledb.tcl (simpledb::synctostorage):
Added fix from Massimo Manghi <manghi@biol.unipr.it> for bug in
procedure to write database to disk.
* rivet/packages/simpledb/simpledb.test (populatetables):
Commented out stuff to add into the test later.
2004-01-08 David N. Welton <davidw@dedasys.com>
* src/make.tcl: Added warning to default make.tcl target in order
to encourage people to run ./make.tcl install.
2004-01-08 Karl Lehenbauer <karl-rivet@sc.com>
* src/buildscripts/findapxs.tcl: When the apxs program cannot
be located, the message now mentions that the location of apxs
can also be specified using the "-with-apxs" option on the
command line.
2004-01-05 Karl Lehenbauer <karl-rivet@sc.com>
* rivet/packages/session/*: Checkin of session management code.
This is a from-scratch rewrite of Superconnect's session
management code, donated to Rivet under the terms of the
Apache Software License. See rivet/packages/session/README.txt
for details of what it does and how it works.
2004-01-02 Karl Lehenbauer <karl-rivet@sc.com>
* src/buildscripts/findapxs.tcl: Added /usr/local/bin and
/usr/local/sbin to the directories that Rivet configuration
looks in to find apxs, when the path to apxs wasn't specified
on the configure command line.
Changed findapxs::FindAPXS to generate an error if it couldn't
find a working apxs utility, rather than just returning an empty
string. Previously if apxs could not be found, the error message
emitted by configure.tcl was: "Error in CFLAGS test: couldn't
execute "": no such file or directory" Now it says it couldn't
find the Apache Extension Tool apxs and lists everywhere it looked.
2003-12-20 David N. Welton <davidw@dedasys.com>
* tests/parsepackage.test: Added tests for the Rivet parser
standalone package and pure Tcl Rivet parser.
* INSTALL: Added basic configuration directives to INSTALL file.
* rivet/packages/tclrivet/tclrivetparser.tcl: Added pure Tcl Rivet
parser. This doesn't have all the Rivet commands available, it
just parses a <? ?> style Rivet file into the corresponding Tcl
script.
* src/parserPkgInit.c (Parse_RivetData): We no longer
automatically add the namespace. The user ought to be able to add
that should they so choose. This makes the command more flexible.
* src/rivetParser.c (Rivet_Parser): Removed an unnecessary
Tcl_UtfNext from the parser.
(Rivet_GetRivetFile): Removed useless 'inside' variable from this
function.
* doc/rivet.xml: Add abort_page, no_body and env commands,
reordered the load_* commands.
* doc/rivet.it.xml: Updated author.
* doc/rivet.ru.xml: Updated author.
* doc/rivet.xml: Changed documention author to "The Rivet Team".
* src/rivetCore.c (Rivet_NoBody): Return an error if content has
already been sent.
* src/rivetCore.c: Added fancy headers to all functions.
2003-12-13 David N. Welton <davidw@dedasys.com>
* tests/broken.test: Updated test results for what is actually
returned on error.
* src/rivetParser.c (Rivet_Parser): "export" function in that it's
no longer static.
* src/parserPkgInit.c (Parse_RivetData): New alpha-ish command to
parse data passed to the script.
* src/configure.in.tcl: Merge apxs and Tcl CFLAGS in order to
include what we need from both. Hopefully there won't be any
conflicts.
2003-11-27 David N. Welton <davidw@dedasys.com>
* doc/rivet.xml: Added information about debugging Apache/Rivet.
2003-11-20 David N. Welton <davidw@dedasys.com>
* src/make.tcl: Changed xsltproc lines to deal with new link
styles.
* doc/rivet.xml: Changed links as in Russian translation.
* doc/rivet.it.xml: Changed links as in Russian translation.
* doc/rivet.ru.xml: Changed links to use "en.html" style instead
of "html.en". This will make google pick up the pages.
2003-10-22 David N. Welton <davidw@dedasys.com>
* win/: Numerous updates from Pat Thoyts
<patthoyts@users.sourceforge.net>.
2003-09-30 David N. Welton <davidw@dedasys.com>
* src/rivetCore.c (Rivet_Include): More ref count management.
* src/mod_rivet.c (Rivet_PropagatePerDirConfArrays): Added more
ref count management.
* src/rivetParser.c (Rivet_GetRivetFile): Add ref counting for
'inbuf'.
* src/mod_rivet.c (Rivet_ParseExecFile): Manage ref count for
outbuf better.
(Rivet_SendContent): Clean up 'info script' code.
(Rivet_InitTclStuff): Rework 'if' to eliminate double assignment.
* src/TclWebapache.c (TclWeb_GetEnvVars): Add ref counting for
envvar.
(TclWeb_GetHeaderVars): Fix ref counting for headersvar.
* tests/headers.test: Added test for load_headers.
* src/apache_request.h: Updates from httpd-apreq.
* src/apache_request.c: Updates from httpd-apreq.
2003-09-29 David N. Welton <davidw@dedasys.com>
* rivet/packages/commserver/server.tcl: Exit 1 on failure.
* rivet/packages/commserver/commserver.tcl: Check to make sure the
server is really running before returning from commserver::start.
* rivet/packages/simpledb/simpledb.tcl: Added 'simpledb', although
it's not ready for production use.
* src/mod_rivet.c (Rivet_ChildInit): If we don't have separate
virtual servers, we only need to run the ChildInitScript once. If
we do have interpreters for each virtual server, each one gets to
run the script.
* doc/rivet.ru.xml: Big update of the Russian translation by
Dmitry the Zuryanovich <dtz@XEPb.ru>. Thanks!
2003-09-26 David N. Welton <davidw@dedasys.com>
* src/mod_rivet.c: Spelling check: seperate->separate.
2003-09-24 David N. Welton <davidw@dedasys.com>
* doc/rivet.xml: Mention the global command in the 'internals'
section.
2003-08-30 David N. Welton <davidw@dedasys.com>
* doc/rivet.xml: Added var_qs and var_post cmdsynopsis's.
2003-08-29 David N. Welton <davidw@dedasys.com>
* doc/rivet.xml: Use refentry and sub-elements instead of
variablelist. This is more correct.
* doc/norefchunk.xsl: New file - handle refentries without making
them new files.
* doc/rivet.xsl: Scratch the last changes and go with refentry's
for all commands. This is a more difficult solution to parse, but
in the end is more correct.
* doc/refentry.xsl: New file to handle refentry stuff.
2003-08-28 David N. Welton <davidw@dedasys.com>
* doc/rivet.xsl: Minor changes to look and feel.
* doc/rivet.xml: Added <indexterm> tags for commands, in order to
create the index.
* doc/rivet.xsl: Added XSL to parse <index>, needed to create an
index of commands on the index page.
2003-08-26 David N. Welton <davidw@dedasys.com>
* doc/rivet.xml: Added section to documentation about emacs and
vim modesl for Rivet files.
* src/configure.in.tcl: -with-apxs option no longer takes a
default. It should work that out on its own using the
findapxs.tcl script.
2003-08-23 David N. Welton <davidw@dedasys.com>
* src/configure.in.tcl: Remove test for broken Tcl installations
on FreeBSD and MacOS X. Apparently, things work ok with 8.4.
2003-08-22 David N. Welton <davidw@dedasys.com>
* src/configure.in.tcl: Add test for broken Tcl installations on
FreeBSD and MacOS X.
* doc/rivet.xml: Added installation instructions corresponding to
the new ./configure.tcl system. Ran the spellchecker.
* src/buildscripts/aardvark.tcl (aardvark::runbuildcommand):
Rebuild only if file depended on is newer than the target, rather
than >=. This prevents some files from being remade if make is
run again.
* src/configure.tcl (configure::ProcessOptions): Added 'verbose'
flag to configure.
(configure::test): Exit on tcl failure in test procedures.
(configure::assert): Added assert command. Fail on error or 0.
2003-08-21 David N. Welton <davidw@dedasys.com>
* src/configure.in.tcl: Changed INC variable to use
TCL_INCLUDE_SPEC.
* INSTALL: Updated instructions.
* src/configure.tcl (configure::parsetclconfig): We need access to
previously parsed variables, so we do this in the ::configs
namespace.
2003-08-20 David N. Welton <davidw@dedasys.com>
* src/buildscripts/aardvark.tcl (aardvark::getconfigs): Added new
function to fetch the config info out of configs.tcl.
* src/make.tcl: Removed debinstall target, because we can now
accomplish the same thing by overriding configure options on
make's command line. Removed the configure-style code at the top
of the file.
* src/configure.in.tcl: Specify the variables to test for/create,
as well as some command line options specific to Rivet.
* src/configure.tcl: Added new configure-like system to obtain
information about the environment where Rivet is being compiled.
Running ./configure.tcl creates a file, configs.tcl, with the
its findings. make.tcl now uses those values as its defaults,
unless they are overridden on make.tcl's command line.
2003-08-11 David N. Welton <davidw@dedasys.com>
* src/make.tcl: Added fileutils Tcl package to buildscripts, in
order to utilize the 'install' command.
2003-08-05 David N. Welton <davidw@dedasys.com>
* contrib/rvt.vim: Added contributed vim mode for editing Rivet
files.
* contrib/two-mode-mode.el: Added emacs mode for editing Rivet
files.
2003-07-22 David N. Welton <davidw@dedasys.com>
* doc/rivet.ru.xml: Added lang=ru to article, so that markup like
<note> produces the correct language.
* doc/rivet.it.xml: Added Italian translation of Rivet docs by
Fabio Zanotti <zendune@virgilio.it>.
2003-07-16 David N. Welton <davidw@dedasys.com>
* doc/rivet.xml: Explain example script just a bit more clearly.
* src/make.tcl: Fix up clean target. Use MOD_SHLIB as target
instead of explicit mod_rivet.so.
2003-07-08 David N. Welton <davidw@dedasys.com>
* src/buildscripts/findapxs.tcl: Added /usr/local/sbin as a place
to check for apxs. Thanks to Andy Doerr for pointing out that
this is where it's kept on FreeBSD.
2003-07-07 David N. Welton <davidw@dedasys.com>
* doc/examples/upload.html: Added submit button to file upload
example.
2003-07-05 David N. Welton <davidw@dedasys.com>
* src/rivetWWW.c (snprintf): Added snprintf define from Pat.
* src/rivetParser.h: Added bit of defines for windows builds,
declared some of the functions EXTERN's here.
* src/rivetList.c: Make list commands created here 'static' - Pat.
* src/rivetCrypt.c: Use ap_config.h to grab other header files we
might need, like crypt.h. This is not an ideal solution, because
it adds a dependency we didn't have before. Added change by Pat
to conditionally compile or not the 'Rivet_Crypt' command.
* src/rivet.h: Added EXTERN definitions for functions.
* src/parserPkgInit.c (Rivetparser_Init): Added EXTERN decleration
for win builds.
* win/rules.vc: New file: include file for Microsoft makefile.
* win/rivet.dsp: New file: Microsoft Developer Studio Project
File.
* win/nmakehlp.c: New file: helper for windows building.
* win/makefile.vc: New file: makefile for windows. All from Pat
Thoyts <patthoyts@users.sourceforge.net>.
* doc/examples/vars.html: Use a table to make the form look nicer.
* doc/examples/vars.rvt: Now we display some results.
2003-07-01 David N. Welton <davidw@dedasys.com>
* src/rivetCore.c (Rivet_Upload): Pass the correct element of objv
to TclWeb_UploadSave.
* tests/uploadsave.rvt: New file to test 'upload save'.
* tests/upload.test: New test for 'upload save'.
2003-06-30 David N. Welton <davidw@dedasys.com>
* src/mod_rivet.c (Rivet_ParseExecFile): Use Tcl_FSStat instead of
Tcl_Stat.
* src/rivetCore.c (Rivet_Parse): Use Tcl_FSStat instead of
Tcl_Stat.
2003-06-29 David N. Welton <davidw@dedasys.com>
* doc/rivet.xml: Add IRC reference to the help section of the
manual.
2003-06-23 David N. Welton <davidw@dedasys.com>
* doc/rivet.ru.xml: Updated Russian version to indicate which
version of the original it was based on.
* doc/rivet.xml: Added version string to English version.
2003-06-14 David N. Welton <davidw@dedasys.com>
* doc/rivet.xml: Added CVS Id tag.
* doc/rivet.ru.xml: Added comment to indicate the version of
rivet.xml that the Russian translation is based on.
2003-06-12 David N. Welton <davidw@dedasys.com>
* src/mod_rivet.c (Rivet_ParseExecFile): Rework checks for
.htaccess file changes. This code was causing an obscure bug
where a file would be in the cache twice, thus causing crashes.
* Moved russian translation around again.
* src/TclWebapache.c (TclWeb_GetEnvVars): Use TCL_NAMESPACE_ONLY
here and in TclWeb_GetHeaderVars in order to set the variable in
the correct place.
* src/make.tcl: Added changes to build Russian documentation.
* doc/rivet.xml: Added link to Russian translation.
* doc/rivet.ru_UTF.xml: Added link back to English version.
2003-06-10 David N. Welton <davidw@dedasys.com>
* doc/rivet_utf_ru.xml: Added Russian translation of documentation
by Dmitry Zuryanovich.
2003-06-09 David N. Welton <davidw@dedasys.com>
* doc/rivet.xml: Cleaned up docs about fetching the httpd sources.
2003-05-26 David N. Welton <davidw@dedasys.com>
* src/rivetCore.c (Rivet_Headers): Change error message to better
reflect that there is only one argument to 'headers numeric'.
Thanks to "Dmitry Zuryanovich".
* src/mod_rivet.c (Rivet_ParseExecFile): Updated
Rivet_GetRivetFile and Rivet_GetTclFile to use the right
arguments.
2003-05-24 David N. Welton <davidw@dedasys.com>
* rivet/packages/tclrivet/tclrivet.tcl: Added commands that need
to be filled in.
* tests/runtests.tcl: Use apachetest::need_modules.
* tests/apachetest/apachetest.tcl (apachetest::need_modules): New
proc, utilized to tell the test suite which apache modules are
needed.
2003-05-23 David N. Welton <davidw@dedasys.com>
* src/buildscripts/aardvark.test: Do a version check on gcc. We
used that for the tests, so we might as well be sure we're using
the same version.
* src/make.tcl: Use buildscripts.tcl to load up all the other
scripts we need. Add PARSER_SHLIB as a dependency for the shared
build.
* src/buildscripts/aardvark.test: Updated aardvark tests to
current GCC.
* src/buildscripts/buildscripts.tcl: New file: use this file to
load up all the other scripts.
* src/buildscripts/findconfig.tcl: Moved all the functionality
into parsetclConfig.tcl.
* src/buildscripts/aardvark.tcl: Just source the graph.tcl file
directly instead of dealing with packages. Thanks to Pat Thoyts.
2003-05-22 David N. Welton <davidw@dedasys.com>
* src/rivetParser.c (Rivet_GetRivetFile): API Change: instead of
taking a TclWebRequest argument, we just give this function a
Tcl_Interp, which makes it easier to seperate this code from
Rivet.
* src/mod_rivet.h: STARTING_SEQUENCE and ENDING_SEQUENCE moved to
rivetParser.h, in order to make that file independant of
mod_rivet.h.
* src/make.tcl: Use slightly more descriptive variable names. Add
code to compile librivetparser.so.
* src/parserPkgInit.c: New file. Provides a Tcl extension to the
Tcl parser, so that regular (not running under Apache) scripts can
access it.
* doc/html/rivet.css: Updated a few stylesheet properties to make
the docs look a bit classier.
2003-05-21 David N. Welton <davidw@dedasys.com>
* doc/rivet.xsl: Switch on parameter to use images in HTML output
from docbook.
* doc/rivet.xml: Added c.l.t. newsgroup to resources section.
2003-05-20 David N. Welton <davidw@dedasys.com>
* doc/html/rivet.css: Added CSS file.
* src/make.tcl: Added parameter to xsltproc to link the html
output to a CSS file.
2003-05-14 David N. Welton <davidw@dedasys.com>
* src/make.tcl: Added PKGINDEX to the list of dependencies for
rolling a distribution. Updated STATUS file.
* rivet/packages/commserver/commserver.tcl: Added commserver
package as one potential IPC method.
* src/make.tcl: Target ../VERSION node correctly.
New target $PKGINDEX to automatically generate a top-level (which
is where Tcl searches) package index for all the sub-packages in
the Rivet distribution.
* src/buildscripts/aardvark.tcl (aardvark::runbuildcommand): A few
stylistic changes: [ cmd ] -> [cmd].
2003-05-13 David N. Welton <davidw@dedasys.com>
* doc/rivet.xml: Added a few options - numeric and add to the
header documentation. Removed 'setcookie', which has been
replaced by the 'cookie' command.
* src/make.tcl: Pass [info nameofexecutable] to mod_rivet.c
compilation, in order to make Rivet aware of the location of
tclsh.
* src/mod_rivet.c (Rivet_InitTclStuff): Use name of tclsh
executable passed in via the build script. This isn't really the
name of the executable Rivet is part of (Apache), but I think this
is more useful.
2003-05-11 David N. Welton <davidw@dedasys.com>
* src/apache_request.c: Updated to the latest from the httpd-apreq
package.
2003-04-07 David N. Welton <davidw@dedasys.com>
* src/make.tcl: Make sure that auto_path gets extra stuff at the
beginning, so as not to create problems when using it to fetch
the prefix.
* VERSION: Bump point number for new release.
* src/make.tcl: Use package require to load aardvark.
* src/buildscripts/graph.tcl: This file should provide the
'struct' package.
2003-03-30 David N. Welton <davidw@dedasys.com>
* doc/rivet.xml: Fixed example configuration directive.
2003-03-27 David N. Welton <davidw@dedasys.com>
* src/TclWebapache.c (TclWeb_UploadData): Comment out unused alloc.
* src/rivetWWW.c (Rivet_UnescapeStringCmd): Free memory allocated
with Tcl_Alloc.
(Rivet_EscapeStringCmd): Free memory allocated with Tcl_Alloc.
(Rivet_EscapeSgmlCharsCmd): Free memory allocated with Tcl_Alloc.
(Rivet_EscapeShellCommandCmd): Free memory allocated with Tcl_Alloc.
* src/rivetCrypt.c (Rivet_DecryptCmd): Free memory allocated with
Tcl_Alloc.
(Rivet_EncryptCmd): Free memory allocated with Tcl_Alloc.
2003-03-26 David N. Welton <davidw@dedasys.com>
* Remove index.html and help.html.
* rivet/pkgIndex.tcl: Added index file for RivetTcl package -
i.e. init.tcl.
2003-03-25 David N. Welton <davidw@dedasys.com>
* src/rivetPkgInit.c (Rivet_Init): Bump version number to 1.1.
* src/mod_rivet.c (Rivet_InitTclStuff): Use Tcl_PkgRequire to load
Rivet's init.tcl.
* src/make.tcl: Use Tcl file location instead of Apache-based file
location, in order to use Tcl_PkgRequire to load Rivet's init.tcl.
* rivet/init.tcl: Provide 'RivetTcl' package.
(init): Use [info script] instead of server(RIVET_DIR) variable.
* src/make.tcl: Add a debinstall target as a temporary way to
build .deb files.
* debian/copyright: Added copyright file for debian.
* debian/dirs: Added dirs file that lists directories used by
Rivet on Debian.
* debian/control: Added debian/control file with information about
Rivet for the debian package.
* debian/changelog: Added debian changelog file to track versions
of the debian package.
* debian/rules: Use 'rules' file from mod_dtcl.
2003-03-14 David N. Welton <davidw@dedasys.com>
* src/mod_rivet.c (Rivet_AppendToScript): Don't append
Before/After/Error scripts. Just override them.
(Rivet_UserConf): Switch back to using Rivet_AppendToScript.
(Rivet_SetScript): Change Rivet_AppendToScript to Rivet_SetScript
to reflect the fact that it doesn't always append - specifically,
in After/Before/Error scripts.
* doc/rivet.xml: Use eyebrowse link instead of apachelabs for
mailing list.
2003-03-13 David N. Welton <davidw@dedasys.com>
* src/mod_rivet.h: Backed out extra entries in rivet_server_conf -
they aren't necessary, as the overrides are taken care of for us.
The only things we really need are 1) to use the flag
user_scripts_updated to recompile scripts when UserConf variables
have changed 2) to not append to existing scripts, but instead
create new ones.
2003-03-12 David N. Welton <davidw@dedasys.com>
* src/mod_rivet.c (Rivet_UserConf): Set user_scripts_updated flag.
(Rivet_ParseExecFile): Check and clear flag.
* src/mod_rivet.h: Added user_scripts_updated flag to signal that
UserConf options have been set. This means that we need to
recompile the script.
2003-03-01 David N. Welton <davidw@dedasys.com>
* debian/debian.tcl: Helper file for generating .debs.
2003-02-28 David N. Welton <davidw@dedasys.com>
* src/Makefile (all): Clean out Makefile - force use of make.tcl.
* src/buildscripts/aardvark.tcl (aardvark::runbuildcommand): Use
'w' for shell command pipe, in order to not get broken pipes with
commands that output something to stdout (such as tcl scripts!).
2003-02-21 David N. Welton <davidw@dedasys.com>
* tests/config.test: Test to see if Rivet picks up changes in
".htaccess" files.
* tests/README: Add descriptions of the various tests.
* src/buildscripts/aardvark.tcl (aardvark::Nodes): Add command to
return list of all nodes.
* doc/rivet.xml: Add some information on the precedence of the
different Conf options. Change information about DirConf - it
isn't allowed in .htaccess files.
2003-02-19 David N. Welton <davidw@dedasys.com>
* src/buildscripts/aardvark.test: Add test script and files for
aardvark system.
* src/buildscripts/graph.tcl: Include latest 'graph.tcl' from
upstream.
* src/make.tcl: We no longer force 'tcl' and 'sh' to take only one
argument. In the case where we aren't forcing evaluation later
with {}, this is nicer looking, as we don't have to quote
everything with "".
2003-02-12 David N. Welton <davidw@dedasys.com>
* src/mod_rivet.c: Mirror Craig Huckabee's mod_dtcl.c changes:
- Use TCL_DECLARE_MUTEX to create the mutex, and change the mutex
lock/unlock calls.
- Remove the 'load only once' stuff from TclInitStuff.
- InitTclStuff can now only be called from Child Init.
2003-01-17 David N. Welton <davidw@dedasys.com>
* Added logos.
2003-01-08 David N. Welton <davidw@dedasys.com>
* src/mod_rivet.c (Rivet_ChildInit): Patch from Karl Lehenbauer to
print out errorInfo upon ChildInit failure.
2003-01-07 David N. Welton <davidw@dedasys.com>
* src/TclWebapache.c (TclWeb_UploadData): Fix from Holger Zeinert
that makes file uploads work on windows.
2002-12-30 David N. Welton <davidw@dedasys.com>
* doc/examples/upload.html: Changed .ttml to .rvt - thanks to
Holger Zeinert for catching this.
2002-12-18 David N. Welton <davidw@dedasys.com>
* doc/rivet.xml: Noted the var_qs/var_post changes in the
documentation.
2002-12-17 David N. Welton <davidw@dedasys.com>
* tests/post.test:
* tests/post.rvt:
* tests/get.test:
* tests/get.rvt: Added tests for David Brancato's var_qs and
var_post improvements.
* src/TclWebapache.c: Made "ugly" for loops into while loops.
Created macro to set up loop parameters correctly.
2002-12-14 David N. Welton <davidw@dedasys.com>
* src/TclWebapache.c: Redid indendation.
* src/rivetCore.c: Implemented Tcl commands (via objv[0]) to
retrieve variables from different, specified sources (query
string, POST). (David Brancato).
* src/mod_rivet.h: Added defines for variable sources. (David
Brancato).
* src/apache_request.c: Added functions to get query and post
params. (David Brancato).
* src/TclWebapache.c: Implemented TclWeb.h API change. (David
Brancato).
* src/TclWeb.h: Changed API to include a source option in order to
indicate the origin (query string, POST) of a variable. (David
Brancato).
2002-12-13 David N. Welton <davidw@dedasys.com>
* src/mod_rivet.c (Rivet_InitTclStuff): Apache actually loads all
the modules twice, just to see if it can. This is a pain,
because things don't seem to get completely cleaned up on the
Tcl side. So this little hack should make us *really* load only
the second time around.
2002-12-10 David N. Welton <davidw@dedasys.com>
* table.png: Transformed table.png so that it ought to display
correctly on older(?) browsers. Thanks to Elchonon Edelson for
his help.
2002-12-09 David N. Welton <davidw@dedasys.com>
* src/mod_rivet.c (Rivet_SendContent): Switched from EvalObj to
EvalObjEx.
(Rivet_SendContent): EXPERIMENTAL: added Mutex locks on
SendContent, in order to keep windows safe. This needs testing
out!
2002-12-04 David N. Welton <davidw@dedasys.com>
* src/TclWebapache.c (TclWeb_GetEnvVars): Put DecrRefCount back in
- must have taken it out by mistake while hunting a previous
memory leak.
2002-11-23 David N. Welton <davidw@dedasys.com>
* src/mod_rivet.c (Rivet_SendContent): Set up information for
[info script] by using r->filename.
2002-11-19 David N. Welton <davidw@dedasys.com>
* doc/examples/table.rvt: Fixed up format operation to make nicer
tables.
2002-11-18 David N. Welton <davidw@dedasys.com>
* cvsversion.tcl (main): Added catch to make sure that VERSION has
something in it and isn't.
2002-11-09 David N. Welton <davidw@dedasys.com>
* doc/rivet.xml: Make docs reflect behavior of 'var get foobar'
when foobar doesn't exist - "" is returned.
* tests/apachetest/apachetest.tcl: Updates to testing utility
procedures.
2002-11-04 David N. Welton <davidw@dedasys.com>
* tests/get.test: Backed out changes to 'var get': no longer
throws an error if the variable does not exist, but instead
returns "". Use 'var exists' to see if it really exists or not.
* src/mod_rivet.c (Rivet_ChildExit): Add call to Tcl_Finalize.
This still needs more investigation.
* tests/upload.test: Added proper end boundary to upload test.
* src/apache_*: New apache request code from upstream.
2002-10-29 David N. Welton <davidw@dedasys.com>
* src/rivetWWW.c (Rivet_EscapeStringCmd): Eliminate warning on
Solaris by casting a char to an int.
2002-10-28 David N. Welton <davidw@dedasys.com>
* src/rivetCore.c (Rivet_Include): Changed Tcl_Channel name to
tclstdout to avoid any conflicts with the real stdout.
2002-10-23 David N. Welton <davidw@dedasys.com>
* doc/rivet.xsl: Use <pre> tag for source code examples.
2002-10-22 David N. Welton <davidw@dedasys.com>
* src/TclWebapache.c (TclWeb_StringToUtf): One more CONST84 - now
we pass the tests!
2002-10-21 David N. Welton <davidw@dedasys.com>
* src/*.c: "CONST"ification. See http://mini.net/tcl/3669 for
more information.
* src/: Minor build script updates.
2002-10-20 David N. Welton <davidw@dedasys.com>
* doc/rivet.xml: "make" needed to be "make.tcl". Thanks to Makoto
SATOH.
2002-10-18 David N. Welton <davidw@dedasys.com>
* tests/get.test: Added tests for new "var get" behavior.
* doc/rivet.xml: Documented new "var get" behavior.
* src/rivetCore.c (Rivet_Var): Added ?default? option to "var
get".
* doc/examples/: Added examples for XML document.
* doc/rivet.xml: Several examples of how to use Rivet.
2002-10-17 David N. Welton <davidw@dedasys.com>
* doc/rivet.xml: Added Entities to deal with included files. This
makes it easier to correctly format the source code that is to be
included.
2002-10-09 David N. Welton <davidw@dedasys.com>
* src/buildscripts/findapxs.tcl: Added /usr/sbin/ at the request
of David Brancato, who notes that Redhat often locates apxs there.
2002-10-02 David N. Welton <davidw@dedasys.com>
* doc/rivet.xml: Added 'Introduction' section.
2002-09-29 David N. Welton <davidw@dedasys.com>
* doc/rivet.xml: Reworked several elements to better utilize
docbook.
* doc/rivet.xsl: Major reworking of several elements, including
group and arg. Added lots of style changes.
* src/make.tcl: Add commands and dependencies to build extensions
documents without chunks, and the main Rivet docs in chunks
(seperate HTML files are output).
* doc/rivet.xml: Updated docs to reflect new Apache directives.
2002-09-27 David N. Welton <davidw@dedasys.com>
* src/mod_rivet.c (Rivet_InitTclStuff): Change default CacheSize
to MaxRequestsPerChild / 5, which should still be plenty, but will
waste less space.
* src/rivetCore.c (Rivet_Include): "include" command now saves
channel encoding/translation, outputs the included file to stdout
with binary translation/encoding, and then resets the original
settings. Fixes problem with EUC-JP characters in included
files. Thanks to Makoto SATOH for his help in finding this.
* tests/lang.test: Added file to test LANG setting in server, to
check character encodings.
* tests/parse.test: Added EUC-JP characters to test that they come
through ok.
* tests/include.test: Added EUC-JP characters to test that they come
through ok.
2002-09-11 David N. Welton <davidw@dedasys.com>
* src/TclWebapache.c (TclWeb_InitEnvVars): Don't do an
ap_clear_table on the environmental variables. The include module
no longer does this, and neither does PHP, so I guess it's safe to
remove, and it's useful for users of modules like mod_uniqe_id.
2002-09-08 David N. Welton <davidw@dedasys.com>
* src/TclWebapache.c: Fix up ObjSetVar2 use.
* src/mod_rivet.c: Fix up another instance of ObjSetVar2.
2002-09-07 David N. Welton <davidw@dedasys.com>
* src/mod_rivet.c (Rivet_PropagatePerDirConfArrays): Do the right
tricks with IncrRefCount and DecrRefCount to stop the leak.
2002-08-03 David N. Welton <davidw@dedasys.com>
* src/mod_rivet.c (Rivet_AppendToScript): Changed before, after,
and error scripts back to plain old ascii, in order to plug a
memory leak.
* src/mod_rivet.h: New macro: FILEDEBUGINFO off by default.
Useful for debugging the order of functions called.
2002-07-28 David N. Welton <davidw@dedasys.com>
* doc/rivet.xsl: Updated rivet.xsl from Websh's xsl.
2002-07-21 David N. Welton <davidw@dedasys.com>
* doc/rivet.xml: Several new sections. We now have most of what
is in the HTML documents.
2002-07-19 David N. Welton <davidw@dedasys.com>
* src/buildscripts/aardvark.tcl (aardvark::runbuildcommand):
Attempt to use 'open' to execute shell commands, in order to both
catch the output as well as the return code.
* doc/rivet.xml: New file. Removed directives.xml in favor of
this, which we will use to build individual HTML files and other
forms of documentation.
2002-07-18 David N. Welton <davidw@dedasys.com>
* src/rivetCore.c (Rivet_Upload): Changed format of 'upload'
command to be more like 'var'. Changed relevant tests.
2002-07-14 David N. Welton <davidw@dedasys.com>
* doc/directives.xml: New file - XML version of directives.html.
2002-07-12 David N. Welton <davidw@dedasys.com>
* src/buildscripts/aardvark.tcl (aardvark::runbuildcommand):
Updated functionality to hopefully better handle errors, warnings,
and output.
* src/make.tcl: Created a 'dist' target which rolls a tarball.
2002-07-11 David N. Welton <davidw@dedasys.com>
* src/TclWebapache.c (TclWeb_GetHeaderVars): New function to get
client headers, which are now seperate from environmental
variables.
2002-06-18 David N. Welton <davidw@dedasys.com>
* cvsversion.tcl: Added tool to manage version numbers based on
CVS changes.
2002-06-17 David N. Welton <davidw@dedasys.com>
* src/make.tcl: Updated build scripts to build the HTML
documentation from XML files.
* src/buildscripts/aardvark.tcl: Changed commands to 'sh' for
shell commands and 'tcl' for Tcl commands.
2002-06-10 David N. Welton <davidw@dedasys.com>
* doc/packages/dio/dio.xml: Further updates.
2002-06-08 David N. Welton <davidw@dedasys.com>
* doc/packages/dio/dio.xml: Finished up adding material to
dio.xml.
2002-06-06 David N. Welton <davidw@dedasys.com>
* doc/packages/dio/dio.xml: Initial commit of (incomplete) docbook
documentation.
* doc/packages/dio/rivet.xsl: Added XSL file for docbook
documentation.
2002-05-03 David N. Welton <davidw@dedasys.com>
* src/TclWebapache.c (TclWeb_GetVarAsList): Added check to length
to make sure we fully compare the two variables. Idem for
TclWeb_VarExists.
2002-04-19 Damon J. Courtney <damon@unreality.com>
* src/TclWebapache.c
Added 'TclWeb_GetVirtualFile' command which returns the full
path to a virtual file.
* src/rivetCore.c
Added command 'virtual_filename' to return the full path to a
virtual file.
Added -virtual option to include and parse commands to enable
them to parse a virtual file which is relative to the webserver.
2002-03-26 Damon J. Courtney <damon@unreality.com>
* rivet/packages/form
Added a new package for handling forms in Rivet.
2002-03-26 Damon J. Courtney <damon@unreality.com>
* src/TclWebapache.c
Moved the setting of include variables from LoadEnv to the
InitEnv command. This will allow us to retrieve these variables
via the env command as well as load_env.
2002-03-21 Damon J. Courtney <damon@unreality.com>
* src/TclWebapache.c
* src/TclWeb.h
Added new command 'TclWeb_HeaderAdd'.
* src/rivetCore.c
Added 'add' option to headers command to add a header instead
of just setting over one.
* rivet/rivet-tcl/cookie.tcl
The cookie command adds a header instead of setting one. This
allows multiple cookies in a single page.
2002-03-21 Damon J. Courtney <damon@unreality.com>
* src/TclWebapache.c
If the header being set is Set-Cookie, we add it to the table
instead of overwriting it. This allows us to set more than
one cookie per page, which is legal to all browsers.
2002-03-19 Damon J. Courtney <damon@unreality.com>
* rivet/init.tcl
Appended packages-local to the auto_path. This will be a great
place for people to place local packages that we won't mess with.
2002-03-18 David N. Welton <davidw@dedasys.com>
* tests/apachetest/apachetest.tcl: Added TclX to requirements.
Damn.
2002-03-16 David N. Welton <davidw@dedasys.com>
* tests/runtests.tcl: Updated to run with apachetest, eliminating
makeconf.tcl, and moving template.conf.tcl to the apachetest
directory.
* tests/apachetest/apachetest.tcl: New file, grouping together
the test functions in one place, and in a namespace.
2002-03-15 David N. Welton <davidw@dedasys.com>
* tests/config.test: Added some new, automatically generated
tests.
* src/mod_rivet.c (Rivet_MergeDirConfigVars): Make sure that both
arguments to overlay_tables exist!
* src/mod_rivet.h: Add a default error script.
* src/TclWebapache.c (TclWeb_GetEnvVars): DecrRef for the name of
the environment variable.
* rivet/rivet-tcl/cookie.tcl (make_cookie_attributes): Add an
interface to add the 'expire' field directly.
(cookie): "Set-Cookie" is uppercase for both words.
2002-03-15 Damon J. Courtney <damon@unreality.com>
* src/apache_cookie.c
* src/apache_cookie.h
Removed in favor of doing cookies through a Tcl interface.
* src/channel.c
* src/channel.h
Renamed to rivetChannel.c and rivetChannel.h
* src/rivetCore.c
* src/TclWebapache.c
Removed references to Apache cookie functions.
2002-03-14 Damon J. Courtney <damon@unreality.com>
* src/TclWebapache.c
Added a routine to setup the environment variables and mark
that they have been set. This will save us from having to
reload them all the time. Once they're loaded, they don't
load again.
* rivet/rivet-tcl/cookie.tcl
Added a new 'cookie' command for setting and getting cookies.
* rivet/rivet-tcl/import_keyvalue_pairs.tcl
Added a command to import keyvalue pairs from arguments.
* rivet/rivet-tcl/load_cookies.tcl
Made load_cookies use the env command to get the one variable
it needs instead of load_env, which gets a bunch it doesn't
need.
* rivet/rivet-tcl/debug.tcl
Made debug use the env and import_keyvalue_pairs commands.
2002-03-13 Damon J. Courtney <damon@unreality.com>
* src/mod_rivet.c
Cleaned up the error handling a little. There was a really nasty
bug that if the ErrorScript was defined, it wouldn't actually
error out. This had something to do with the header output and
flush being before the ErrorScript was executed.
* rivet/init.tcl
Changed the default error handler to a Tcl proc.
2002-03-13 Damon J. Courtney <damon@unreality.com>
* src/make.tcl
* src/TclWebapache.c
Cleaned up the remainder of the compiler warnings.
Rivet should build cleanly without warnings now.
2002-03-13 David N. Welton <davidw@dedasys.com>
* src/mod_rivet.c (Rivet_PropagatePerDirConfArrays): Clean up
arrayName object after we're done with it.
* src/TclWebapache.c (TclWeb_GetVar): Make sure to compare all of
the variable key.
* src/mod_rivet.c (Rivet_InitTclStuff): Moved creation of "rivet"
AssocData here.
2002-03-12 Damon J. Courtney <damon@unreality.com>
* src/mod_rivet.c
* src/mod_rivet.h
* src/rivetParser.c
* src/rivetCore.c
* src/TclWebapache.c
Cleaned up a lot of memory leaks. Still working on finding more.
2002-03-12 David N. Welton <davidw@dedasys.com>
* tests/makeurl.test: New test.
* src/TclWebapache.c (TclWeb_MakeURL): Use Tcl_SetStringObj
instead of creating a new object.
* src/rivetCore.c (Rivet_MakeURL): Pass already created object to
TclWeb_MakeURL.
2002-03-11 Damon J. Courtney <damon@unreality.com>
* src/TclWeb.h
Added declaration for TclWeb_GetEnvVar.
* src/TclWebapache.c
Added command TclWeb_GetEnvVar. Gets a single environment
variable.
* src/mod_rivet.c
Added some extra stuff to the default error functions.
If the error_script fails, we output the failure.
* src/rivetCore.c
Added Tcl 'env' command to get a single environment variable.
* src/make.tcl
* src/buildscripts/aardvark.tcl
* src/buildscripts/graph.tcl
Cleaning up a bug with the struct package.
2002-03-10 Damon J. Courtney <damon@unreality.com>
* src/mod_rivet.c
The Scripts output to the UserConf arrays now properly display
the scripts in their entirety.
Cleaned up the handling of directory configuration merging.
Fixed a bug where Rivet_GetRivetFile was stomping the BeforeScript.
2002-02-23 David N. Welton <davidw@dedasys.com>
* tests/upload.test: Added upload test.
* src/TclWebapache.c: Added functions: TclWeb_PrepareUpload,
TclWeb_UploadChannel, TclWeb_UploadSave, TclWeb_UploadData,
TclWeb_UploadSize, TclWeb_UploadType, TclWeb_UploadFilename,
TclWeb_UploadNames.
* src/rivetCore.c (Rivet_Upload): Offloaded functionality to
TclWebApache.c.
2002-02-17 Damon J. Courtney <damon@unreality.com>
* src/make.tcl
Added a script to look around a little more for Apache's apxs tool.
If we can't find it, we output an error message to the user.
* src/buildscripts/findapxs.tcl
Added to repository.
2002-02-12 David N. Welton <davidw@dedasys.com>
* src/TclWebapache.c: Added some INLINE's.
* src/mod_rivet.c (Rivet_ParseExecFile): Tweaking of parameters to
enable the modification stated below.
* src/rivetCore.c (Rivet_Parse): Removed 'rsc' from this
function.
2002-02-07 David N. Welton <davidw@dedasys.com>
* src/TclWebapache.c (TclWebMakeURL): New command, extracted out
of rivetCore.c.
2002-02-01 David N. Welton <davidw@dedasys.com>
* src/rivetCore.c: Deleted rivet_info command.
* src/TclWebapache.c (TclWeb_GetEnvVars): Added RIVET_CACHE_FREE
# and RIVET_CACHE_SIZE as environmental variables.
2002-01-29 David N. Welton <davidw@dedasys.com>
* doc/help.html: Updated mailing list archive location.
2002-01-28 David N. Welton <davidw@dedasys.com>
* src/rivetCore.c (Rivet_Include): Get channel via Tcl_GetChannel
instead of through the apache config structure.
2002-01-27 David N. Welton <davidw@dedasys.com>
* tests/parse.test: Added test for 'parse' command.
* src/mod_rivet.c (Rivet_ParseExecFile): Moved the addition of
before and after scripts to this file, so that GetRivetFile is
independant of any Apache specific code.
* src/rivetParser.c, src/rivetParser.h: New files, which replace
parser.c and parser.h.
(Rivet_GetRivetFile): Moved from mod_rivet.c. Now capable of
operating independantly of mod_rivet. Use Tcl file functions
instead of Apache functions.
(Rivet_Parser): Parser now operates on a Tcl_Obj input buffer.
* src/mod_rivet.h: Moved content_sent to TclWebRequest in TclWeb.h
2002-01-26 David N. Welton <davidw@dedasys.com>
* tests/binary.test: Added test file for binary file handling.
* src/mod_rivet.c (Rivet_SendContent): Moved 'header_only' option
so that the request is set up and we don't segfault.
(Rivet_GetRivetFile): changed puts to puts -nonewline, so as to
not add spurious newlines.
* src/rivetCore.c (Rivet_Include): Simplified code some, with '-1'
argument to Tcl_ReadChars. Eliminated "lf" -translation option.
2002-01-24 David N. Welton <davidw@dedasys.com>
* tests/include.test: Added test for 'include' command.
2002-01-22 David N. Welton <davidw@dedasys.com>
* src/mod_rivet.c, src/channel.c, src/rivetCore.c: Switched to
TclWeb functions for error, headers.
* src/mod_rivet.h: Moved headers_set and headers_printed out of
the rivet_server_conf struct and into the TclWebRequest struct.
* src/TclWebapache.c: Moved PrintHeaders, PrintError and
SetHeaderType from mod_rivet.c.
* src/TclWeb.h: Added ER1, ER2 and DEFAULT_HEADER_TYPE here.
* tests/get.test: Added some tests related to [var *].
* tests/post.test: Added some tests related to [var *].
* src/rivetList.c (Rivet_LassignArrayObjCmd): Use -1 instead of
NULL when doing NewStringObj.
* src/rivetCrypt.c: Added header file.
* src/make.tcl: Added slightly nicer apxs handling.
* src/mod_rivet.c: Moved StringToUtf to TclWeb.
* src/mod_rivet.h: Removed StringToUtf macro.
* src/TclWebapache.c: Lots of bug fixes and corrections.
* src/rivetCore.c (Rivet_LoadEnv): Switched to TclWeb API.
(Rivet_LoadCookies): Switched to TclWeb API.
(Rivet_Var): Switched to TclWeb API.
2002-01-19 Damon J. Courtney <damon@unreality.com>
* src/rivetCore.c
Moved authorization from its own array into the env array as
HTTP_USER and HTTP_PASS.
Added an abort_page command which halts the sending of a request.
2002-01-19 David N. Welton <davidw@dedasys.com>
* src/TclWebapache.c: Added individual functions for CGI variable
access. Much simpler than trying to devise a data structure to
pass them around with.
* src/rivetCore.c (Rivet_LoadEnv): Roll back authorization
information command.
2002-01-18 David N. Welton <davidw@dedasys.com>
* src/rivetCore.c (Rivet_LoadAuth): New command to load
authorization information in its own array.
* src/TclWebcgi.c: New file for stand-alone implementations of
common web API.
* src/TclWebapache.c: New file for apache-based implementations of
web API.
* src/TclWeb.c: Common code for TclWeb API.
* src/TclWeb.h: TclWeb web interaction API.
2002-01-11 Damon J. Courtney <damon@unreality.com>
* src/make.tcl
Updated some of the make nodes.
librivet.so now gets copied into the rivet package directory.
* src/mod_rivet.c
Changed Rivet_Init to Rivet_InitCore to fix bug.
All Script directives now append to each other instead of
overwriting the last directive. Directory directives still
override in standard fashion though.
* rivet/packages/rivet
Added as the default package of Rivet commands in C.
2002-01-10 Damon J. Courtney <damon@unreality.com>
* src/rivet.h
Added macro 'TCL_CMD_HEADER'. Prints the default command header
for Tcl commands in Rivet.
Added macro 'TCL_OBJ_CMD'. Prints the default object command
creation for Tcl commands in Rivet.
* src/rivetInit.c
Renamed to rivetPkgInit.c
* src/rivetCrypt.c
Added. Contains commands for encryption and decryption.
encrypt
decrypt
crypt
* src/rivetWWW.c
Added. Contains commands for the world wide web.
escape_string
unescape_string
escape_sgml_chars
escape_shell_command
* src/rivetList.c
Added the following commands:
comma_split
comma_join
lassign_array
* src/make.tcl
Moved all of the Rivet Tcl commands into their own library
called librivet. This will be automatically loaded into Rivet
as the default configuration. Anyone who wants can take it
out if they choose.
2002-01-10 David N. Welton <davidw@dedasys.com>
* tests/template.conf.tcl: Re-add srm.conf and access.conf - if
they aren't present, it tries to grab the ones from /etc/ - not
what we want.
2002-01-09 Damon J. Courtney <damon@unreality.com>
* src/tcl_commands.c
Renamed to rivetCore.c
* src/tcl_commands.h
Removed.
* src/rivet.h
Added as the default header file for Rivet Tcl commands.
* src/rivetList.c
Added. Only contains 'lremove' right now.
* src/rivetInit.c
Added. Contains the Tcl initialization routine for Rivet's Tcl
commands.
* src/make.tcl
Added rivetCore.c, rivetList.c and rivetInit.c to the make.
2002-01-08 Damon J. Courtney <damon@unreality.com>
* src/mod_rivet.h
Added RIVET_NEW_CONF macro to create a new rivet_server_conf.
* src/mod_rivet.c
Added Rivet_MergeDirConfig to merge directory configurations.
Fixed bug where RivetDirConf was giving erroneous information.
2002-01-08 Damon J. Courtney <damon@unreality.com>
* tests/makeconf.tcl
Went ahead and copied over the entire rivet directory.
* tests/rivet.test
Changed the default port to 8081.
* tests/template.conf.tcl
Changed the default port to 8081.
Removed access.conf and srm.conf.
2002-01-08 David N. Welton <davidw@dedasys.com>
* tests/makeconf.tcl (makeconf): Added a command to copy over the
init.tcl file to the testing directory. It would probably be
best to copy the whole directory, though.
2002-01-08 Damon J. Courtney <damon@unreality.com>
* src/channel.c
Just a text change.
* src/make.tcl
Added a command to install that will copy the contents of the
rivet/ directory into Apache's install location.
* src/mod_rivet.h
Removed some superfluous code and deprecated options.
* src/mod_rivet.c
Finished renaming the rest of the remaining commands into the
standard Rivet_ naming scheme. This will prevent any further
interferance with other modules.
Renamed namespacePrologue to request_init and re-coded the
namespace initialization code in Tcl.
Removed leftover references to the ::request::UPLOAD array.
Added an array called 'server' to the global namespace which
briefly contains important information about Apache and Rivet.
Propagated RivetServerConf, RivetDirConf and RivetUserConf arrays
at the tcl level.
Gave RivetUserConf the ability to set BeforeScript, AfterScript
and ErrorScript.
* src/tcl_commands.c
Updated makeurl to use Tcl objects instead of the old Tcl_SetResult
command.
* rivet/
Added a rivet/ directory of Tcl code.
Added init.tcl to rivet/. This file contains initialization code
in a ::Rivet namespace that is called when the server starts up.
* rivet/init.tcl
Added a command for cleanup after each request. It currently
does nothing but could come in handy later.
* rivet/packages
Created a rivet/packages directory for future Rivet packages.
* rivet/rivet-tcl
Created a rivet/rivet-tcl directory containing a few procs.
* rivet/rivet-tcl/load_response.tcl
Added 'load_response' command to rivet-tcl/.
* rivet/rivet-tcl/parray.tcl
Added 'parray' command to rivet-tcl/.
2002-01-07 David N. Welton <davidw@dedasys.com>
* General: Renamed some more commands so that Rivet may be run
alongside mod_dtcl.
* src/mod_rivet.c (get_parse_exec_file): Oops - change httpd-tcl
to httpd-rivet in strcmp.
2002-01-06 David N. Welton <davidw@dedasys.com>
* Documentation: Big cleanup, updating everything from mod_dtcl.
* General: Changed .ttml to .rvt. Also changed mime type to
x-httpd-rivet. Changed all references in documentation to .rvt
from .ttml.
2002-01-05 David N. Welton <davidw@dedasys.com>
* src/parser.c (Rivet_Parser): A few, mostly cosmetic, cleanups in
the parser.
* src/make.tcl: Add nodes for testing library.
* src/channel.c (outputproc): Change printheaders to
Rivet_PrintHeaders.
* General: whitespace cleanups.
2001-11-21 David N. Welton <davidw@dedasys.com>
* src/channel.c: Almost all output is based on the ApacheChan
channel, and uses Tcl's buffering, flushing, etc...
* tests/rivet.test: Updated testing scheme to work with lots of
test files/ttml files.
2001-11-21 Damon J. Courtney <damon@unreality.com>
* src/mod_rivet.c
Renamed more commands into the Rivet_ naming scheme.
2001-11-20 Damon J. Courtney <damon@unreality.com>
* src/tcl_commands.c
load_env and load_cookies now accept an optional argument of
?arrayName?.
* src/tcl_commands.c
Renamed a lot of the commands into a standard naming scheme.
2001-11-20 Damon J. Courtney <damon@unreality.com>
* src/tcl_commands.c
Cleaned up some more code. Just textual changes.
* src/mod_rivet.c
Cleaned up some run-over lines and code.
* src/mod_rivet.c
Changed module signature from "mod_rivet" to "Rivet"
* src/tcl_commands.c
Changed hgetvars command to load_env command.
* src/tcl_command.c
Moved loading of cookies to load_cookies command.
* src/tcl_command.c
Renamed default load_env array from ENVS array to env.
* src/tcl_command.c
Renamed default load_cookies array from COOKIES to cookies.
2001-11-08 David N. Welton <davidw@dedasys.com>
* src/mod_rivet.c (rivet_child_init): Fix loop, pass correct
parameter to RIVET_SERVER_CONF.
2001-10-19 David N. Welton <davidw@dedasys.com>
* src/mod_rivet.c (get_parse_exec_file): Fixed up problems with
Parse command.
2001-09-30 David N. Welton <davidw@dedasys.com>
* src/parser.c (rivet_parser): Quote { and } to avoid problems.
2001-09-23 David N. Welton <davidw@dedasys.com>
* Initial commit and cleanup of old mod_dtcl code.
|