GithubHelp home page GithubHelp logo

Comments (8)

chobits avatar chobits commented on June 6, 2024

We need to check some updating on yaml or route validation between 2.8 and 3.4 later.

from kong.

chronolaw avatar chronolaw commented on June 6, 2024

In PR #9607 we bump lyaml from 6.2.7 to 6.2.8, perhaps it causes some behaviors change.

from kong.

chronolaw avatar chronolaw commented on June 6, 2024

I did a simple test:

-- resty ./t.lua
local lyaml = require "lyaml"
local contents = [[
services:
- name: local-sso
  url: https://localhost
  routes:
  - name: sso-native
    paths: [/:login, /api/frm/sso, /actuator/health]
]]
local pok, table, err = pcall(lyaml.load, contents)
assert(pok)
print(require("inspect")(table))

It works well, so I think that it is not lyaml's reason.

@lubw7 could you try the same test?

from kong.

lubw7 avatar lubw7 commented on June 6, 2024

Still failed, it's so queer
image

from kong.

chronolaw avatar chronolaw commented on June 6, 2024

Could you give us a minimal test script to re-produce it?

from kong.

lubw7 avatar lubw7 commented on June 6, 2024

I try it in docker.io/library/kong 3.6.0, it work well.
But it failed in the image built by our team through Dockerfile.
I have checked the lyaml source code of these two images and code is identical.
So I feel puzzled why the same source code can get different running results.

I did a simple test:

-- resty ./t.lua
local lyaml = require "lyaml"
local contents = [[
services:
- name: local-sso
  url: https://localhost
  routes:
  - name: sso-native
    paths: [/:login, /api/frm/sso, /actuator/health]
]]
local pok, table, err = pcall(lyaml.load, contents)
assert(pok)
print(require("inspect")(table))

It works well, so I think that it is not lyaml's reason.

@lubw7 could you try the same test?

from kong.

github-actions avatar github-actions commented on June 6, 2024

This issue is marked as stale because it has been open for 14 days with no activity.

from kong.

github-actions avatar github-actions commented on June 6, 2024

Dear contributor,

We are automatically closing this issue because it has not seen any activity for three weeks.
We're sorry that your issue could not be resolved. If any new information comes up that could
help resolving it, please feel free to reopen it.

Your contribution is greatly appreciated!

Please have a look
our pledge to the community
for more information.

Sincerely,
Your Kong Gateway team

from kong.

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.