Git Product home page Git Product logo

test-analytics's People

Watchers

 avatar

test-analytics's Issues

HTTP Error 500: Internal Server Error. During uploading data

1. Run the following python code:

email = "correct email"
password = "correct password"

data = {'bug': [{'projectId': 'v100',
                  'title': 'test bug title',
                  'bugId': "333",
                  'path': '/1/3/3',
                  'severity': '1',
                  'priority': '2',
                  'groups': 'one',
                  'status': 'open',
                  'statusDate': '01/01/2013'
                 }],
         'test': [{'projectId': 'v100',
                 'testId': '1234',
                 'title': 'switching sources',
                 'tags': 'no',
                 'result': 'failed',
                 'resultDate': '01/01/2013'
                 }],
         'checkin': [{'projectId': 'v100',
                    'checkinId': '566',
                    'summary': "test summary",
                    'directories': '/home/users',
                    'state': 'committed',
                    'stateDate': '01/01/2013'
                    }]
        }

opener = urllib2.build_opener(urllib2.HTTPCookieProcessor(), 
urllib2.HTTPSHandler)
urllib2.install_opener(opener)

# Define URLs
loing_page_url = 'https://accounts.google.com/ServiceLogin'
gv_home_page_url = "https://test-analytics.appspot.com/api/data"

# Load sign in page
login_page_contents = opener.open(loing_page_url).read()

# Find GALX value
galx_match_obj = re.search(r'name="GALX"\s*value="([^"]+)"', 
login_page_contents, re.IGNORECASE)

galx_value = galx_match_obj.group(1) if galx_match_obj.group(1) is not None 
else ''

# Set up login credentials
login_params = urllib.urlencode({'Email': email,
                                 'Passwd': password,
                                 'GALX': galx_value
                                })

# Login
opener.open(loing_page_url, login_params)

# Open GV home page
# gv_home_page_contents = opener.open(gv_home_page_url).read()

# print gv_home_page_contents

req = urllib2.Request(url, json.dumps(data), headers)
print opener.open(req).read()

Actual result:
the following error appears:
Traceback (most recent call last):
  File "/home/...../src/test2.py", line 333, in <module>
    print opener.open(req).read()
  File "/usr/lib/python2.7/urllib2.py", line 406, in open
    response = meth(req, response)
  File "/usr/lib/python2.7/urllib2.py", line 519, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib/python2.7/urllib2.py", line 438, in error
    result = self._call_chain(*args)
  File "/usr/lib/python2.7/urllib2.py", line 378, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.7/urllib2.py", line 625, in http_error_302
    return self.parent.open(new, timeout=req.timeout)
  File "/usr/lib/python2.7/urllib2.py", line 406, in open
    response = meth(req, response)
  File "/usr/lib/python2.7/urllib2.py", line 519, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib/python2.7/urllib2.py", line 438, in error
    result = self._call_chain(*args)
  File "/usr/lib/python2.7/urllib2.py", line 378, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.7/urllib2.py", line 625, in http_error_302
    return self.parent.open(new, timeout=req.timeout)
  File "/usr/lib/python2.7/urllib2.py", line 406, in open
    response = meth(req, response)
  File "/usr/lib/python2.7/urllib2.py", line 519, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib/python2.7/urllib2.py", line 438, in error
    result = self._call_chain(*args)
  File "/usr/lib/python2.7/urllib2.py", line 378, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.7/urllib2.py", line 625, in http_error_302
    return self.parent.open(new, timeout=req.timeout)
  File "/usr/lib/python2.7/urllib2.py", line 406, in open
    response = meth(req, response)
  File "/usr/lib/python2.7/urllib2.py", line 519, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib/python2.7/urllib2.py", line 438, in error
    result = self._call_chain(*args)
  File "/usr/lib/python2.7/urllib2.py", line 378, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.7/urllib2.py", line 625, in http_error_302
    return self.parent.open(new, timeout=req.timeout)
  File "/usr/lib/python2.7/urllib2.py", line 406, in open
    response = meth(req, response)
  File "/usr/lib/python2.7/urllib2.py", line 519, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib/python2.7/urllib2.py", line 438, in error
    result = self._call_chain(*args)
  File "/usr/lib/python2.7/urllib2.py", line 378, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.7/urllib2.py", line 625, in http_error_302
    return self.parent.open(new, timeout=req.timeout)
  File "/usr/lib/python2.7/urllib2.py", line 406, in open
    response = meth(req, response)
  File "/usr/lib/python2.7/urllib2.py", line 519, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib/python2.7/urllib2.py", line 444, in error
    return self._call_chain(*args)
  File "/usr/lib/python2.7/urllib2.py", line 378, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.7/urllib2.py", line 527, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
urllib2.HTTPError: HTTP Error 500: Internal Server Error


Original issue reported on code.google.com by [email protected] on 2 Sep 2013 at 12:54

Navigation between capabilities should be the same in Risk Overview and Capabilities views

In 
http://groups.google.com/group/test-analytics-discuss/browse_thread/thread/f2b19
0f9a74949f5 I said:

----
* I'd like to be able to navigate between capabilities from the Risk 
Overview the same way that I can in the Capabilities view, i.e. being 
able to see multiple capabilities at a time. Navigating down from the 
Risk Overview (click on a cell, click on a capability) takes me to 
another page and I then have to go back to choose another. 
----

Original issue reported on code.google.com by [email protected] on 25 Oct 2011 at 8:35

500 error when submit a huge project name

When try post a huge name for a project it returns a 500 error

