From 6ad68f083bf39fcf7ad2892da6735fa3c84c808d Mon Sep 17 00:00:00 2001 From: Alex Balleste Date: Thu, 3 Sep 2015 10:27:45 +0200 Subject: [PATCH] KNL-1379 Increased SESSION_USER_AGENT size from 255 to 255 CHAR in ORACLE to prevent errors on requests from some browser that send bigger user-agent header --- kernel/kernel-impl/src/main/sql/oracle/sakai_session.sql | 2 +- reference/docs/conversion/sakai_11_oracle_conversion.sql | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/kernel/kernel-impl/src/main/sql/oracle/sakai_session.sql b/kernel/kernel-impl/src/main/sql/oracle/sakai_session.sql index bb772de0fe6a..9d6c87344584 100644 --- a/kernel/kernel-impl/src/main/sql/oracle/sakai_session.sql +++ b/kernel/kernel-impl/src/main/sql/oracle/sakai_session.sql @@ -9,7 +9,7 @@ CREATE TABLE SAKAI_SESSION SESSION_USER VARCHAR2 (99), SESSION_IP VARCHAR2 (128), SESSION_HOSTNAME VARCHAR2 (255), - SESSION_USER_AGENT VARCHAR2 (255), + SESSION_USER_AGENT VARCHAR2 (255 CHAR), SESSION_START TIMESTAMP WITH TIME ZONE, SESSION_END TIMESTAMP WITH TIME ZONE, SESSION_ACTIVE number(1,0) diff --git a/reference/docs/conversion/sakai_11_oracle_conversion.sql b/reference/docs/conversion/sakai_11_oracle_conversion.sql index 458842a52e6f..1c6ea20fa5b0 100644 --- a/reference/docs/conversion/sakai_11_oracle_conversion.sql +++ b/reference/docs/conversion/sakai_11_oracle_conversion.sql @@ -434,3 +434,7 @@ INSERT INTO SAKAI_SITE VALUES('!contact-us', 'Contact Us', null, null, null, '', INSERT INTO SAKAI_SITE_PAGE VALUES('!contact-us', '!contact-us', 'Contact Us', '0', 1, '0' ); INSERT INTO SAKAI_SITE_TOOL VALUES('!contact-us', '!contact-us', '!contact-us', 'sakai.feedback', 1, 'Contact Us', NULL ); -- END SAK-29271 + +--KNL-1379 Bigger SESSION_USER_AGENT +ALTER TABLE SAKAI_SESSION MODIFY SESSION_USER_AGENT VARCHAR2 (255 CHAR); +-- END KNL-1379