-
Type:
Bug
-
Resolution: Won't Fix
-
Priority:
Low
-
Component/s: Integrations - Confluence Questions
-
Severity 3 - Minor
NOTE: This bug report is for Confluence Cloud. Using Confluence Server? See the corresponding bug report.
This is an AAC error being thrown from too many tags being added by the SAC connector. It's this part:
u'tags': u'ondemand preview edit keystroke textentry keyboard textbox macro', u'title': u'Confluence OnDemand unable to edit macro fields after "preview >",
I suppose we need some sort of validation for cross-posting?
ValidationError at /api/question/
[u'please use between 1 and 7 tags']
Request Method: POST
Request URL: http://support.atlassian.com/api/question/
Django Version: 1.2.5
Exception Type: ValidationError
Exception Value:
[u'please use between 1 and 7 tags']
Exception Location: /opt/python/domains/atlassian.com/answers/ADM-22445/forum/forms/qanda.py in clean, line 89
Python Executable: /opt/python/domains/atlassian.com/answers/bin/python2.6
Python Version: 2.6.5
Python Path: ['/opt/python/domains/atlassian.com/answers/ADM-22445', '/opt/python/domains/atlassian.com/answers', '/opt/python/domains/atlassian.com/answers/bin', '/opt/python/domains/atlassian.com/answers/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg', '/opt/python/domains/atlassian.com/answers/lib/python2.6/site-packages/pip-0.8.3-py2.6.egg', '/opt/python/domains/atlassian.com/answers/lib64/python26.zip', '/opt/python/domains/atlassian.com/answers/lib64/python2.6', '/opt/python/domains/atlassian.com/answers/lib64/python2.6/plat-linux2', '/opt/python/domains/atlassian.com/answers/lib64/python2.6/lib-tk', '/opt/python/domains/atlassian.com/answers/lib64/python2.6/lib-old', '/opt/python/domains/atlassian.com/answers/lib64/python2.6/lib-dynload', '/usr/lib/python2.6', '/usr/lib64/python2.6', '/opt/python/domains/atlassian.com/answers/lib/python2.6/site-packages', '/opt/python/domains/atlassian.com/answers/lib/python2.6/site-packages/PIL', '/usr/lib/python2.6/site-packages/pip-0.8.3-py2.6.egg', '/usr/lib/python2.6/site-packages', '/usr/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg-info', '/usr/lib64/python2.6/site-packages', '/opt/python/domains/atlassian.com/answers/ADM-22445/forum/markdownext']
Server time: Wed, 18 Apr 2012 14:18:33 -0400
Traceback Switch to copy-and-paste view
/opt/python/domains/atlassian.com/answers/ADM-22445/forum_modules/atlassian/api/handlers.py in create
if isinstance(userObj, forum.models.User): author = userObj
else: return rc.FORBIDDEN
else: return rc.FORBIDDEN # No session, /api/login first.
else: return rc.BAD_REQUEST # Did not include session data.
clean_tags = TagNamesField(user=userObj).clean
tags = ''
if data.get('tags'):
tags = clean_tags(data['tags']) ...
if id: #Updates are fscking difficult.
q = self.model.objects.get(id=id)
q.process_data(text=data.get("body"), title=data.get("title"), tags=tags)
return rc.ALL_OK #Update
else: #Create the question (AskAction)
actor = forum.actions.AskAction(user=author)
▶ Local vars
Variable Value
args
()
author
<User: Stuart MacKenzie>
clean_tags
<bound method TagNamesField.clean of <forum.forms.qanda.TagNamesField object at 0x91c4710>>
data
id
None
request
<WSGIRequest GET:<QueryDict: {}>, POST:{}, COOKIES:
, META:
{'CONTENT_LENGTH': '1222', 'CONTENT_TYPE': 'application/json', 'CSRF_COOKIE': 'd6c69241a89b5ae9353c645ce025b9fb', 'HTTP_ACCEPT': '*/*', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.3', 'HTTP_ACCEPT_ENCODING': 'gzip,deflate,sdch', 'HTTP_ACCEPT_LANGUAGE': 'en-US,en;q=0.8', 'HTTP_CONNECTION': 'close', 'HTTP_COOKIE': '__utmx=236125905.00011625773791326257:2:1; __utmxx=236125905.00011625773791326257:408204:2592000; km_ai=UdzIqSSMdErGHrfbUd0ZEI2HmFo; km_lv=x; km_uq=; __unam=3b7d60-1355d7d72b1-1cfa810f-1; __qca=P0-420492402-1328903347993; jira.toggleblocks.cong.cookie=; AJS.conglomerate.cookie=||||||||||||||||||||||customfield_10070-field=shown; optimizelyBuckets=%7B%22942133%22%3A%221001106%22%2C%221152050%22%3A%221156045%22%7D; JSESSIONID=825FC402604EA34AC07FD4C2A7D5F3F9; seraph.rememberme.cookie=55971%3A0a1bd09e8d6f35af80e6302ce7617404aed0cdbb; atlassian.xsrf.token=A1IJ-623Z-0CXZ-GMPC|e1b1b11b8baacf07fe2e432617dfe6429cee72aa|lin; crowd.token_key=WXvk0wLX9lmhAYAoyZv1ng00; __utma=1.670990799.1334771935.1334771935.1334771935.1; __utmb=1.1.10.1334771935; __utmc=1; __utmz=1.1334771935.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); csrftoken=d6c69241a89b5ae9353c645ce025b9fb; sessionid=a498b7457de832b088cbaa981856b401; aaclogin=smackenzie%40iarad.com', 'HTTP_HOST': 'support.atlassian.com', 'HTTP_ORIGIN': 'https://support.atlassian.com', 'HTTP_REFERER': 'https://support.atlassian.com/secure/CreateIssue.jspa?pid=10140&issuetype=1&customfield_10573=SEN-2149085&customfield_10440=', 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.162 Safari/535.19', 'HTTP_X_FORWARDED_FOR': '173.227.247.194, 172.16.3.44', 'HTTP_X_FORWARDED_HOST': 'support.atlassian.com', 'HTTP_X_FORWARDED_SERVER': 'sac-new.atlassian.com', 'HTTP_X_REQUESTED_WITH': 'XMLHttpRequest', 'PATH_INFO': u'/api/question/', 'QUERY_STRING': '', 'RAW_URI': '/api/question/', 'REMOTE_ADDR': '172.16.3.44', 'REMOTE_PORT': '80', 'REQUEST_METHOD': 'POST', 'SCRIPT_NAME': u'', 'SERVER_NAME': 'support.atlassian.com', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SOFTWARE': 'gunicorn/0.14.1', 'gunicorn.socket': <socket._socketobject object at 0x5f97750>, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x2b0d9d93e1e0>, 'wsgi.file_wrapper': <class gunicorn.http.wsgi.FileWrapper at 0x3d54f50>, 'wsgi.input': <gunicorn.http.body.Body object at 0x91c4210>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>
self
<forum_modules.atlassian.api.handlers.QuestionHandler object at 0x58c0350>
session_instance
<Session: Session object>
tags
''
urlPath
[]
userObj
<User: Stuart MacKenzie>
Variable Value
data
u'ondemand preview edit keystroke textentry keyboard textbox macro'
list
self
<forum.forms.qanda.TagNamesField object at 0x91c4710>
split_re
<_sre.SRE_Pattern object at 0x5c0acb0>
tag
u'macro'
value
u'ondemand preview edit keystroke textentry keyboard textbox macro'
Variable Value
CONTENT_LENGTH
'1222'
CONTENT_TYPE
'application/json'
CSRF_COOKIE
'd6c69241a89b5ae9353c645ce025b9fb'
HTTP_ACCEPT
'/'
HTTP_ACCEPT_CHARSET
'ISO-8859-1,utf-8;q=0.7,*;q=0.3'
HTTP_ACCEPT_ENCODING
'gzip,deflate,sdch'
HTTP_ACCEPT_LANGUAGE
'en-US,en;q=0.8'
HTTP_CONNECTION
'close'
HTTP_COOKIE
'__utmx=236125905.00011625773791326257:2:1; __utmxx=236125905.00011625773791326257:408204:2592000; km_ai=UdzIqSSMdErGHrfbUd0ZEI2HmFo; km_lv=x; km_uq=; __unam=3b7d60-1355d7d72b1-1cfa810f-1; __qca=P0-420492402-1328903347993; jira.toggleblocks.cong.cookie=; AJS.conglomerate.cookie=||||||||||||||||||||||customfield_10070-field=shown; optimizelyBuckets=%7B%22942133%22%3A%221001106%22%2C%221152050%22%3A%221156045%22%7D; JSESSIONID=825FC402604EA34AC07FD4C2A7D5F3F9; seraph.rememberme.cookie=55971%3A0a1bd09e8d6f35af80e6302ce7617404aed0cdbb; atlassian.xsrf.token=A1IJ-623Z-0CXZ-GMPC|e1b1b11b8baacf07fe2e432617dfe6429cee72aa|lin; crowd.token_key=WXvk0wLX9lmhAYAoyZv1ng00; __utma=1.670990799.1334771935.1334771935.1334771935.1; __utmb=1.1.10.1334771935; __utmc=1; __utmz=1.1334771935.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); csrftoken=d6c69241a89b5ae9353c645ce025b9fb; sessionid=a498b7457de832b088cbaa981856b401; aaclogin=smackenzie%40iarad.com'
HTTP_HOST
'support.atlassian.com'
HTTP_ORIGIN
'https://support.atlassian.com'
HTTP_REFERER
'https://support.atlassian.com/secure/CreateIssue.jspa?pid=10140&issuetype=1&customfield_10573=SEN-2149085&customfield_10440='
HTTP_USER_AGENT
'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.162 Safari/535.19'
HTTP_X_FORWARDED_FOR
'173.227.247.194, 172.16.3.44'
HTTP_X_FORWARDED_HOST
'support.atlassian.com'
HTTP_X_FORWARDED_SERVER
'sac-new.atlassian.com'
HTTP_X_REQUESTED_WITH
'XMLHttpRequest'
PATH_INFO
u'/api/question/'
QUERY_STRING
''
RAW_URI
'/api/question/'
REMOTE_ADDR
'172.16.3.44'
REMOTE_PORT
'80'
REQUEST_METHOD
'POST'
SCRIPT_NAME
u''
SERVER_NAME
'support.atlassian.com'
SERVER_PORT
'80'
SERVER_PROTOCOL
'HTTP/1.0'
SERVER_SOFTWARE
'gunicorn/0.14.1'
gunicorn.socket
<socket._socketobject object at 0x5f97750>
wsgi.errors
<open file '<stderr>', mode 'w' at 0x2b0d9d93e1e0>
wsgi.file_wrapper
<class gunicorn.http.wsgi.FileWrapper at 0x3d54f50>
wsgi.input
<gunicorn.http.body.Body object at 0x91c4210>
wsgi.multiprocess
True
wsgi.multithread
False
wsgi.run_once
False
wsgi.url_scheme
'http'
wsgi.version
(1, 0)
- is related to
-
CONFSERVER-46694 Validation error in SAC connector
-
- Closed
-