Data: 
Try add a project or update an existing project with the text:
BugBangBlog BugBangBlog BugBangBlog BugBangBlog BugBangBlog BugBangBlog 
BugBangBlog BugBangBlog BugBangBlog BugBangBlog BugBangBlog BugBangBlog 
BugBangBlog BugBangBlog BugBangBlog BugBangBlog BugBangBlog BugBangBlog 
BugBangBlog BugBangBlog BugBangBlog BugBangBlog BugBangBlog BugBangBlog 
BugBangBlog BugBangBlog BugBangBlog BugBangBlog BugBangBlog BugBangBlog 
BugBangBlog BugBangBlog BugBangBlog BugBangBlog BugBangBlog BugBangBlog 
BugBangBlog BugBangBlog BugBangBlog BugBangBlog BugBangBlog BugBangBlog 
BugBangBlog BugBangBlog BugBangBlog BugBangBlog BugBangBlog BugBangBlog 
BugBangBlog BugBangBlog BugBangBlog BugBangBlog BugBangBlog BugBangBlog 
BugBangBlog BugBangBlog  

Have fun watching the app returning a beautiful 500 error ;)

Original issue reported on code.google.com by [email protected] on 24 Nov 2012 at 5:47

Attachments:

Can't access the webapp

I finally got the build working and then attempted to deploy the artifact 
test-analytics-1.0-SNAPSHOT.war
Tomcat deploys the war fine but I cannot access the webapp. I used the tomcat 
manager to deploy and then click on the link in the manager console which gives 
me this:

Unable to connect
      Firefox can't establish a connection to the server at localhost:8443.

Any suggestions?

Original issue reported on code.google.com by [email protected] on 3 Feb 2012 at 10:22

crm6

Enter your feature request below (one feature request per issue, please!):

crm6

Original issue reported on code.google.com by [email protected] on 5 May 2015 at 3:12

Cannot upload data to https://test-analytics.appspot.com/api/upload endpoint

Trying to upload data to test analytics but getting 500 Internal Server Error.
with body:
<html><head>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<title>500 INTERNAL_SERVER_ERROR</title>
</head>
<body text=#000000 bgcolor=#ffffff>
<h1>Error: INTERNAL_SERVER_ERROR</h1>
</body></html>

Even using GET instead POST witch should be processed as 500 Internal Server 
Error: 
with body: 
<h1>GET is unsupported</h1>
To upload data, use POST.

returns wrong body:
<html><head>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<title>500 INTERNAL_SERVER_ERROR</title>
</head>
<body text=#000000 bgcolor=#ffffff>
<h1>Error: INTERNAL_SERVER_ERROR</h1>
</body></html>


Original issue reported on code.google.com by [email protected] on 9 Apr 2014 at 8:20

Historical view of risk

In 
http://groups.google.com/group/test-analytics-discuss/browse_thread/thread/f2b19
0f9a74949f5

I said:
----
It'd be nice to be able to get an historical view of risk 
change over time. 
----

Jim said:
----
Ditto.  I know project iteration support / timeline support is a needed 
feature. 
----

Original issue reported on code.google.com by [email protected] on 25 Oct 2011 at 8:38

No instructions to deploy source

I have downloaded the software using the command:

git clone https://code.google.com/p/test-analytics/

This is according to the documentation available in the 'Source'. 

I suppose we have to deploy this under tomcat or something some container. 
Could you give the instructions to deploy this as an independent setup.

I couldn't find any relevant wiki post on deploying the source.

Original issue reported on code.google.com by [email protected] on 9 Nov 2011 at 3:04

Add audit trail, commit record

In 
http://groups.google.com/group/test-analytics-discuss/browse_thread/thread/f2b19
0f9a74949f5 I said:

----
It'd be nice to be able to justify risk decisions, perhaps like a 
commit message when you Save. 
----

Jim said:

----
Audit trail & something like this would be a great idea -- feel free to file  
this as a feature request as well.
----

Original issue reported on code.google.com by [email protected] on 25 Oct 2011 at 8:37

Last checking to pom.xml broke the build

The last checking (changing repository tag to pluginRepository) breaks the 
build as gwt-dnd cannot be resolved anymore. I assume who ever checked it in 
had a local copy of the jar in .m2. 
Reverting resolved the gwt-dnd unresolved dependency but there are still 
missing artifacts:

[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

Missing:
----------
1) javax.jdo:jdo2-api:jar:2.3-ec

  Try downloading the file manually from the project website.

  Then, install it using the command: 
      mvn install:install-file -DgroupId=javax.jdo -DartifactId=jdo2-api -Dversion=2.3-ec -Dpackaging=jar -Dfile=/path/to/file

  Alternatively, if you host your own repository you can deploy the file there: 
      mvn deploy:deploy-file -DgroupId=javax.jdo -DartifactId=jdo2-api -Dversion=2.3-ec -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

  Path to dependency: 
    1) org.datanucleus:maven-datanucleus-plugin:maven-plugin:1.1.4
    2) javax.jdo:jdo2-api:jar:2.3-ec

----------
1 required artifact is missing.

for artifact: 
  org.datanucleus:maven-datanucleus-plugin:maven-plugin:1.1.4

from the specified remote repositories:
  maven-secure.jive.snapshots (http://maven-secure.jiveland.com/archiva/repository/jive.snapshots),
  maven-secure.jive.internal (http://maven-secure.jiveland.com/archiva/repository/jive.internal),
  central (http://repo1.maven.org/maven2),
  DN_M2_Repo (http://www.datanucleus.org/downloads/maven2/),
  maven-int.snapshots (http://maven-int.jiveland.com/archiva/repository/snapshots),
  has gwt-dnd 3.1.1 (http://gwtquery-plugins.googlecode.com/svn/mavenrepo),
  maven-int.internal (http://maven-int.jiveland.com/archiva/repository/internal),
  sonatype-releases (https://oss.sonatype.org/content/repositories/releases)



Original issue reported on code.google.com by [email protected] on 3 Feb 2012 at 9:01

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.