[jbosstools-issues] [JBoss JIRA] (JBIDE-10017) Add OS in user agent when communicating with the OpenShift Express REST service

Xavier Coulon (Commented) (JIRA) jira-events at lists.jboss.org
Wed Dec 7 03:23:41 EST 2011


    [ https://issues.jboss.org/browse/JBIDE-10017?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12648725#comment-12648725 ] 

Xavier Coulon commented on JBIDE-10017:
---------------------------------------

After talking with André, the following user-agent pattern came up:

{code}
${clientId}/${clientVersion} (${System information}) ${programId}/${programVersion}
{code}

where:
- clientId and clientVersion are the id and the version of the Java client library used to communicate with OpenShift
- programId and programVersion are the id and the version of the JBossTools plugin (or any other application) that uses the client described above.

For example:
{code}
user-agent: org.jboss.tools.openshift.express.client/2.3.0 (Macintosh; Intel Mac OS X 10.7.2) org.jboss.tools.openshift.express.client.test 2.3.0/2.3.0
{code}

To match the usual user-agent that the most popular browsers provide:
{code}
Mozilla/5.0 (X11; Linux i686; rv:6.0) Gecko/20100101 Firefox/6.0
Mozilla/5.0 (Windows NT 6.1; rv:6.0) Gecko/20110814 Firefox/6.0
Mozilla/5.0 (Windows NT 6.0; WOW64) AppleWebKit/535.7 (KHTML, like Gecko) Chrome/16.0.912.36 Safari/535.7
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_8) AppleWebKit/535.7 (KHTML, like Gecko) Chrome/16.0.912.36 Safari/535.7
{code}

Yet, this pattern should be validated with the openshift team, especially because clientId and programId are long values with '.' inside.
                
> Add OS in user agent when communicating with the OpenShift Express REST service
> -------------------------------------------------------------------------------
>
>                 Key: JBIDE-10017
>                 URL: https://issues.jboss.org/browse/JBIDE-10017
>             Project: Tools (JBoss Tools)
>          Issue Type: Enhancement
>          Components: openshift
>    Affects Versions: 3.3.0.M4
>            Reporter: Andre Dietisheim
>            Assignee: Andre Dietisheim
>             Fix For: 3.3.0.Beta1
>
>
> We currently use a custom user agent string (in the OpenShift Express client) when communication with the OpenShift Express REST service. We should also report the OS and version.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       



More information about the jbosstools-issues mailing list