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
connorbode wants to merge 1 commit into
angular:masterfrom
connorbode:ngresource-encode-slashes
Open

connorbode wants to merge 1 commit into
angular:masterfrom
connorbode:ngresource-encode-slashes

Conversation

@connorbode

Copy link
Copy Markdown

fixes #1388

@mary-poppins

Copy link
Copy Markdown

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
Copy Markdown
Author

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

@Narretz Narretz added this to the Backlog milestone Jul 1, 2014
@Narretz

Narretz commented Jul 1, 2014

Copy link
Copy Markdown
Contributor

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

@connorbode

Copy link
Copy Markdown
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

Narretz commented Jul 1, 2014

Copy link
Copy Markdown
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
Copy Markdown
Author

thx

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

no

@caitp

caitp commented Aug 22, 2014

Copy link
Copy Markdown
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
Copy Markdown
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

rkakrik commented Aug 23, 2014

Copy link
Copy Markdown

+1

@jcassee

jcassee commented Aug 26, 2014

Copy link
Copy Markdown

+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

jdeniau commented Oct 20, 2014

Copy link
Copy Markdown

+1

@ghost

ghost commented Jan 14, 2015

Copy link
Copy Markdown

+1
What is the status quo on this PR?

@toddb

toddb commented Mar 30, 2015

Copy link
Copy Markdown

+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
Copy Markdown
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 free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

encodeUriSegment in resource encodes params, should be optional

8 participants