question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Remove rewrite /wsmaster/api/* to /api/*

See original GitHub issue

A long time ago requests to ws-master were like http://localhost:8080/api/user. After we decided to change the name of api war to wsmaster. To make this change compatible with the previous version we have a rewrite rule. RewriteRule ^/api/(.*)$ /wsmaster/api/$1 [L] After that, part of our application are making request to /api some to /wsmaster/api Internally this solution works more or less. But eventually, it produces small chaos and unpredictable problems. Like I have redirection loop with Keycloak Opeid Filter because I have a request to /api but it was internally transformed to /wsmaster/api and result cookies was set on the path /wsmaster/api but it wasn’t expected.

I think it’s time to drop this workaround with RewriteRule in next version of Che.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:3
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
skabashnyukcommented, Sep 28, 2017

Yes. And after Che6 this consistency is not required, it means that is a good time for drop off.

0reactions
skabashnyukcommented, Oct 18, 2017

We are going to rename wsmaster.war to api.war

Read more comments on GitHub >

github_iconTop Results From Across the Web

Rewrite API URL with .htaccess after removing .php
In my .htaccess I already made a condition to remove .php but the second one is not working. <IfModule mod_rewrite.c> Options +FollowSymLinks ...
Read more >
Remove Words Query Rewrite API Configurations | Fusion 5.7
Use a Remove Words query rewrite to remove particular phrases from queries. Unlike other rewrites, Remove Words rules are entered manually and aren't...
Read more >
Remove a URL Scan from a Dynamic Analysis with the REST ...
You can use the Dynamic Analysis API to delete a URL scan from an analysis. Steps Run this command to get a list...
Read more >
Removing APIs from the Unified Schema
Removing APIs from the Unified Schema · Click List of APIs added and select the API that you want to remove. · Click...
Read more >
Solved: Bitbucket Cloud API - Remove write access
Solved: I'm trying to setup branch permissions via the API and would like to remove the ability to write to the branch for...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found