Git Product home page Git Product logo

Comments (7)

scottysseus avatar scottysseus commented on August 20, 2024 3

For what it's worth, I also noticed that the request was leaving the '/' off of the beginning of the URL (e.g. 'https:jira.example.comrest/api/2/blablabla' notice the lack of '/' between 'com' and 'rest'), and what fixed this for me was removing the '/' at the end of the host name I gave the Client object.

I changed

client = JIRA::Client.new(
  username: username,
  password: password,
  site: 'https://jira.example.com/', # notice the '/' at the end
  context_path: '', 
  auth_type: :basic)

to

client = JIRA::Client.new(
  username: username,
  password: password,
  site: 'https://jira.example.com', # the '/' has been removed
  context_path: '', 
  auth_type: :basic)

from jira-ruby.

endymion avatar endymion commented on August 20, 2024

I should mention that I'm authenticating with HTTP Basic and that the API user has access to update the record, which I confirmed by logging in as that user and updating the record.

from jira-ruby.

andrewhavens avatar andrewhavens commented on August 20, 2024

@endymion I feel your pain. However, your disparaging comments are not productive. The maintainers of this gem volunteer their time to maintain a gem that someone else created, and are under no obligation to help you. I'm sure they don't appreciate your negative tone. If it's so bad, why don't you try using one of the 60 other JIRA gems.

I realize it's not mentioned in the README, but there are two files in the repo which list a lot of examples, including updating issues. Perhaps you did not see these examples?

I agree, the readme needs some improvement. However, docs aren't a replacement for getting your hands dirty and reading through the source code.

from jira-ruby.

legkvla avatar legkvla commented on August 20, 2024

Good news, guys!
I have fixed it!

The issue was that sometimes url didn't have '/' prefix.

https://github.com/legkvla/jira-ruby/commits/master

legkvla@3508d06

from jira-ruby.

legkvla avatar legkvla commented on August 20, 2024

Have created pull request for you, so you can better understand what's happened and how it could be fixed: #112

from jira-ruby.

omehegan avatar omehegan commented on August 20, 2024

#119 fixes this issue.

from jira-ruby.

legkvla avatar legkvla commented on August 20, 2024

I found bug in my last fix I made last summer. Since issue is still open - I would like provide a pull request.
Also I found conditions when issue reproduced - for example, when you use Attlassian SDK and your jira instance installed not in root context but in /jira path instead.
If somebody experienced this issue - could you please test my PR too and confirm that it fixes issue. After it will be done - we can close the ticket.

from jira-ruby.

Related Issues (20)

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.