Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

option to disable encoding slashes for url params#7940

Open
wants to merge 1 commit into
base:master
Choose a base branch
from

Conversation

connorbode
Copy link

fixes#1388

@mary-poppins
Copy link

I'm sorry, but I wasn't able to verify your Contributor License Agreement (CLA) signature. CLA signature is required for any code contributions to AngularJS.

Please sign our CLA and ensure that the CLA signature email address and the email address in this PR's commits match.

If you signed the CLA as a corporation, please let us know the company's name.

Thanks a bunch!

PS: If you signed the CLA in the past then most likely the email addresses don't match. Please sign the CLA again or update the email address in the commit of this PR.
PS2: If you are a Googler, please sign the CLA as well to simplify the CLA verification process.

@connorbode
Copy link
Author

@Narretz : This was labelled $http but it relates to ngResource

@NarretzNarretz added this to the Backlog milestone Jul 1, 2014
@Narretz
Copy link
Contributor

Thx, fixed. Have you checked why your CLA couldn't be verified?

@connorbode
Copy link
Author

I had submitted the CLA right before submitting the pull request -- I'm assuming it hadn't been processed yet. It's verified now though.

And the Travis build errors are really odd. All tests failed with

Message: timeout: timed out after 30000 msec waiting for spec to complete Stacktrace: undefined 

I was able to build fine. If you have access to Travis can you re-run the build?

@Narretz
Copy link
Contributor

I think Travis is a real pain at the moment. Can't do anything about it. I added a 'needs review' label, so hopefully maybe someone will look it over (although I noticed the origin issue has been labelled Purgatory)

@connorbode
Copy link
Author

thx

@@ -293,7 +293,7 @@ describe("resource", function() {
});

it('should support overriding provider default trailing-slash stripping configuration', function() {
// Set the new behavior for all new resources created by overriding the
// Set the new behav ior for all new resources created by overriding the
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no

@caitp
Copy link
Contributor

So, the main issue here (from my perspective) is that we have no way of ensuring that user-provided path values are "sane", and it becomes the application's responsibility. That's probably fine, but it's something that should be noted in the docs.

I am not keen on the way this public API looks, but I can't really think of anything better for it.

Have to see what API owners think about it though

@connorbode
Copy link
Author

So, the main issue here (from my perspective) is that we have no way of ensuring that user-provided path values are "sane", and it becomes the application's responsibility. That's probably fine, but it's something that should be noted in the docs.

I think this is why / is encoded in the first place. I can make a note of it in the docs.

I am not keen on the way this public API looks, but I can't really think of anything better for it.
Have to see what API owners think about it though

Who are the "owners"?

@rkakrik
Copy link

+1

@jcassee
Copy link

+1

Usecase: HAL

var Resource = $resource(':href', {href: '@_links.self.href'}, {put: {method: 'PUT'}}, {encodeSlashes: false}) var user = new Resource({username: 'example', _links: {self: {href: '/user/1'}}}) user.$put() 
@jdeniau
Copy link

+1

@ghost
Copy link

+1
What is the status quo on this PR?

@toddb
Copy link

+10 - please, please, can we have this sorted. It has been around since 2012 in #1388 (as pointed out up the top)

@connorbode
Copy link
Author

I don't think anything is happening with this version of angular anymore.
All the focus is on angular 2

On Mon, Mar 30, 2015, 4:47 AM toddb notifications@github.com wrote:


Reply to this email directly or view it on GitHub
#7940 (comment).

Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.
close